ACPI: AC: Use string_choices API instead of ternary operator
authorMichal Wilczynski <michal.wilczynski@intel.com>
Wed, 11 Oct 2023 08:33:30 +0000 (11:33 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Oct 2023 17:51:54 +0000 (19:51 +0200)
commit616990c92e40e4721beb66c2f855915fc1f32aba
tree4da61d51ae979b416bb58c7c78428f8fb9cd13ed
parentbc4c9757e324334b84e3ecd52d752cbce54208ab
ACPI: AC: Use string_choices API instead of ternary operator

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

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ac.c