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:
Jon Hunter
2024-01-26 15:07:07 +00:00
committed by mobile promotions
parent 246e62b38e
commit 7f293be0be
2 changed files with 0 additions and 2 deletions

View File

@@ -168,7 +168,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);

View File

@@ -168,7 +168,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);