diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-04-02 15:50:32 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-04-03 13:37:54 +0200 |
commit | ec521e914b412d41834ba010b84006e449f4e286 (patch) | |
tree | eae241774c285bca32b9e34b180bf5ebd14c328b /include | |
parent | 476057f7b2d563b163fe5ce80a5564271c3135da (diff) | |
download | barebox-ec521e914b412d41834ba010b84006e449f4e286.tar.gz barebox-ec521e914b412d41834ba010b84006e449f4e286.tar.xz |
input: record parent device at registration time
The input core doesn't create a virtual device to represent the input
device. Still having a pointer to the parent device can be useful for
debugging purposes.
Add a parent member and start populating it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240402135035.3700601-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/input/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/input/input.h b/include/input/input.h index d169c647bd..9445d20e56 100644 --- a/include/input/input.h +++ b/include/input/input.h @@ -14,6 +14,7 @@ struct input_event { struct input_device { struct list_head list; + struct device *parent; DECLARE_BITMAP(keys, KEY_CNT); }; |