]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: spinand: otp: add helpers functions
authorMartin Kurbanov <mmkurbanov@salutedevices.com>
Mon, 10 Feb 2025 14:34:16 +0000 (17:34 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 10 Feb 2025 14:52:59 +0000 (15:52 +0100)
commit9ad2857c82d56017402256fd3e2ed401cc7f6fb9
treee6c7f4a5de4f43125af1ea96133c9b779f62080c
parente278b8c73b0526f8e3ee22f4827c8fe07c2109ba
mtd: spinand: otp: add helpers functions

The global functions spinand_otp_read() and spinand_otp_write() have
been introduced. Since most SPI-NAND flashes read/write OTP in the same
way, let's define global functions to avoid code duplication.

Signed-off-by: Martin Kurbanov <mmkurbanov@salutedevices.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/otp.c
include/linux/mtd/spinand.h