Re: [PATCH v2 10/10] platform/chrome: cros_usbpd_logger: Simplify with devm
From: Tzung-Bi Shih
Date: Mon Mar 09 2026 - 23:26:37 EST
On Thu, Mar 05, 2026 at 10:45:49PM +0100, Krzysztof Kozlowski wrote:
> Simplify the driver by using devm interfaces, which allow to drop
> probe() error paths and the remove() callback.
>
> Change is not equivalent in the workqueue itself: use non-legacy API
> which does not set (__WQ_LEGACY | WQ_MEM_RECLAIM). The workqueue is
> used to update logs, thus there is no point to run it for memory
> reclaim.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Acked-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>