]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: int3472: Use str_high_low()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 22 Aug 2024 13:05:41 +0000 (16:05 +0300)
committerHans de Goede <hdegoede@redhat.com>
Wed, 4 Sep 2024 13:04:12 +0000 (15:04 +0200)
Use str_high_low() rather than open coding.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240822130722.1261891-5-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/int3472/discrete.c

index 89a97d2cd62585b2454dff45a089a89e92526c16..3de463c3d13b8e12bae1109c090ea14134707cb6 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/module.h>
 #include <linux/overflow.h>
 #include <linux/platform_device.h>
+#include <linux/string_choices.h>
 #include <linux/uuid.h>
 
 #include "common.h"
@@ -230,7 +231,7 @@ static int skl_int3472_handle_gpio_resources(struct acpi_resource *ares,
 
        dev_dbg(int3472->dev, "%s %s pin %d active-%s\n", func,
                agpio->resource_source.string_ptr, agpio->pin_table[0],
-               (polarity == GPIO_ACTIVE_HIGH) ? "high" : "low");
+               str_high_low(polarity == GPIO_ACTIVE_HIGH));
 
        switch (type) {
        case INT3472_GPIO_TYPE_RESET: