mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
firmware: make fw->data const
In preparation for supporting firmware files linked into the static kernel, make fw->data const to ensure that users aren't modifying it (so that we can pass a pointer to the original in-kernel copy, rather than having to copy it). Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
fd4f80de46
commit
b7a39bd0af
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
struct firmware {
|
||||
size_t size;
|
||||
u8 *data;
|
||||
const u8 *data;
|
||||
};
|
||||
|
||||
struct device;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue