[PATCH v2 10/10] platform/chrome: cros_usbpd_logger: Simplify with devm

Tzung-Bi Shih tzungbi at kernel.org
Mon Mar 9 20:26:14 PDT 2026


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 at oss.qualcomm.com>

Acked-by: Tzung-Bi Shih <tzungbi at kernel.org>



More information about the Linux-mediatek mailing list