diff options
-rw-r--r-- | drivers/base/firmware_class.c | 2 | ||||
-rw-r--r-- | include/linux/firmware.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 9fd4a8534146..264b3a2cd860 100644 --- a/drivers/base/firmware_class.c +++ b/drivers/base/firmware_class.c | |||
@@ -257,7 +257,7 @@ firmware_data_write(struct kobject *kobj, struct bin_attribute *bin_attr, | |||
257 | if (retval) | 257 | if (retval) |
258 | goto out; | 258 | goto out; |
259 | 259 | ||
260 | memcpy(fw->data + offset, buffer, count); | 260 | memcpy((u8 *)fw->data + offset, buffer, count); |
261 | 261 | ||
262 | fw->size = max_t(size_t, offset + count, fw->size); | 262 | fw->size = max_t(size_t, offset + count, fw->size); |
263 | retval = count; | 263 | retval = count; |
diff --git a/include/linux/firmware.h b/include/linux/firmware.h index 6c7eff2ebada..88718d60153c 100644 --- a/include/linux/firmware.h +++ b/include/linux/firmware.h | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | struct firmware { | 9 | struct firmware { |
10 | size_t size; | 10 | size_t size; |
11 | u8 *data; | 11 | const u8 *data; |
12 | }; | 12 | }; |
13 | 13 | ||
14 | struct device; | 14 | struct device; |