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

Commit 2dad338c authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

greybus: hid: Drop get_version support



This is done from a common place now, no need to replicate it.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 03490fdb
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -68,8 +68,6 @@ struct gb_hid_input_report_request {
/* Greybus HID device's structure */
struct gb_hid {
	struct gb_connection		*connection;
	u8				version_major;
	u8				version_minor;

	struct hid_device		*hid;
	struct gb_hid_desc_response	hdesc;
@@ -86,9 +84,6 @@ static DEFINE_MUTEX(gb_hid_open_mutex);

/* Routines to get controller's information over greybus */

/* Define get_version() routine */
define_get_version(gb_hid, HID);

/* Operations performed on greybus */
static int gb_hid_get_desc(struct gb_hid *ghid)
{
@@ -445,10 +440,6 @@ static int gb_hid_init(struct gb_hid *ghid)
	struct hid_device *hid = ghid->hid;
	int ret;

	ret = get_version(ghid);
	if (ret)
		return ret;

	ret = gb_hid_get_desc(ghid);
	if (ret)
		return ret;