summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/svc.h
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2016-01-21 01:42:17 +0000
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-20 18:03:00 -0800
commitebe99d61815fea0ecece5ddb530b28339f8d5ed3 (patch)
tree2025fee89d00c715baa42dd42fa3f6f51049dc8d /drivers/staging/greybus/svc.h
parent4b874134284b1dbb340f063fe0cf5141ffd416b1 (diff)
downloadlinux-ebe99d61815fea0ecece5ddb530b28339f8d5ed3.tar.bz2
greybus: svc: add key event handling
Add a new input device associated with the SVC to handle key events. This new events are transfer over a new greybus svc operation which is unidirectional. It was selected the KEY_A for representing the KEY_ARA_BUTTON key code. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/svc.h')
-rw-r--r--drivers/staging/greybus/svc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/greybus/svc.h b/drivers/staging/greybus/svc.h
index 4abc5efad807..f079b4dcc6e6 100644
--- a/drivers/staging/greybus/svc.h
+++ b/drivers/staging/greybus/svc.h
@@ -30,6 +30,9 @@ struct gb_svc {
u8 protocol_major;
u8 protocol_minor;
+
+ struct input_dev *input;
+ char *input_phys;
};
#define to_gb_svc(d) container_of(d, struct gb_svc, d)