]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
misc: ad525x_dpot: Use str_enabled_disabled() in sysfs_show_reg()
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 20 Aug 2025 10:27:34 +0000 (12:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:59:46 +0000 (15:59 +0200)
commit2828c318b3c124a370e2e8844a927734b8b49faf
tree3ebc59178961cfda9f095673d6dbd2f44fd7a7d2
parentd8959245329917f93a6345fd6eef828c646600fb
misc: ad525x_dpot: Use str_enabled_disabled() in sysfs_show_reg()

Remove hard-coded strings by using the str_enabled_disabled() helper
function and silence the following Coccinelle/coccicheck warning
reported by string_choices.cocci:

  opportunity for str_enabled_disabled(..)

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250820102734.760844-2-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ad525x_dpot.c