This is done from a common place now, no need to replicate it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
/* 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;
/* 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)
{
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;