input: Add a device pointer to the input config
authorSimon Glass <sjg@chromium.org>
Mon, 19 Oct 2015 03:17:11 +0000 (21:17 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:13:40 +0000 (20:13 -0700)
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>
include/input.h

index 26e2ad7..7bccc8e 100644 (file)
@@ -36,6 +36,7 @@ struct input_key_xlate {
 };
 
 struct input_config {
+       struct udevice *dev;
        uchar fifo[INPUT_BUFFER_LEN];
        int fifo_in, fifo_out;