usbutils set_interface is no longer valid
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/usbutils.c b/usbutils.c
index 0a28925..8ba656a 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -3311,27 +3311,6 @@ int usb_interface(struct cgpu_info *cgpu)
return interface;
}
-bool usb_set_interface(struct cgpu_info *cgpu, int interface)
-{
- bool succeed = false;
- int pstate;
-
- if (interface >= 0) {
- DEVLOCK(cgpu, pstate);
-
- if (cgpu->usbdev) {
- if (interface < cgpu->usbdev->found->intinfo_count) {
- USBIF(cgpu->usbdev) = interface;
- succeed = true;
- }
- }
-
- DEVUNLOCK(cgpu, pstate);
- }
-
- return succeed;
-}
-
enum sub_ident usb_ident(struct cgpu_info *cgpu)
{
enum sub_ident ident = IDENT_UNK;
diff --git a/usbutils.h b/usbutils.h
index 0abb05d..947e67f 100644
--- a/usbutils.h
+++ b/usbutils.h
@@ -354,7 +354,6 @@ void usb_set_cps(struct cgpu_info *cgpu, int cps);
void usb_enable_cps(struct cgpu_info *cgpu);
void usb_disable_cps(struct cgpu_info *cgpu);
int usb_interface(struct cgpu_info *cgpu);
-bool usb_set_interface(struct cgpu_info *cgpu, int interface);
enum sub_ident usb_ident(struct cgpu_info *cgpu);
void usb_set_pps(struct cgpu_info *cgpu, uint16_t PrefPacketSize);
void usb_set_dev_start(struct cgpu_info *cgpu);