Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2023 16:20:34 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5fa183351459 - main - wmt: purge EOL release compatibility
Message-ID:  <202302041620.314GKYb7013793@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=5fa183351459996cfb86f8621de1a0e1bf985d67

commit 5fa183351459996cfb86f8621de1a0e1bf985d67
Author:     Elliott Mitchell <ehem+freebsd@m5p.com>
AuthorDate: 2022-06-23 00:53:47 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-02-04 16:13:10 +0000

    wmt: purge EOL release compatibility
    
    Remove FreeBSD 11 support
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/603
    Differential Revision: https://reviews.freebsd.org/D35560
---
 sys/dev/usb/input/wmt.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/sys/dev/usb/input/wmt.c b/sys/dev/usb/input/wmt.c
index 5fedd846d258..ac4bf5ca695b 100644
--- a/sys/dev/usb/input/wmt.c
+++ b/sys/dev/usb/input/wmt.c
@@ -261,22 +261,12 @@ static device_probe_t	wmt_probe;
 static device_attach_t	wmt_attach;
 static device_detach_t	wmt_detach;
 
-#if __FreeBSD_version >= 1200077
 static evdev_open_t	wmt_ev_open;
 static evdev_close_t	wmt_ev_close;
-#else
-static evdev_open_t	wmt_ev_open_11;
-static evdev_close_t	wmt_ev_close_11;
-#endif
 
 static const struct evdev_methods wmt_evdev_methods = {
-#if __FreeBSD_version >= 1200077
 	.ev_open = &wmt_ev_open,
 	.ev_close = &wmt_ev_close,
-#else
-	.ev_open = &wmt_ev_open_11,
-	.ev_close = &wmt_ev_close_11,
-#endif
 };
 
 static const struct usb_config wmt_config[WMT_N_TRANSFER] = {
@@ -719,7 +709,6 @@ wmt_ev_open_11(struct evdev_dev *evdev, void *ev_softc)
 	return (0);
 }
 
-#if __FreeBSD_version >= 1200077
 static int
 wmt_ev_close(struct evdev_dev *evdev)
 {
@@ -738,7 +727,6 @@ wmt_ev_open(struct evdev_dev *evdev)
 	return (wmt_ev_open_11(evdev, sc));
 
 }
-#endif
 
 static enum wmt_type
 wmt_hid_parse(struct wmt_softc *sc, const void *d_ptr, uint16_t d_len)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302041620.314GKYb7013793>