diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-03-28 18:41:02 +0300 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@linaro.org> | 2023-03-29 13:46:07 +0300 |
commit | e96d4605b024495d42279ae8e899969b29f7ce5f (patch) | |
tree | 30fa109c081f4df05b4ebd7c5c4081386d335b3a /drivers/mtd/spi-nor/core.h | |
parent | c154dbd28003d8fcc857d88596b2f0383617d1e7 (diff) | |
download | linux-e96d4605b024495d42279ae8e899969b29f7ce5f.tar.xz |
mtd: spi-nor: Prepare the introduction of a new locking mechanism
This commit alone just introduces two new "prepare and lock" pairs of
helpers which do the exact same thing as before. They will soon be
improved in a followup commit which actually brings the logic, but I
figured out it was more readable to do it this way.
One new pair is suffixed _pe which stands for "program and erase" and
hence is being called by spi_nor_write() and spi_nor_erase().
The other pair is suffixed _rd which stands for "read" and hence is
being called by spi_nor_read().
One note however, these extra helpers will need to know the operation
range, so they come with two new parameters to define it. Otherwise
there is no functional change.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230328154105.448540-6-miquel.raynal@bootlin.com
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to 'drivers/mtd/spi-nor/core.h')
0 files changed, 0 insertions, 0 deletions