summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2014-12-12 23:10:17 +0100
committerGreg Kroah-Hartman2014-12-13 19:37:49 +0100
commit1db0a5ff3a32c78082e7ef0264e71aa8afa3be96 (patch)
treea076c97a1d8f392e4c2bdeaf5bdbdbed773ee07d /drivers/staging/greybus/greybus.h
parentgreybus: es1-ap-usb: don't protest when getting -EPROTO USB errors (diff)
downloadkernel-qcow2-linux-1db0a5ff3a32c78082e7ef0264e71aa8afa3be96.tar.gz
kernel-qcow2-linux-1db0a5ff3a32c78082e7ef0264e71aa8afa3be96.tar.xz
kernel-qcow2-linux-1db0a5ff3a32c78082e7ef0264e71aa8afa3be96.zip
greybus: bundle: s/gb_interface/gb_bundle/g
Rename struct gb_interface to struct gb_bundle It's a lot of renaming, some structures got renamed and also some fields, but the goal was to rename things to make sense with the new naming of how the system is put together in the 'driver model' view. Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/greybus.h')
-rw-r--r--drivers/staging/greybus/greybus.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index f243dd2c1835..230cc2859b27 100644
--- a/drivers/staging/greybus/greybus.h
+++ b/drivers/staging/greybus/greybus.h
@@ -172,11 +172,11 @@ extern struct bus_type greybus_bus_type;
int gb_uart_device_init(struct gb_connection *connection);
void gb_uart_device_exit(struct gb_connection *connection);
-int svc_set_route_send(struct gb_interface *interface,
+int svc_set_route_send(struct gb_bundle *bundle,
struct greybus_host_device *hd);
extern struct device_type greybus_interface_block_type;
-extern struct device_type greybus_interface_type;
+extern struct device_type greybus_bundle_type;
extern struct device_type greybus_connection_type;
static inline int is_gb_interface_block(const struct device *dev)
@@ -184,9 +184,9 @@ static inline int is_gb_interface_block(const struct device *dev)
return dev->type == &greybus_interface_block_type;
}
-static inline int is_gb_interface(const struct device *dev)
+static inline int is_gb_bundle(const struct device *dev)
{
- return dev->type == &greybus_interface_type;
+ return dev->type == &greybus_bundle_type;
}
static inline int is_gb_connection(const struct device *dev)