Re: [RFC 07/25] leds: Add Titan Micro Electronics TM1628

From: Andreas FÃrber
Date: Sat Dec 14 2019 - 05:10:27 EST


Am 12.12.19 um 04:39 schrieb Andreas FÃrber:
diff --git a/drivers/leds/leds-tm1628.c b/drivers/leds/leds-tm1628.c
new file mode 100644
index 000000000000..319bf34ce835
--- /dev/null
+++ b/drivers/leds/leds-tm1628.c
[...]
+struct tm1628 {
+ struct spi_device *spi;
+ const struct tm1628_info *info;

+ u32 grids;
+ unsigned int segments;

These fields were unused since introducing mode_index, dropping.

+ int mode_index;
+ int pwm_index;
+ u8 data[14];
+ unsigned int num_leds;
+ struct tm1628_led leds[];
+};
Regards,
Andreas

--
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 NÃrnberg, Germany
GF: Felix ImendÃrffer
HRB 36809 (AG NÃrnberg)