From cf0709c68e9489bdd91dbfd64f175c6cb283d2d0 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Tue, 5 Aug 2008 14:54:56 +0000 Subject: [PATCH] Made firmware data pointer 'const' to avoid compiler warnings for 2.6.27-rc1. --- comedi/drivers/jr3_pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comedi/drivers/jr3_pci.c b/comedi/drivers/jr3_pci.c index 5a7266fe..ac2dfe88 100644 --- a/comedi/drivers/jr3_pci.c +++ b/comedi/drivers/jr3_pci.c @@ -45,7 +45,6 @@ Devices: [JR3] PCI force sensor board (jr3_pci) #include #include #include -#include #include "comedi_pci.h" #include "jr3_pci.h" @@ -62,7 +61,7 @@ static struct device comedi_fw_device = { }; typedef int comedi_firmware_callback(comedi_device * dev, - u8 * data, size_t size); + const u8 * data, size_t size); static int comedi_load_firmware(comedi_device * dev, char *name, comedi_firmware_callback cb) @@ -403,7 +402,7 @@ static void jr3_pci_open(comedi_device * dev) } } -int read_idm_word(u8 * data, size_t size, int *pos, unsigned int *val) +int read_idm_word(const u8 * data, size_t size, int *pos, unsigned int *val) { int result = 0; if (pos != 0 && val != 0) { @@ -425,7 +424,8 @@ int read_idm_word(u8 * data, size_t size, int *pos, unsigned int *val) return result; } -static int jr3_download_firmware(comedi_device * dev, u8 * data, size_t size) +static int jr3_download_firmware(comedi_device * dev, const u8 * data, + size_t size) { /* * IDM file format is: -- 2.26.2