Browse Source

Replace bfg_claim_hid with lowlevel_claim

Luke Dashjr 12 years ago
parent
commit
b86427a781
3 changed files with 2 additions and 3 deletions
  1. 1 1
      driver-hashbuster.c
  2. 1 1
      driver-nanofury.c
  3. 0 1
      fpgautils.h

+ 1 - 1
driver-hashbuster.c

@@ -184,7 +184,7 @@ bool hashbuster_lowl_probe(const struct lowlevel_device_info * const info)
 	
 	hid_close(h);
 	
-	if (bfg_claim_hid(&hashbuster_drv, true, info->path))
+	if (lowlevel_claim(&hashbuster_drv, true, info))
 		return false;
 	
 	struct cgpu_info *cgpu;

+ 1 - 1
driver-nanofury.c

@@ -210,7 +210,7 @@ bool nanofury_lowl_probe(const struct lowlevel_device_info * const info)
 	nanofury_device_off(mcp);
 	mcp2210_close(mcp);
 	
-	if (bfg_claim_hid(&nanofury_drv, true, info->path))
+	if (lowlevel_claim(&nanofury_drv, true, info))
 		return false;
 	
 	struct cgpu_info *cgpu;

+ 0 - 1
fpgautils.h

@@ -40,7 +40,6 @@ extern char *bfg_make_devid_usb(uint8_t usbbus, uint8_t usbaddr);
 extern struct device_drv *bfg_claim_usb(struct device_drv * const, const bool verbose, const uint8_t usbbus, const uint8_t usbaddr);
 #define bfg_make_devid_libusb(dev)  bfg_make_devid_usb(libusb_get_bus_number(dev), libusb_get_device_address(dev))
 #define bfg_claim_libusb(api, verbose, dev)  bfg_claim_usb(api, verbose, libusb_get_bus_number(dev), libusb_get_device_address(dev))
-#define bfg_claim_hid(api, verbose, path)  bfg_claim_any2(api, (verbose)?"":NULL, "hid", path)
 
 #ifdef HAVE_LIBUSB
 extern void cgpu_copy_libusb_strings(struct cgpu_info *, libusb_device *);