greybus: define greybus function abstraction
authorAlex Elder <elder@linaro.org>
Thu, 2 Oct 2014 02:54:13 +0000 (21:54 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 3 Oct 2014 04:18:40 +0000 (21:18 -0700)
commitef0d2ba20142b5db051e2673d1373e128c990743
tree95c06cfff6d6b2412816f2785ae4e2c174ae3458
parent8c12cde3c2b98ec2d298b2536bcb0cb1d7591b85
greybus: define greybus function abstraction

Define new source files "function.h" and "function.c" to contain the
definitions of the Greybus function abstraction.  A Greybus function
represents an active entity connected to a CPort implemented by a
Greybus interface.  A Greybus function has a type, which defines the
protocol to be used to interact with the function.  A Greybus
interface normally has at least two functions, but potentially many
more.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/Makefile
drivers/staging/greybus/function.c [new file with mode: 0644]
drivers/staging/greybus/function.h [new file with mode: 0644]
drivers/staging/greybus/greybus.h
drivers/staging/greybus/interface.c
drivers/staging/greybus/interface.h