diff options
author | Miquel Raynal <[email protected]> | 2023-03-28 17:41:02 +0200 |
---|---|---|
committer | Tudor Ambarus <[email protected]> | 2023-03-29 13:46:07 +0300 |
commit | e96d4605b024495d42279ae8e899969b29f7ce5f (patch) | |
tree | 30fa109c081f4df05b4ebd7c5c4081386d335b3a /drivers/usb/cdns3/cdns3-debug.h | |
parent | c154dbd28003d8fcc857d88596b2f0383617d1e7 (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Tudor Ambarus <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions