mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +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 Reviewed-by: Brad Griffis <bgriffis@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
85a51ae063
commit
072a881099
@@ -167,7 +167,6 @@ static int cdi_pwm_probe(struct platform_device *pdev)
|
|||||||
#endif
|
#endif
|
||||||
info->chip.npwm = npwm;
|
info->chip.npwm = npwm;
|
||||||
info->chip.of_xlate = of_cdi_pwm_xlate;
|
info->chip.of_xlate = of_cdi_pwm_xlate;
|
||||||
info->chip.of_pwm_n_cells = 2;
|
|
||||||
info->force_on = force_on;
|
info->force_on = force_on;
|
||||||
|
|
||||||
err = pwmchip_add(&info->chip);
|
err = pwmchip_add(&info->chip);
|
||||||
|
|||||||
@@ -167,7 +167,6 @@ static int isc_pwm_probe(struct platform_device *pdev)
|
|||||||
#endif
|
#endif
|
||||||
info->chip.npwm = npwm;
|
info->chip.npwm = npwm;
|
||||||
info->chip.of_xlate = of_isc_pwm_xlate;
|
info->chip.of_xlate = of_isc_pwm_xlate;
|
||||||
info->chip.of_pwm_n_cells = 2;
|
|
||||||
info->force_on = force_on;
|
info->force_on = force_on;
|
||||||
|
|
||||||
err = pwmchip_add(&info->chip);
|
err = pwmchip_add(&info->chip);
|
||||||
|
|||||||
Reference in New Issue
Block a user