]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: ti-qspi: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Jan 2025 18:54:00 +0000 (19:54 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jan 2025 15:18:40 +0000 (15:18 +0000)
commit40ba3c9019ccd34d576fa14f94ef4f3bd9284c1a
tree639a19d8c66eed45831c61009179b3fd46363555
parentfd85b6b7bc53409d0be82763419bdcdaa48f2c91
spi: ti-qspi: Use syscon_regmap_lookup_by_phandle_args

Use syscon_regmap_lookup_by_phandle_args() which is a wrapper over
syscon_regmap_lookup_by_phandle() combined with getting the syscon
argument.  Except simpler code this annotates within one line that given
phandle has arguments, so grepping for code would be easier.

There is also no real benefit in printing errors on missing syscon
argument, because this is done just too late: runtime check on
static/build-time data.  Dtschema and Devicetree bindings offer the
static/build-time check for this already.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250111185400.183760-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c