浏览代码

isight: treat firmware data as const

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
gregkh@suse.de 17 年之前
父节点
当前提交
ed5a2825fe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/misc/isight_firmware.c

+ 1 - 1
drivers/usb/misc/isight_firmware.c

@@ -41,7 +41,7 @@ static int isight_firmware_load(struct usb_interface *intf,
 	const struct firmware *firmware;
 	unsigned char *buf = kmalloc(50, GFP_KERNEL);
 	unsigned char data[4];
-	u8 *ptr;
+	const u8 *ptr;
 
 	if (!buf)
 		return -ENOMEM;