summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/hd.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-11-03 18:03:23 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2015-11-04 20:25:57 -0800
commit2537636abae5b81a1de5ad7511a29306f39b2167 (patch)
treef10f86957f97fd4e67205fe5339b744c5cd77273 /drivers/staging/greybus/hd.h
parent7bc6faaca7d829d4e6f5d65909d5068f73b76bda (diff)
greybus: hd: rename host-device structure
Rename host-device structure gb_host_device to match our other structures. 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.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/staging/greybus/hd.h b/drivers/staging/greybus/hd.h
index df953d43a634..122790d03b42 100644
--- a/drivers/staging/greybus/hd.h
+++ b/drivers/staging/greybus/hd.h
@@ -10,7 +10,7 @@
#ifndef __HD_H
#define __HD_H
-struct greybus_host_device;
+struct gb_host_device;
struct gb_message;
/* Greybus "Host driver" structure, needed by a host controller driver to be
@@ -19,17 +19,16 @@ struct gb_message;
struct greybus_host_driver {
size_t hd_priv_size;
- int (*cport_enable)(struct greybus_host_device *hd, u16 cport_id);
- int (*cport_disable)(struct greybus_host_device *hd, u16 cport_id);
- int (*message_send)(struct greybus_host_device *hd, u16 dest_cport_id,
+ int (*cport_enable)(struct gb_host_device *hd, u16 cport_id);
+ int (*cport_disable)(struct gb_host_device *hd, u16 cport_id);
+ int (*message_send)(struct gb_host_device *hd, u16 dest_cport_id,
struct gb_message *message, gfp_t gfp_mask);
void (*message_cancel)(struct gb_message *message);
- int (*latency_tag_enable)(struct greybus_host_device *hd, u16 cport_id);
- int (*latency_tag_disable)(struct greybus_host_device *hd,
- u16 cport_id);
+ int (*latency_tag_enable)(struct gb_host_device *hd, u16 cport_id);
+ int (*latency_tag_disable)(struct gb_host_device *hd, u16 cport_id);
};
-struct greybus_host_device {
+struct gb_host_device {
struct kref kref;
struct device *parent;
const struct greybus_host_driver *driver;
@@ -52,10 +51,10 @@ struct greybus_host_device {
unsigned long hd_priv[0] __aligned(sizeof(s64));
};
-struct greybus_host_device *greybus_create_hd(struct greybus_host_driver *hd,
+struct gb_host_device *greybus_create_hd(struct greybus_host_driver *hd,
struct device *parent,
size_t buffer_size_max,
size_t num_cports);
-void greybus_remove_hd(struct greybus_host_device *hd);
+void greybus_remove_hd(struct gb_host_device *hd);
#endif /* __HD_H */