Re: [PATCH] staging: greybus: pwm: Drop unused member from driver struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
  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@xxxxxxxxxx>





[Index of Archives]     [Linux Driver Development]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux