]> git.ipfire.org Git - thirdparty/linux.git/commit
mtd: spi-nor: swp: Use a pointer for SR instead of a single byte
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 26 May 2026 14:56:34 +0000 (16:56 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Tue, 26 May 2026 15:21:04 +0000 (17:21 +0200)
commit2188bbbb4a20ca1864de8e1447d13e5d19e8355a
tree5ad06c39565f5645e89d434ded096916e0f704ec
parentcb3021466daa3d7f87cdec8c294649315dad711f
mtd: spi-nor: swp: Use a pointer for SR instead of a single byte

At this stage, the Status Register is most often seen as a single
byte. This is subject to change when we will need to read the CMP bit
which is located in the Control Register (kind of secondary status
register). Both will need to be carried.

Change a few prototypes to carry a u8 pointer. This way it also makes it
very clear where we access the first register, and where we will access
the second.

There is no functional change.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
drivers/mtd/spi-nor/swp.c