]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: intel-hid: Use string_choices API instead of ternary operator
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 21 Aug 2024 12:04:57 +0000 (15:04 +0300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 26 Aug 2024 14:48:21 +0000 (16:48 +0200)
commitc34068c8edad268bbd83feb39ef1b8b47b571dd6
tree2f223d745bc2db510d4a77a97b1794a24c81dcad
parentbb9a9bf2787fbe1a4e003daabc8f7a31c17740d6
platform/x86: intel-hid: Use string_choices API instead of ternary operator

Use modern string_choices API instead of manually determining the
output using ternary operator.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240821120458.3702655-1-andriy.shevchenko@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/hid.c