Skip to content

Commit 1bda29a

Browse files
andy-shevjwrdegoede
authored andcommitted
platform/x86: int3472: Use str_high_low()
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>
1 parent d2b27d8 commit 1bda29a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/platform/x86/intel/int3472/discrete.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/module.h>
1212
#include <linux/overflow.h>
1313
#include <linux/platform_device.h>
14+
#include <linux/string_choices.h>
1415
#include <linux/uuid.h>
1516

1617
#include "common.h"
@@ -230,7 +231,7 @@ static int skl_int3472_handle_gpio_resources(struct acpi_resource *ares,
230231

231232
dev_dbg(int3472->dev, "%s %s pin %d active-%s\n", func,
232233
agpio->resource_source.string_ptr, agpio->pin_table[0],
233-
(polarity == GPIO_ACTIVE_HIGH) ? "high" : "low");
234+
str_high_low(polarity == GPIO_ACTIVE_HIGH));
234235

235236
switch (type) {
236237
case INT3472_GPIO_TYPE_RESET:

0 commit comments

Comments
 (0)