Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6e139bc authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

greybus: hd: use common prefix for exported functions



Rename the exported functions using the common gb_-prefix.

Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent a8cc020f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -396,7 +396,7 @@ static void ap_disconnect(struct usb_interface *interface)

	usb_set_intfdata(interface, NULL);
	udev = es1->usb_dev;
	greybus_remove_hd(es1->hd);
	gb_hd_remove(es1->hd);

	usb_put_dev(udev);
}
@@ -613,7 +613,7 @@ static int ap_probe(struct usb_interface *interface,

	udev = usb_get_dev(interface_to_usbdev(interface));

	hd = greybus_create_hd(&es1_driver, &udev->dev, ES1_GBUF_MSG_SIZE_MAX,
	hd = gb_hd_create(&es1_driver, &udev->dev, ES1_GBUF_MSG_SIZE_MAX,
				CPORT_COUNT);
	if (IS_ERR(hd)) {
		usb_put_dev(udev);
+3 −3
Original line number Diff line number Diff line
@@ -548,7 +548,7 @@ static void ap_disconnect(struct usb_interface *interface)

	usb_set_intfdata(interface, NULL);
	udev = es2->usb_dev;
	greybus_remove_hd(es2->hd);
	gb_hd_remove(es2->hd);
	kfree(es2->cport_to_ep);

	usb_put_dev(udev);
@@ -807,7 +807,7 @@ static int ap_probe(struct usb_interface *interface,
		return num_cports;
	}

	hd = greybus_create_hd(&es2_driver, &udev->dev, ES2_GBUF_MSG_SIZE_MAX,
	hd = gb_hd_create(&es2_driver, &udev->dev, ES2_GBUF_MSG_SIZE_MAX,
				num_cports);
	if (IS_ERR(hd)) {
		usb_put_dev(udev);
+7 −7
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ static void free_hd(struct kref *kref)
	mutex_unlock(&hd_mutex);
}

struct gb_host_device *greybus_create_hd(struct gb_hd_driver *driver,
struct gb_host_device *gb_hd_create(struct gb_hd_driver *driver,
					struct device *parent,
					size_t buffer_size_max,
					size_t num_cports)
@@ -94,9 +94,9 @@ struct gb_host_device *greybus_create_hd(struct gb_hd_driver *driver,

	return hd;
}
EXPORT_SYMBOL_GPL(greybus_create_hd);
EXPORT_SYMBOL_GPL(gb_hd_create);

void greybus_remove_hd(struct gb_host_device *hd)
void gb_hd_remove(struct gb_host_device *hd)
{
	/*
	 * Tear down all interfaces, modules, and the endo that is associated
@@ -112,4 +112,4 @@ void greybus_remove_hd(struct gb_host_device *hd)

	kref_put_mutex(&hd->kref, free_hd, &hd_mutex);
}
EXPORT_SYMBOL_GPL(greybus_remove_hd);
EXPORT_SYMBOL_GPL(gb_hd_remove);
+5 −5
Original line number Diff line number Diff line
@@ -48,10 +48,10 @@ struct gb_host_device {
	unsigned long hd_priv[0] __aligned(sizeof(s64));
};

struct gb_host_device *greybus_create_hd(struct gb_hd_driver *driver,
struct gb_host_device *gb_hd_create(struct gb_hd_driver *driver,
					struct device *parent,
					size_t buffer_size_max,
					size_t num_cports);
void greybus_remove_hd(struct gb_host_device *hd);
void gb_hd_remove(struct gb_host_device *hd);

#endif	/* __HD_H */