summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/hd.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-11-03 18:03:24 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2015-11-04 20:25:57 -0800
commita8cc020f3f8ec684f0c48d30524ae8198b56038b (patch)
tree2bd275ecd1d9a03ce72a885d19de90af202a78de /drivers/staging/greybus/hd.h
parent2537636abae5b81a1de5ad7511a29306f39b2167 (diff)
greybus: hd: rename host-driver structure
Rename host-driver structure to gb_hd_driver to more clearly separate it from the host-device structure. Also remove an outdated description of the struct. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/hd.h')
-rw-r--r--drivers/staging/greybus/hd.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/staging/greybus/hd.h b/drivers/staging/greybus/hd.h
index 122790d03b42..7aea0c54338d 100644
--- a/drivers/staging/greybus/hd.h
+++ b/drivers/staging/greybus/hd.h
@@ -13,10 +13,7 @@
struct gb_host_device;
struct gb_message;
-/* Greybus "Host driver" structure, needed by a host controller driver to be
- * able to handle both SVC control as well as "real" greybus messages
- */
-struct greybus_host_driver {
+struct gb_hd_driver {
size_t hd_priv_size;
int (*cport_enable)(struct gb_host_device *hd, u16 cport_id);
@@ -31,7 +28,7 @@ struct greybus_host_driver {
struct gb_host_device {
struct kref kref;
struct device *parent;
- const struct greybus_host_driver *driver;
+ const struct gb_hd_driver *driver;
struct list_head interfaces;
struct list_head connections;
@@ -51,7 +48,7 @@ struct gb_host_device {
unsigned long hd_priv[0] __aligned(sizeof(s64));
};
-struct gb_host_device *greybus_create_hd(struct greybus_host_driver *hd,
+struct gb_host_device *greybus_create_hd(struct gb_hd_driver *driver,
struct device *parent,
size_t buffer_size_max,
size_t num_cports);