The driver doesn't make use of struct gb_pwm_chip::pwm. So that struct member can just be dropped.
Signed-off-by: Uwe Kleine-König u.kleine-koenig@pengutronix.de --- drivers/staging/greybus/pwm.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/staging/greybus/pwm.c b/drivers/staging/greybus/pwm.c index 88da1d796f13..f569d371a007 100644 --- a/drivers/staging/greybus/pwm.c +++ b/drivers/staging/greybus/pwm.c @@ -19,7 +19,6 @@ struct gb_pwm_chip { u8 pwm_max; /* max pwm number */
struct pwm_chip chip; - struct pwm_chip *pwm; };
static inline struct gb_pwm_chip *pwm_chip_to_gb_pwm_chip(struct pwm_chip *chip)
base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
On 7/14/23 3:16 PM, Uwe Kleine-König wrote:
The driver doesn't make use of struct gb_pwm_chip::pwm. So that struct member can just be dropped.
Signed-off-by: Uwe Kleine-König u.kleine-koenig@pengutronix.de
drivers/staging/greybus/pwm.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/staging/greybus/pwm.c b/drivers/staging/greybus/pwm.c index 88da1d796f13..f569d371a007 100644 --- a/drivers/staging/greybus/pwm.c +++ b/drivers/staging/greybus/pwm.c @@ -19,7 +19,6 @@ struct gb_pwm_chip { u8 pwm_max; /* max pwm number */ struct pwm_chip chip;
- struct pwm_chip *pwm; };
static inline struct gb_pwm_chip *pwm_chip_to_gb_pwm_chip(struct pwm_chip *chip)
base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
Looks good.
Reviewed-by: Alex Elder elder@linaro.org