lkml.org 
[lkml]   [2019]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC 23/25] WIP: leds: tm1628: Prepare TM1628 keys
Date
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(+)

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,
};
--
2.16.4
\
 
 \ /
  Last update: 2019-12-12 04:41    [W:0.202 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site