aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2025-02-12 20:23:15 +0000
committerMarc Kleine-Budde <[email protected]>2025-02-19 09:44:21 +0000
commit9f0f0345d0406cc17a764be4ce56e6c727cdf720 (patch)
tree2dc1e8b5aa2abef98bebe07dc3271b91f3c2d557 /arch/powerpc/lib/code-patching.c
parentcan: c_can: Use of_property_present() to test existence of DT property (diff)
downloadkernel-9f0f0345d0406cc17a764be4ce56e6c727cdf720.tar.gz
kernel-9f0f0345d0406cc17a764be4ce56e6c727cdf720.zip
can: c_can: 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 <[email protected]> Reviewed-by: Vincent Mailhol <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions