greybus: register preallocated protocols
authorAlex Elder <elder@linaro.org>
Wed, 5 Nov 2014 22:12:53 +0000 (16:12 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 5 Nov 2014 22:23:50 +0000 (14:23 -0800)
commit19d03decd3415a7a0ec6c378720058f29f9568cc
tree62144f1c2c859ce4ee98f48febe96c5a4a04d12c
parentdbb8894e0c3cf1661d83466faa277a8d436a1cba
greybus: register preallocated protocols

Set up protocol structures as static objects in each protocol source
file.  Pass the address of that in--rather than the protocol id and
version information--to the protocol registration routine.  Call a
central routine to register all our pre-defined protocols.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/battery-gb.c
drivers/staging/greybus/core.c
drivers/staging/greybus/gpio-gb.c
drivers/staging/greybus/greybus_manifest.h
drivers/staging/greybus/i2c-gb.c
drivers/staging/greybus/protocol.c
drivers/staging/greybus/protocol.h
drivers/staging/greybus/sdio-gb.c
drivers/staging/greybus/uart-gb.c