summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/hd.c
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.c
parent2537636abae5b81a1de5ad7511a29306f39b2167 (diff)
downloadop-kernel-dev-a8cc020f3f8ec684f0c48d30524ae8198b56038b.zip
op-kernel-dev-a8cc020f3f8ec684f0c48d30524ae8198b56038b.tar.gz
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.c')
-rw-r--r--drivers/staging/greybus/hd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/hd.c b/drivers/staging/greybus/hd.c
index a09a920..910e1d2 100644
--- a/drivers/staging/greybus/hd.c
+++ b/drivers/staging/greybus/hd.c
@@ -28,7 +28,7 @@ static void free_hd(struct kref *kref)
mutex_unlock(&hd_mutex);
}
-struct gb_host_device *greybus_create_hd(struct greybus_host_driver *driver,
+struct gb_host_device *greybus_create_hd(struct gb_hd_driver *driver,
struct device *parent,
size_t buffer_size_max,
size_t num_cports)
@@ -40,7 +40,7 @@ struct gb_host_device *greybus_create_hd(struct greybus_host_driver *driver,
* so that we don't have to every time we make them.
*/
if ((!driver->message_send) || (!driver->message_cancel)) {
- pr_err("Must implement all greybus_host_driver callbacks!\n");
+ pr_err("Must implement all gb_hd_driver callbacks!\n");
return ERR_PTR(-EINVAL);
}
OpenPOWER on IntegriCloud