Skip to contentSkip to conversation

usbdux: Declare MODULE_FIRMWARE usage

PATCH Superseded Tim Gardner 1 participant 1 message Aug 16, 2012 1 message not in the archive Staging

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/1 usbdux: Declare MODULE_FIRMWARE usage

Cc Ian Abbott <[email protected]>
Cc Mori Hess <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc H Hartley Sweeten <[email protected]>
---
 drivers/staging/comedi/drivers/usbdux.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/usbdux.c +3 -1
index 848c7ec..11ee836 100644
@@ -102,6 +102,7 @@ sampling rate. If you sample two channels you get 4kHz and so on.
 #define BULK_TIMEOUT 1000
 
 /* constants for "firmware" upload and download */
+#define FIRMWARE "usbdux_firmware.bin"
 #define USBDUXSUB_FIRMWARE 0xA0
 #define VENDOR_DIR_IN  0xC0
 #define VENDOR_DIR_OUT 0x40
@@ -2791,7 +2792,7 @@ static int usbdux_usb_probe(struct usb_interface *uinterf,
 
 	ret = request_firmware_nowait(THIS_MODULE,
 				      FW_ACTION_HOTPLUG,
-				      "usbdux_firmware.bin",
+				      FIRMWARE,
 				      &udev->dev,
 				      GFP_KERNEL,
 				      usbduxsub + index,
@@ -2850,3 +2851,4 @@ module_comedi_usb_driver(usbdux_driver, usbdux_usb_driver);
 MODULE_AUTHOR("Bernd Porr, [email protected]");
 MODULE_DESCRIPTION("Stirling/ITL USB-DUX -- [email protected]");
 MODULE_LICENSE("GPL");
+MODULE_FIRMWARE(FIRMWARE);
Signature · 1 line
1.7.9.5