Re: [PATCH v2 1/1] pwm: core: use device_match_name() instead of strcmp(dev_name(...

From: Uwe Kleine-König
Date: Fri Oct 25 2024 - 16:59:56 EST


Hello Andy,

On Fri, Oct 25, 2024 at 05:26:34PM +0300, Andy Shevchenko wrote:
> Use the dedicated helper for comparing device names against strings.
>
> Note, the current code has a check for the dev_name() against NULL.
> With the current implementations of the device_add() and dev_set_name()
> it most likely a theoretical assumption that that might happen, while
> I don't see how. Hence, that check has simply been removed.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

thanks, applied to

https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature