mirror-linux/drivers/i3c/master
Krzysztof Kozlowski 136209e6bd i3c: adi: Fix confusing cleanup.h syntax
Initializing automatic __free variables to NULL without need (e.g.
branches with different allocations), followed by actual allocation is
in contrary to explicit coding rules guiding cleanup.h:

"Given that the "__free(...) = NULL" pattern for variables defined at
the top of the function poses this potential interdependency problem the
recommendation is to always define and assign variables in one statement
and not group variable definitions at the top of the function when
__free() is used."

Code does not have a bug, but is less readable and uses discouraged
coding practice, so fix that by moving declaration to the place of
assignment.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20251208020750.4727-4-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2025-12-12 23:59:39 +01:00
..
mipi-i3c-hci i3c: master: switch to use new callback .i3c_xfers() from .priv_xfers() 2025-12-08 03:34:17 +01:00
Kconfig i3c: master: Add driver for Analog Devices I3C Controller IP 2025-09-16 17:06:43 +02:00
Makefile i3c: master: Add driver for Analog Devices I3C Controller IP 2025-09-16 17:06:43 +02:00
adi-i3c-master.c i3c: adi: Fix confusing cleanup.h syntax 2025-12-12 23:59:39 +01:00
ast2600-i3c-master.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
dw-i3c-master.c i3c: master: switch to use new callback .i3c_xfers() from .priv_xfers() 2025-12-08 03:34:17 +01:00
dw-i3c-master.h i3c: dw: Add quirk to address OD/PP timing issue on AMD platform 2024-11-18 14:27:29 +01:00
i3c-master-cdns.c i3c: master: switch to use new callback .i3c_xfers() from .priv_xfers() 2025-12-08 03:34:17 +01:00
renesas-i3c.c i3c: master: switch to use new callback .i3c_xfers() from .priv_xfers() 2025-12-08 03:34:17 +01:00
svc-i3c-master.c i3c: master: svc: Add basic HDR mode support 2025-11-29 00:39:08 +01:00