diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-15 01:35:08 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-15 01:35:08 +0000 |
commit | e8ff790cac3fc6b05f0e8cade08cd34b73fd5cb2 (patch) | |
tree | 6b092326f245b3551c94298704f486297d087274 /sys | |
parent | 306f0ecd13123058ea253cdc0680579627d02e0d (diff) |
remove unused uvideo_enable()/uvideo_disable()
ok mglocker@ miod@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uvideo.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index a21e1df70c0..de4784beb63 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.217 2022/07/02 08:50:42 visa Exp $ */ +/* $OpenBSD: uvideo.c,v 1.218 2022/08/15 01:35:07 jsg Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -64,7 +64,6 @@ struct uvideo_softc { struct device *sc_videodev; - int sc_enabled; int sc_max_ctrl_size; int sc_max_fbuf_size; int sc_negotiated_flag; @@ -113,8 +112,6 @@ struct uvideo_softc { uint8_t *, int); }; -int uvideo_enable(void *); -void uvideo_disable(void *); int uvideo_open(void *, int, int *, uint8_t *, void (*)(void *), void *); int uvideo_close(void *); @@ -392,39 +389,6 @@ struct uvideo_devs { ((struct uvideo_devs *)usb_lookup(uvideo_devs, v, p)) int -uvideo_enable(void *v) -{ - struct uvideo_softc *sc = v; - - DPRINTF(1, "%s: uvideo_enable sc=%p\n", DEVNAME(sc), sc); - - if (usbd_is_dying(sc->sc_udev)) - return (EIO); - - if (sc->sc_enabled) - return (EBUSY); - - sc->sc_enabled = 1; - - return (0); -} - -void -uvideo_disable(void *v) -{ - struct uvideo_softc *sc = v; - - DPRINTF(1, "%s: uvideo_disable sc=%p\n", DEVNAME(sc), sc); - - if (!sc->sc_enabled) { - printf("uvideo_disable: already disabled!\n"); - return; - } - - sc->sc_enabled = 0; -} - -int uvideo_open(void *addr, int flags, int *size, uint8_t *buffer, void (*intr)(void *), void *arg) { |