]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: spi-qpic-snand: extend FIELD_PREP() macro usage
authorGabor Juhos <j4g8y7@gmail.com>
Thu, 15 May 2025 18:58:06 +0000 (20:58 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 16 May 2025 11:18:21 +0000 (13:18 +0200)
commit76ebfa371f0ff8ff8a42a9415f61432d6c48fa55
tree3aacb8b0d418f7dddc74161860d353ceecf69636
parent2abf107dcd797c60c86e9f17319cd1658862f6b2
spi: spi-qpic-snand: extend FIELD_PREP() macro usage

Large part of the code uses the FIELD_PREP() macro already to construct
values to be written to hardware registers. Change the code to use also
the macro for more registers of which the corresponding bitmasks are
defined already.

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-2-11729aeae73b@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c