From: Simon Glass Date: Mon, 19 Oct 2015 03:17:11 +0000 (-0600) Subject: input: Add a device pointer to the input config X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c9cac4cdce3a2909d878105621abafa38c1ff79d;p=u-boot.git 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 Reviewed-by: Bin Meng --- diff --git a/include/input.h b/include/input.h index 26e2ad700f..7bccc8ec89 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;