Skip to content
Snippets Groups Projects
Commit c9cac4cd authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent e84421d8
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ struct input_key_xlate { ...@@ -36,6 +36,7 @@ struct input_key_xlate {
}; };
struct input_config { struct input_config {
struct udevice *dev;
uchar fifo[INPUT_BUFFER_LEN]; uchar fifo[INPUT_BUFFER_LEN];
int fifo_in, fifo_out; int fifo_in, fifo_out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment