diff options
author | David Woodhouse <dwmw2@infradead.org> | 2008-05-24 00:10:26 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-10 14:26:25 +0100 |
commit | afd636e94d3cd99697f7291dbf957f0ca8a7544e (patch) | |
tree | 33bdc06833050a8af80aa3fc92bb5f4801a7cb7d /drivers/net/irda | |
parent | 2f26e8afb22d79f655def146894595a39aeea1f8 (diff) | |
download | op-kernel-dev-afd636e94d3cd99697f7291dbf957f0ca8a7544e.zip op-kernel-dev-afd636e94d3cd99697f7291dbf957f0ca8a7544e.tar.gz |
irda-usb: treat firmware data as const
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/irda-usb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c index 6f50ed7..18b471c 100644 --- a/drivers/net/irda/irda-usb.c +++ b/drivers/net/irda/irda-usb.c @@ -1024,7 +1024,7 @@ static int irda_usb_is_receiving(struct irda_usb_cb *self) * Upload firmware code to SigmaTel 421X IRDA-USB dongle */ static int stir421x_fw_upload(struct irda_usb_cb *self, - unsigned char *patch, + const unsigned char *patch, const unsigned int patch_len) { int ret = -ENOMEM; @@ -1073,11 +1073,11 @@ static int stir421x_fw_upload(struct irda_usb_cb *self, */ static int stir421x_patch_device(struct irda_usb_cb *self) { - unsigned int i; - int ret; - char stir421x_fw_name[11]; - const struct firmware *fw; - unsigned char *fw_version_ptr; /* pointer to version string */ + unsigned int i; + int ret; + char stir421x_fw_name[11]; + const struct firmware *fw; + const unsigned char *fw_version_ptr; /* pointer to version string */ unsigned long fw_version = 0; /* |