summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/hd.h
diff options
context:
space:
mode:
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 */