summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/hd.c
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.c
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.c')
-rw-r--r--drivers/staging/greybus/hd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/greybus/hd.c b/drivers/staging/greybus/hd.c
index 3ac85077b431..a09a9200ed03 100644
--- a/drivers/staging/greybus/hd.c
+++ b/drivers/staging/greybus/hd.c
@@ -19,21 +19,21 @@ static DEFINE_MUTEX(hd_mutex);
static void free_hd(struct kref *kref)
{
- struct greybus_host_device *hd;
+ struct gb_host_device *hd;
- hd = container_of(kref, struct greybus_host_device, kref);
+ hd = container_of(kref, struct gb_host_device, kref);
ida_destroy(&hd->cport_id_map);
kfree(hd);
mutex_unlock(&hd_mutex);
}
-struct greybus_host_device *greybus_create_hd(struct greybus_host_driver *driver,
+struct gb_host_device *greybus_create_hd(struct greybus_host_driver *driver,
struct device *parent,
size_t buffer_size_max,
size_t num_cports)
{
- struct greybus_host_device *hd;
+ struct gb_host_device *hd;
/*
* Validate that the driver implements all of the callbacks
@@ -96,7 +96,7 @@ struct greybus_host_device *greybus_create_hd(struct greybus_host_driver *driver
}
EXPORT_SYMBOL_GPL(greybus_create_hd);
-void greybus_remove_hd(struct greybus_host_device *hd)
+void greybus_remove_hd(struct gb_host_device *hd)
{
/*
* Tear down all interfaces, modules, and the endo that is associated