From 7f293be0be816d6b8d033e189fac468915a9d458 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Fri, 26 Jan 2024 15:07:07 +0000 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3063806 (cherry picked from commit 072a88109994a06de0ba448089f79c946b2ecdb7) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3067933 Reviewed-by: Brad Griffis GVS: Gerrit_Virtual_Submit --- drivers/media/platform/tegra/cdi/cdi_pwm.c | 1 - drivers/media/platform/tegra/isc/isc_pwm.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/media/platform/tegra/cdi/cdi_pwm.c b/drivers/media/platform/tegra/cdi/cdi_pwm.c index 4254df41..038ac0da 100644 --- a/drivers/media/platform/tegra/cdi/cdi_pwm.c +++ b/drivers/media/platform/tegra/cdi/cdi_pwm.c @@ -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); diff --git a/drivers/media/platform/tegra/isc/isc_pwm.c b/drivers/media/platform/tegra/isc/isc_pwm.c index 8c6e1ea0..4a542ee0 100644 --- a/drivers/media/platform/tegra/isc/isc_pwm.c +++ b/drivers/media/platform/tegra/isc/isc_pwm.c @@ -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);