Re: [PATCH v2] mfd: cros_ec: Drop OF node reference in ec_device_probe()
From: Xiangwu Lai
Date: Sun Nov 22 2026 - 22:01:32 EST
Hi Tzung-Bi,
Thanks for the review of "[PATCH v2] mfd: cros_ec: Drop OF node
reference in ec_device_probe()"
(https://lore.kernel.org/all/20261118062949.1250-1-laixiangwu@xxxxxxxxxxxxxxxxxxxx/).
Both comments are addressed in v3
(https://lore.kernel.org/all/20261123025022.1761-1-laixiangwu@xxxxxxxxxxxxxxxxxxxx/):
> __free() is defined in <linux/cleanup.h>. Please include it in the file.
>
> Alternatively, simply calling `of_node_put()` after using `np` also works.
v3 adds the missing #include <linux/cleanup.h>. I kept the
__free(device_node) approach since it avoids explicit cleanup on every
exit path of the block.
> CHECK: Alignment should match open parenthesis
> #61: FILE: drivers/mfd/cros_ec_dev.c:280:
> + retval = mfd_add_hotplug_devices(ec->dev,
> + cros_ec_ucsi_cells,
> + ARRAY_SIZE(cros_ec_ucsi_cells));
Fixed in v3: the continuation lines were indented one column too far;
they now line up with the first argument of the call.
Best regards,
Xiangwu Lai