linux-sg2042/include/linux/mtd
Tudor Ambarus 1df1fc8c62 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 <tudor.ambarus@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210403060931.7119-1-tudor.ambarus@microchip.com
2021-04-16 20:30:54 +02:00
..
bbm.h mtd: rawnand: Stop using nand_release() 2020-05-31 10:53:40 +02:00
blktrans.h mtd: Add helper macro for register_mtd_blktrans boilerplate 2021-03-11 09:37:48 +01:00
cfi.h mtd: Replace zero-length array with flexible-array 2020-05-26 13:30:06 +05:30
cfi_endian.h
concat.h
doc2000.h
flashchip.h mtd: onenand: omap2: Fix errors in style 2020-01-09 20:08:15 +01:00
ftl.h
gen_probe.h
hyperbus.h mtd: hyperbus: add Renesas RPC-IF driver 2020-10-06 12:36:21 +05:30
inftl.h
jedec.h
latch-addr-flash.h
lpc32xx_mlc.h
lpc32xx_slc.h
map.h
mtd.h mtd: core: Constify buf in mtd_write_user_prot_reg() 2021-04-16 20:30:54 +02:00
mtdram.h
nand-ecc-sw-bch.h mtd: nand: ecc-bch: Use the public nsteps field 2021-03-11 09:37:28 +01:00
nand-ecc-sw-hamming.h mtd: nand: ecc-hamming: Use the public nsteps field 2021-03-11 09:37:28 +01:00
nand-gpio.h
nand.h mtd: nand: Add a helper to retrieve the number of ECC bytes per step 2021-03-11 09:37:28 +01:00
ndfc.h
nftl.h
onenand.h
onenand_regs.h This pull-request contains the following changes for MTD: 2019-07-13 15:42:44 -07:00
onfi.h
partitions.h mtd: Add support for emulated SLC mode on MLC NANDs 2020-05-11 09:51:41 +02:00
pfow.h mtd: lpddr: Move function print_drs_error to lpddr_cmds.c 2020-08-27 14:14:46 +02:00
physmap.h
pismo.h
plat-ram.h
platnand.h
qinfo.h mtd: Replace zero-length array with flexible-array 2020-05-26 13:30:06 +05:30
rawnand.h mtd: rawnand: Add support for secure regions in NAND memory 2021-04-07 10:06:24 +02:00
sh_flctl.h
sharpsl.h mtd: nand: ecc-hamming: Remove useless includes 2020-12-10 22:37:30 +01:00
spear_smi.h
spi-nor.h mtd: spi-nor: implement OTP support for Winbond and similar flashes 2021-04-02 09:32:27 +03:00
spinand.h mtd: spinand: Instantiate a SPI-NAND on-die ECC engine 2020-12-10 22:37:30 +01:00
super.h mtd: Kill mount_mtd() 2019-09-05 14:34:26 -04:00
ubi.h
xip.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00