mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
media: camera: Remove of_pwm_n_cells usage
The 'of_pwm_n_cells' has been removed from the pwm_chip structure in the
latest linux-next development branch that will eventually become Linux
v6.9. This parameter was used in function 'of_pwm_xlate_with_flags'.
The camera CDI and ISC drivers don't use the kernel's
of_pwm_xlate_with_flags xlate function and instead implement their own
xlate function. Therefore, it is safe to simply drop the usage of the
'of_pwm_n_cells' parameter completely in these drivers.
Bug 4471899
Change-Id: Id4cf4b7ac182d0654080e536457bab1a7128ad1d
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3063806
(cherry picked from commit 072a881099)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3067933
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
246e62b38e
commit
7f293be0be
@@ -168,7 +168,6 @@ static int cdi_pwm_probe(struct platform_device *pdev)
|
||||
#endif
|
||||
info->chip.npwm = npwm;
|
||||
info->chip.of_xlate = of_cdi_pwm_xlate;
|
||||
info->chip.of_pwm_n_cells = 2;
|
||||
info->force_on = force_on;
|
||||
|
||||
err = pwmchip_add(&info->chip);
|
||||
|
||||
@@ -168,7 +168,6 @@ static int isc_pwm_probe(struct platform_device *pdev)
|
||||
#endif
|
||||
info->chip.npwm = npwm;
|
||||
info->chip.of_xlate = of_isc_pwm_xlate;
|
||||
info->chip.of_pwm_n_cells = 2;
|
||||
info->force_on = force_on;
|
||||
|
||||
err = pwmchip_add(&info->chip);
|
||||
|
||||
Reference in New Issue
Block a user