mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
usbutils set_interface is no longer valid
This commit is contained in:
parent
166147a803
commit
0f0b0f818f
21
usbutils.c
21
usbutils.c
@ -3311,27 +3311,6 @@ int usb_interface(struct cgpu_info *cgpu)
|
|||||||
return interface;
|
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 usb_ident(struct cgpu_info *cgpu)
|
||||||
{
|
{
|
||||||
enum sub_ident ident = IDENT_UNK;
|
enum sub_ident ident = IDENT_UNK;
|
||||||
|
@ -354,7 +354,6 @@ void usb_set_cps(struct cgpu_info *cgpu, int cps);
|
|||||||
void usb_enable_cps(struct cgpu_info *cgpu);
|
void usb_enable_cps(struct cgpu_info *cgpu);
|
||||||
void usb_disable_cps(struct cgpu_info *cgpu);
|
void usb_disable_cps(struct cgpu_info *cgpu);
|
||||||
int usb_interface(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);
|
enum sub_ident usb_ident(struct cgpu_info *cgpu);
|
||||||
void usb_set_pps(struct cgpu_info *cgpu, uint16_t PrefPacketSize);
|
void usb_set_pps(struct cgpu_info *cgpu, uint16_t PrefPacketSize);
|
||||||
void usb_set_dev_start(struct cgpu_info *cgpu);
|
void usb_set_dev_start(struct cgpu_info *cgpu);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user