Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andy Shevchenko and committed by
Hans de Goede
1bda29ae d2b27d8e

+2 -1
+2 -1
drivers/platform/x86/intel/int3472/discrete.c
··· 11 11 #include <linux/module.h> 12 12 #include <linux/overflow.h> 13 13 #include <linux/platform_device.h> 14 + #include <linux/string_choices.h> 14 15 #include <linux/uuid.h> 15 16 16 17 #include "common.h" ··· 231 230 232 231 dev_dbg(int3472->dev, "%s %s pin %d active-%s\n", func, 233 232 agpio->resource_source.string_ptr, agpio->pin_table[0], 234 - (polarity == GPIO_ACTIVE_HIGH) ? "high" : "low"); 233 + str_high_low(polarity == GPIO_ACTIVE_HIGH)); 235 234 236 235 switch (type) { 237 236 case INT3472_GPIO_TYPE_RESET: