diff mbox

[U-Boot,02/28] input: Add a device pointer to the input config

Message ID 1441773171-4575-3-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Sept. 9, 2015, 4:32 a.m. UTC
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>
---

 include/input.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Bin Meng Sept. 15, 2015, 6:11 a.m. UTC | #1
On Wed, Sep 9, 2015 at 12:32 PM, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
>  include/input.h | 1 +
>  1 file changed, 1 insertion(+)
>
> 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;
>
> --

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff mbox

Patch

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;