summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2016-09-08 13:46:38 (GMT)
committerGreg Kroah-Hartman <gregkh@google.com>2016-09-19 14:30:41 (GMT)
commitbe21106d67db9ad3c66e48c8efdcf1bc08be45a4 (patch)
tree842959ed4f7e90369b5697c2c73c12970e63989a /drivers
parent887520884b9925312b78d23f323d9cf1f7e603af (diff)
downloadlinux-be21106d67db9ad3c66e48c8efdcf1bc08be45a4.tar.xz
staging: greybus: hid: remove KERNEL_VERSION checks
No need to support older kernel versions in the Greybus HID driver, so remove the checks as needed, we can now rely on all of the "new" apis being present. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/hid.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/staging/greybus/hid.c b/drivers/staging/greybus/hid.c
index b558c81..730d746 100644
--- a/drivers/staging/greybus/hid.c
+++ b/drivers/staging/greybus/hid.c
@@ -277,23 +277,6 @@ static int gb_hid_raw_request(struct hid_device *hid, unsigned char reportnum,
}
}
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
-static int gb_hid_get_raw_report(struct hid_device *hid,
- unsigned char reportnum, __u8 *buf,
- size_t len, unsigned char rtype)
-{
- return gb_hid_raw_request(hid, reportnum, buf, len, rtype,
- HID_REQ_GET_REPORT);
-}
-
-static int gb_hid_output_raw_report(struct hid_device *hid, __u8 *buf,
- size_t len, unsigned char rtype)
-{
- return gb_hid_raw_request(hid, buf[0], buf, len, rtype,
- HID_REQ_SET_REPORT);
-}
-#endif
-
/* HID Callbacks */
static int gb_hid_parse(struct hid_device *hid)
{
@@ -422,9 +405,7 @@ static struct hid_ll_driver gb_hid_ll_driver = {
.open = gb_hid_open,
.close = gb_hid_close,
.power = gb_hid_power,
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)
.raw_request = gb_hid_raw_request,
-#endif
};
static int gb_hid_init(struct gb_hid *ghid)
@@ -444,10 +425,6 @@ static int gb_hid_init(struct gb_hid *ghid)
hid->driver_data = ghid;
hid->ll_driver = &gb_hid_ll_driver;
hid->dev.parent = &ghid->connection->bundle->dev;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
- hid->hid_get_raw_report = gb_hid_get_raw_report;
- hid->hid_output_raw_report = gb_hid_output_raw_report;
-#endif
// hid->bus = BUS_GREYBUS; /* Need a bustype for GREYBUS in <linux/input.h> */
/* Set HID device's name */