Thread (26 messages) 26 messages, 6 authors, 2020-09-15

Re: [PATCH v3 1/2] leds: mt6360: Add LED driver for MT6360

From: Pavel Machek <hidden>
Date: 2020-09-10 08:34:41
Also in: linux-arm-kernel, linux-leds, linux-mediatek, lkml

Hi!
quoted
quoted
+enum {
+       MT6360_LED_ISNK1 = 0,
+       MT6360_LED_ISNK2,
+       MT6360_LED_ISNK3,
+       MT6360_LED_ISNK4,
+       MT6360_LED_FLASH1,
+       MT6360_LED_FLASH2,
quoted
+       MT6360_MAX_LEDS,
No comma for terminator entry.
ACK
Actually, that comma is fine. Its absence would be fine, too.
quoted
quoted
+};
...
quoted
+#define MT6360_ISNK_MASK               0x1F
GENMASK()
Again, that is fine.
quoted
quoted
+#define FLED_TORCH_FLAG_MASK           0x0c
quoted
+#define FLED_STROBE_FLAG_MASK          0x03
GENMASK()
ACK
Again, that is fine.
quoted
quoted
+       return 0;
+}
+
+static const struct of_device_id __maybe_unused mt6360_led_of_id[] = {
+       { .compatible = "mediatek,mt6360-led", },
quoted
+       {},
No need comma.
ACK
It is also no hurting comma.

Best regards,

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help