diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2015-04-13 20:48:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-04-17 17:12:49 +0300 |
commit | 75052a5504705aded68e544967fdd1d296470bcc (patch) | |
tree | 82f1f81a84cc473440ea22a89072fffc420c170f /drivers/staging/greybus/bundle.h | |
parent | 1ffc12be5549085faac2d6116f666cb9cbcb2930 (diff) | |
download | linux-75052a5504705aded68e544967fdd1d296470bcc.tar.xz |
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.h | 1 |
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 */ }; |