greybus: Rename gb_gpbridge_protocol_driver() as gb_builtin_protocol_driver()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 1 Jul 2015 06:43:52 +0000 (12:13 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 1 Jul 2015 23:34:55 +0000 (16:34 -0700)
This macro is also required by core protocols like control and svc, and
hence the 'gpbridge' name doesn't fit anymore.

Lets call this macro gb_builtin_protocol_driver().

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/gpio.c
drivers/staging/greybus/hid.c
drivers/staging/greybus/i2c.c
drivers/staging/greybus/protocol.h
drivers/staging/greybus/pwm.c
drivers/staging/greybus/sdio.c
drivers/staging/greybus/spi.c
drivers/staging/greybus/uart.c
drivers/staging/greybus/usb.c

index 9590914..6539530 100644 (file)
@@ -725,4 +725,4 @@ static struct gb_protocol gpio_protocol = {
        .request_recv           = gb_gpio_request_recv,
 };
 
-gb_gpbridge_protocol_driver(gpio_protocol);
+gb_builtin_protocol_driver(gpio_protocol);
index 2f6e68c..1214b7a 100644 (file)
@@ -529,4 +529,4 @@ static struct gb_protocol hid_protocol = {
        .request_recv           = gb_hid_irq_handler,
 };
 
-gb_gpbridge_protocol_driver(hid_protocol);
+gb_builtin_protocol_driver(hid_protocol);
index 01afca8..5eb7703 100644 (file)
@@ -356,4 +356,4 @@ static struct gb_protocol i2c_protocol = {
        .request_recv           = NULL, /* no incoming requests */
 };
 
-gb_gpbridge_protocol_driver(i2c_protocol);
+gb_builtin_protocol_driver(i2c_protocol);
index f6739f3..3f226e3 100644 (file)
@@ -103,7 +103,7 @@ static void __exit protocol_exit(void)                      \
 module_exit(protocol_exit)
 
 /* __protocol: string matching name of struct gb_protocol */
-#define gb_gpbridge_protocol_driver(__protocol)                \
+#define gb_builtin_protocol_driver(__protocol)         \
 int __init gb_##__protocol##_init(void)                        \
 {                                                      \
        return gb_protocol_register(&__protocol);       \
index 5dfeb0e..be7131a 100644 (file)
@@ -246,4 +246,4 @@ static struct gb_protocol pwm_protocol = {
        .request_recv           = NULL, /* no incoming requests */
 };
 
-gb_gpbridge_protocol_driver(pwm_protocol);
+gb_builtin_protocol_driver(pwm_protocol);
index 30ebd42..f028e14 100644 (file)
@@ -720,4 +720,4 @@ static struct gb_protocol sdio_protocol = {
        .request_recv           = gb_sdio_event_recv,
 };
 
-gb_gpbridge_protocol_driver(sdio_protocol);
+gb_builtin_protocol_driver(sdio_protocol);
index 78a7f85..3743618 100644 (file)
@@ -347,4 +347,4 @@ static struct gb_protocol spi_protocol = {
        .request_recv           = NULL,
 };
 
-gb_gpbridge_protocol_driver(spi_protocol);
+gb_builtin_protocol_driver(spi_protocol);
index 7abcd1c..e2a456f 100644 (file)
@@ -773,4 +773,4 @@ static struct gb_protocol uart_protocol = {
        .request_recv           = gb_uart_request_recv,
 };
 
-gb_gpbridge_protocol_driver(uart_protocol);
+gb_builtin_protocol_driver(uart_protocol);
index 609b7cc..888f514 100644 (file)
@@ -362,4 +362,4 @@ static struct gb_protocol usb_protocol = {
        .request_recv           = NULL, /* FIXME we have requests!!! */
 };
 
-gb_gpbridge_protocol_driver(usb_protocol);
+gb_builtin_protocol_driver(usb_protocol);