Commit fdb62922 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Uwe Kleine-König
Browse files

pwm: core: use device_match_name() instead of strcmp(dev_name(...



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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20241025142704.405340-1-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarUwe Kleine-König <ukleinek@kernel.org>
parent 664b5e46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment