spi: spi-qpic-snand: use CW_PER_PAGE_MASK bitmask
authorGabor Juhos <j4g8y7@gmail.com>
Thu, 15 May 2025 18:58:05 +0000 (20:58 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 16 May 2025 11:18:21 +0000 (13:18 +0200)
commit2abf107dcd797c60c86e9f17319cd1658862f6b2
tree23cd42ec2731d4792bc032c6d351891d3df57f0a
parent4614fd6342ab69feebb067d5db84a9bfb9aada9f
spi: spi-qpic-snand: use CW_PER_PAGE_MASK bitmask

Change the code to use the already defined CW_PER_PAGE_MASK
bitmask along with the FIELD_PREP() macro instead of using
magic values.

This makes the code more readable. It also syncs the affected
codes with their counterparts in the 'qcom_nandc' driver, so it
makes it easier to spot the differences between the two
implementations.

No functional changes intended.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Reviewed-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Link: https://patch.msgid.link/20250515-qpic-snand-use-bitmasks-v1-1-11729aeae73b@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c