greybus: isolate greybus module code
authorAlex Elder <elder@linaro.org>
Thu, 2 Oct 2014 02:54:11 +0000 (21:54 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 3 Oct 2014 04:17:20 +0000 (21:17 -0700)
commite1e9dbddfe71de1efba5bc77b3f2b374e2ba0104
tree92832849ad53953449703be77d076d8605f6c0c2
parentecf7d579713155e7d2e2aa76227c68c4f64c5146
greybus: isolate greybus module code

Define new source files "module.h" and "module.c" to separate the
definitions of the Greybus module abstraction from other code.

Rename "greybus_module" to be "gb_module", for brevity.  Do the same
for a few other symbols with "greybus_module" in their names.  A few
(like greybus_module_id) are more visible outside this kernel module
so we'll keep their names more descriptive.

Add a definition for U8_MAX in "kernel_ver.h" (it appeared in 3.14).

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
13 files changed:
drivers/staging/greybus/Makefile
drivers/staging/greybus/battery-gb.c
drivers/staging/greybus/core.c
drivers/staging/greybus/gbuf.c
drivers/staging/greybus/gpio-gb.c
drivers/staging/greybus/greybus.h
drivers/staging/greybus/i2c-gb.c
drivers/staging/greybus/module.c [new file with mode: 0644]
drivers/staging/greybus/module.h [new file with mode: 0644]
drivers/staging/greybus/sdio-gb.c
drivers/staging/greybus/sysfs.c
drivers/staging/greybus/test_sink.c
drivers/staging/greybus/uart-gb.c