greybus: bundle: add state sysfs file
authorGreg Kroah-Hartman <gregkh@google.com>
Mon, 13 Apr 2015 17:48:37 +0000 (19:48 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 17 Apr 2015 14:12:49 +0000 (16:12 +0200)
commit75052a5504705aded68e544967fdd1d296470bcc
tree82f1f81a84cc473440ea22a89072fffc420c170f
parent1ffc12be5549085faac2d6116f666cb9cbcb2930
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>
drivers/staging/greybus/Documentation/sysfs-bus-greybus
drivers/staging/greybus/bundle.c
drivers/staging/greybus/bundle.h