leds: qcom-lpg: Drop assignment to struct pwmchip::base
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 28 Jul 2023 06:57:39 +0000 (08:57 +0200)
committerLee Jones <lee@kernel.org>
Fri, 28 Jul 2023 11:22:47 +0000 (12:22 +0100)
Since commit f9a8ee8c8bcd ("pwm: Always allocate PWM chip base ID
dynamically") there is no effect any more for assigning this variable. See
pwmchip_add() which unconditionally overwrites this member.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230728065739.580281-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/rgb/leds-qcom-lpg.c

index fd7676a..df469aa 100644 (file)
@@ -1092,7 +1092,6 @@ static int lpg_add_pwm(struct lpg *lpg)
 {
        int ret;
 
-       lpg->pwm.base = -1;
        lpg->pwm.dev = lpg->dev;
        lpg->pwm.npwm = lpg->num_channels;
        lpg->pwm.ops = &lpg_pwm_ops;