spi: spi-fsl-dspi: Re-use one volatile regmap for both device types
authorJames Clark <james.clark@linaro.org>
Thu, 22 May 2025 14:51:33 +0000 (15:51 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:35:28 +0000 (23:35 +0100)
commit87a14a96bc323aff824fad8cdbe61b78eff22255
treec63065a30cad04b7b3d07191436c67b922dc9f3f
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
spi: spi-fsl-dspi: Re-use one volatile regmap for both device types

max_register overrides anything in the volatile ranges, so we can get
away with sharing the same one for both types. In a later commit we'll
add more devices so this avoids adding even more duplication. Also
replace the max_register magic numbers with their register definitions
so it's clearer what's going on.

No functional changes.

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Link: https://patch.msgid.link/20250522-james-nxp-spi-v2-4-bea884630cfb@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c