diff mbox series

[RFC,23/25] WIP: leds: tm1628: Prepare TM1628 keys

Message ID 20191212033952.5967-24-afaerber@suse.de
State New
Headers show
Series [RFC,01/25] dt-bindings: vendor-prefixes: Add Xnano | expand

Commit Message

Andreas Färber Dec. 12, 2019, 3:39 a.m. UTC
Extend TM1628 definition with key input lines.

Cc: zypeng@titanmec.com
Signed-off-by: Andreas Färber <afaerber@suse.de>

---
 drivers/leds/leds-tm1628.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.16.4
diff mbox series

Patch

diff --git a/drivers/leds/leds-tm1628.c b/drivers/leds/leds-tm1628.c
index 0c0d099de8b0..410f34234811 100644
--- a/drivers/leds/leds-tm1628.c
+++ b/drivers/leds/leds-tm1628.c
@@ -43,6 +43,8 @@  struct tm1628_info {
 	u16				seg_mask;
 	const struct tm1628_mode	*modes;
 	int				default_mode;
+	u8				k_mask;
+	u16				ks_mask;
 	const struct pwm_capture	*pwm_map;
 	int				default_pwm;
 };
@@ -656,6 +658,8 @@  static const struct tm1628_info tm1628_info = {
 	.seg_mask = GENMASK(14, 12) | GENMASK(10, 1),
 	.modes = tm1628_modes,
 	.default_mode = 3,
+	.k_mask = GENMASK(2, 1),
+	.ks_mask = GENMASK(10, 1),
 	.pwm_map = tm1628_pwm_map,
 	.default_pwm = 0,
 };