Commit e18822e3 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: Rename gb_gpbridge_protocol_driver() as gb_builtin_protocol_driver()

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 06e305f1
......@@ -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);
......@@ -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);
......@@ -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);
......@@ -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); \
......
......@@ -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);
......@@ -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);
......@@ -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);
......@@ -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);
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment