linux/drivers/net/can/c_can
Krzysztof Kozlowski 9f0f0345d0 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 <krzysztof.kozlowski@linaro.org>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://patch.msgid.link/20250212-syscon-phandle-args-can-v2-4-ac9a1253396b@linaro.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2025-02-19 10:44:21 +01:00
..
c_can_ethtool.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
c_can_main.c can: c_can: c_can_handle_bus_err(): update statistics if skb allocation fails 2024-11-26 10:49:21 +01:00
c_can_pci.c can: c_can: Remove redundant pci_clear_master 2023-03-24 19:11:20 +01:00
c_can_platform.c can: c_can: Use syscon_regmap_lookup_by_phandle_args 2025-02-19 10:44:21 +01:00
c_can.h can: c_can: don't cache TX messages for C_CAN cores 2022-09-28 10:34:04 +02:00
Kconfig can: remove obsolete PCH CAN driver 2022-10-19 21:33:30 +02:00
Makefile can: c_can: add ethtool support 2021-05-27 09:42:23 +02:00