summaryrefslogtreecommitdiff
path: root/libusb/os/sunos_usb.c
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-01-26 22:01:50 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2020-01-26 22:01:50 -0800
commitf128429320de75d0cd184acbf91d8ae8181e16d0 (patch)
treeb33b76aaba1f03a23982fdfcca87b31d8bb1d228 /libusb/os/sunos_usb.c
parent80d2238cb80469aee03d0367080350496d8548eb (diff)
downloadlibusb-f128429320de75d0cd184acbf91d8ae8181e16d0.tar.gz
linux_usbfs: Drop support for kernel versions earlier than 2.6.32
The Linux backend plays lots of games to try and work with older versions of the kernel that do not have certain features. Lets simplify the backend by requiring at least 2.6.32 to use libusb. The only thing remaining that still requires explicit version checking is the maximum iso frame packet size. Anything running 2.6.32 or later is sure to have a functional monotonic clock, so this change also allows the removal of the get_timerfd_clock() function from the backend as well as the check for a functional monotonic clock during initialization. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/sunos_usb.c')
-rw-r--r--libusb/os/sunos_usb.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libusb/os/sunos_usb.c b/libusb/os/sunos_usb.c
index 85d0fdf..5d951c9 100644
--- a/libusb/os/sunos_usb.c
+++ b/libusb/os/sunos_usb.c
@@ -1641,13 +1641,6 @@ sunos_usb_get_status(int fd)
return (status);
}
-#ifdef HAVE_TIMERFD
-static clockid_t op_get_timerfd_clockid(void)
-{
- return CLOCK_MONOTONIC;
-}
-#endif
-
const struct usbi_os_backend usbi_backend = {
.name = "Solaris",
.caps = 0,
@@ -1672,9 +1665,6 @@ const struct usbi_os_backend usbi_backend = {
.cancel_transfer = sunos_cancel_transfer,
.handle_transfer_completion = sunos_handle_transfer_completion,
.clock_gettime = sunos_clock_gettime,
-#ifdef HAVE_TIMERFD
- .get_timerfd_clockid = op_get_timerfd_clockid,
-#endif
.device_priv_size = sizeof(sunos_dev_priv_t),
.device_handle_priv_size = sizeof(sunos_dev_handle_priv_t),
.transfer_priv_size = sizeof(sunos_xfer_priv_t),