aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregkh@suse.de <gregkh@suse.de>2008-05-29 13:17:38 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 09:26:45 -0400
commited5a2825feb79c424882c9d0f483172a91c93b54 (patch)
treee66181cf03ed56d0c279301d470a38241dd0a336
parenta13b04af713bfa60d44cbac956ab00d3a5793de7 (diff)
isight: treat firmware data as const
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r--drivers/usb/misc/isight_firmware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/isight_firmware.c b/drivers/usb/misc/isight_firmware.c
index 9f30aa1f8a5d..d94aa7387608 100644
--- a/drivers/usb/misc/isight_firmware.c
+++ b/drivers/usb/misc/isight_firmware.c
@@ -41,7 +41,7 @@ static int isight_firmware_load(struct usb_interface *intf,
41 const struct firmware *firmware; 41 const struct firmware *firmware;
42 unsigned char *buf = kmalloc(50, GFP_KERNEL); 42 unsigned char *buf = kmalloc(50, GFP_KERNEL);
43 unsigned char data[4]; 43 unsigned char data[4];
44 u8 *ptr; 44 const u8 *ptr;
45 45
46 if (!buf) 46 if (!buf)
47 return -ENOMEM; 47 return -ENOMEM;