diff options
author | Simon Glass <sjg@chromium.org> | 2015-10-18 21:17:11 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-11-19 20:13:40 -0700 |
commit | c9cac4cdce3a2909d878105621abafa38c1ff79d (patch) | |
tree | 7f1933e7e246afdb9390fbf60e4f4add276f6bcb | |
parent | e84421d8f3fe4f4b6956c9045b22729383620442 (diff) | |
download | u-boot-imx-c9cac4cdce3a2909d878105621abafa38c1ff79d.zip u-boot-imx-c9cac4cdce3a2909d878105621abafa38c1ff79d.tar.gz u-boot-imx-c9cac4cdce3a2909d878105621abafa38c1ff79d.tar.bz2 |
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>
-rw-r--r-- | include/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h index 26e2ad7..7bccc8e 100644 --- a/include/input.h +++ b/include/input.h @@ -36,6 +36,7 @@ struct input_key_xlate { }; struct input_config { + struct udevice *dev; uchar fifo[INPUT_BUFFER_LEN]; int fifo_in, fifo_out; |