summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/bundle.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2015-04-13 19:48:37 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2015-04-17 16:12:49 +0200
commit75052a5504705aded68e544967fdd1d296470bcc (patch)
tree82f1f81a84cc473440ea22a89072fffc420c170f /drivers/staging/greybus/bundle.h
parent1ffc12be5549085faac2d6116f666cb9cbcb2930 (diff)
downloadlinux-75052a5504705aded68e544967fdd1d296470bcc.tar.bz2
greybus: bundle: add state sysfs file
A bundle has a state file, that is managed by the endo userspace process. This file can be written to and any process that is polling on the file will be woken up and can read the new value. It's a "cheap" IPC for programs that are not allowed to do anything other than read/write to kernel sysfs files. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/bundle.h')
-rw-r--r--drivers/staging/greybus/bundle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/bundle.h b/drivers/staging/greybus/bundle.h
index 3265a008e5df..5c12c72ddcec 100644
--- a/drivers/staging/greybus/bundle.h
+++ b/drivers/staging/greybus/bundle.h
@@ -20,6 +20,7 @@ struct gb_bundle {
u8 class;
u8 device_id;
struct list_head connections;
+ u8 *state;
struct list_head links; /* interface->bundles */
};