mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
In Linux v6.10, a pointer to a dynamically allocated 'struct device' was replaced with a statically allocated 'struct device' in the 'pwm_chip' structure. Update the Tegra camera drivers accordingly to fix the build for Linux v6.10. Bug 4593750 Change-Id: I05e15e2a63383ab2f96be6c20e81705de9581869 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3123220 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
18 lines
428 B
C
18 lines
428 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* SPDX-FileCopyrightText: Copyright (c) 2016-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
|
|
|
|
#ifndef __CDI_PWM_PRIV_H__
|
|
#define __CDI_PWM_PRIV_H__
|
|
|
|
struct cdi_pwm_info {
|
|
#if !defined(NV_PWM_CHIP_STRUCT_HAS_STRUCT_DEVICE)
|
|
struct pwm_chip chip;
|
|
#endif
|
|
struct pwm_device *pwm;
|
|
atomic_t in_use;
|
|
struct mutex mutex;
|
|
bool force_on;
|
|
};
|
|
|
|
#endif /* __CDI_PWM_PRIV_H__ */
|