diff options
author | Greg Kroah-Hartman <greg@kroah.com> | 2014-12-11 17:10:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2014-12-11 19:53:59 -0500 |
commit | 4ec7b07915523aa19ec31ec7e07cb8d903d39526 (patch) | |
tree | 7ac4cd2ed956ea53ec8da46a592635f69457d79e /drivers/staging/greybus/interface.h | |
parent | greybus: interface_block: rename module.[c|h] to interface_block.[c|h] (diff) | |
download | linux-4ec7b07915523aa19ec31ec7e07cb8d903d39526.tar.gz linux-4ec7b07915523aa19ec31ec7e07cb8d903d39526.tar.bz2 linux-4ec7b07915523aa19ec31ec7e07cb8d903d39526.zip |
greybus: interface_block: s/gb_module/gb_interface_block/
Rename struct gb_module to struct gb_interface_block
It's a complex rename, some functions got their name changed where
needed, but primarily this change is focused on the structure and where
it is used. Future changes will clean up the remaining usages of the
term "module" in individual changes, this one spanned the whole
subsystem so do it all at once.
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/interface.h')
-rw-r--r-- | drivers/staging/greybus/interface.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h index bfd1781786ac..2f435fd3f206 100644 --- a/drivers/staging/greybus/interface.h +++ b/drivers/staging/greybus/interface.h @@ -13,7 +13,7 @@ struct gb_interface { struct device dev; - struct gb_module *gmod; + struct gb_interface_block *gb_ib; u8 id; u8 device_id; struct list_head connections; @@ -22,11 +22,11 @@ struct gb_interface { }; #define to_gb_interface(d) container_of(d, struct gb_interface, dev) -struct gb_interface *gb_interface_create(struct gb_module *gmod, u8 module_id); -void gb_interface_destroy(struct gb_module *gmod); -int gb_interface_init(struct gb_module *gmod, u8 module_id, u8 device_id); +struct gb_interface *gb_interface_create(struct gb_interface_block *gb_ib, u8 module_id); +void gb_interface_destroy(struct gb_interface_block *gb_ib); +int gb_interface_init(struct gb_interface_block *gb_ib, u8 module_id, u8 device_id); -struct gb_interface *gb_interface_find(struct gb_module *gmod, u8 interface_id); +struct gb_interface *gb_interface_find(struct gb_interface_block *gb_ib, u8 interface_id); int gb_interface_connections_init(struct gb_interface *interface); void gb_interface_connections_exit(struct gb_interface *interface); |