diff options
| author | Andy Shevchenko <[email protected]> | 2024-08-22 13:05:41 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2024-09-04 13:04:12 +0000 |
| commit | 1bda29aef6e19662496244b2b3f7eb2a6edf0cd5 (patch) | |
| tree | 517c930a2415817abe72f91b1820c6590137cef8 | |
| parent | platform/x86: int3472: Use GPIO_LOOKUP() macro (diff) | |
| download | kernel-1bda29aef6e19662496244b2b3f7eb2a6edf0cd5.tar.gz kernel-1bda29aef6e19662496244b2b3f7eb2a6edf0cd5.zip | |
platform/x86: int3472: Use str_high_low()
Use str_high_low() rather than open coding.
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
| -rw-r--r-- | drivers/platform/x86/intel/int3472/discrete.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/int3472/discrete.c b/drivers/platform/x86/intel/int3472/discrete.c index 89a97d2cd625..3de463c3d13b 100644 --- a/drivers/platform/x86/intel/int3472/discrete.c +++ b/drivers/platform/x86/intel/int3472/discrete.c @@ -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: |
