mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-27 22:56:49 +08:00
input: Add a device pointer to the input config
The read_keys() method in input is passed a struct input_config. Add a device pointer there so that we can find out the device that is referred to with driver model. Once all drivers are converted we can update the input structure to use driver model instead. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
e84421d8f3
commit
c9cac4cdce
@ -36,6 +36,7 @@ struct input_key_xlate {
|
||||
};
|
||||
|
||||
struct input_config {
|
||||
struct udevice *dev;
|
||||
uchar fifo[INPUT_BUFFER_LEN];
|
||||
int fifo_in, fifo_out;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user