Commit Graph

6 Commits

Author SHA1 Message Date
Joseph Chen 5a54baa793 dm: key: refactor code
- use standard dm framework to implement all key drivers;
- all key node to be children and attach to key bus;
- dm key uclass takes over most work;
- reduce a lot of driver code size;

Change-Id: I9ea4515249d493eb4434890b90350f694c07404f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-04-09 10:54:14 +08:00
Joseph Chen b11786b4f0 input: rk key: fix missing register key into dm input uclass
Change-Id: I3237923ed14724e838a8b79a40db4ac45dde5f16
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-08-06 11:15:19 +08:00
Joseph Chen 64048c537e dm: key: optimise framework and update drivers
1. dm key framework takes over more generic jobs;
2. key drivers remove unused codes and match new framework;
3. only power key is registered as interrupt key;

Change-Id: Icdda86f588af721b685f801ed251581f2fd85793
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:43 +08:00
Joseph Chen a0ad9ed129 input: rk key: fix compile warning
Change-Id: I357db633bbd904d00757a909665f8f624ef2b50d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-03 10:52:29 +08:00
Joseph Chen 6cef563abc input: rk_key: use dm universal interface to parse event
Change-Id: I80c7a75a4150f1a8ebbf3d70541aa737cd687f91
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-01 16:29:12 +08:00
Joseph Chen debee64a8e input: key: add rk key driver
rk key device node can contain adc key and gpio key.

Change-Id: I6e3bd4022bba6324c35d2c317183a6a2cb69ed06
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-01-31 18:13:53 +08:00