]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dra7xx: Use syscon_regmap_lookup_by_phandle_args
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Jan 2025 13:39:02 +0000 (14:39 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 16 Jan 2025 20:38:53 +0000 (14:38 -0600)
commitad9afd75030174e8f9eabd9d5c1a87a625db430c
tree0c2b0195e7ec71994b6d7a12096f6bde92400a20
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
PCI: dra7xx: 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.

Link: https://lore.kernel.org/r/20250112-syscon-phandle-args-pci-v1-1-fcb6ebcc0afc@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pci-dra7xx.c