diff options
author | Tudor Ambarus <[email protected]> | 2021-04-03 09:09:31 +0300 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2021-04-16 20:30:54 +0200 |
commit | 1df1fc8c62f7527d953c7f3869930067bf5b3f29 (patch) | |
tree | b683a6e18b43e5a37f47bbbdb2cfb27d54056cde /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ef4ed780d005d65b1a70ba7803233cace93a73ac (diff) |
mtd: core: Constify buf in mtd_write_user_prot_reg()
The write buffer comes from user and should be const.
Constify write buffer in mtd core and across all _write_user_prot_reg()
users. cfi_cmdset_{0001, 0002} and onenand_base will pay the cost of an
explicit cast to discard the const qualifier since the beginning, since
they are using an otp_op_t function prototype that is used for both reads
and writes. mtd_dataflash and SPI NOR will benefit of the const buffer
because they are using different paths for writes and reads.
Signed-off-by: Tudor Ambarus <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions