]> git.ipfire.org Git - thirdparty/linux.git/commit
misc: hisi_hikey_usb: Use str_enabled_disabled() in hub_power_ctrl()
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 13 Aug 2025 18:01:08 +0000 (20:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Aug 2025 10:37:15 +0000 (12:37 +0200)
commit89fb7d737f9a3467406c9729609319a8d633e97a
treea9b33eae4bf93afc2248895f5ea914f5be5c7d74
parent82bfe76853762a7d2b7d699da0e5dbd094f8f998
misc: hisi_hikey_usb: Use str_enabled_disabled() in hub_power_ctrl()

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(value)

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/r/20250813180108.209096-2-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/hisi_hikey_usb.c