summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-09-26 22:08:32 +0300
committerLee Jones <lee@kernel.org>2023-11-01 10:02:13 +0000
commit16c4c1bb7e01d5de797c43d7a2396434f2078b0a (patch)
tree2e99eef90981cad0b10887821687fc54727ffc16 /include/linux/mfd
parentb0eb61880f004290a62b71b135825e9c5f5bde99 (diff)
downloadlinux-16c4c1bb7e01d5de797c43d7a2396434f2078b0a.tar.gz
linux-16c4c1bb7e01d5de797c43d7a2396434f2078b0a.tar.bz2
linux-16c4c1bb7e01d5de797c43d7a2396434f2078b0a.zip
mfd: lpc_ich: Convert gpio_version to be enum
We have an anonymous enum for the GPIO versions. Make it named and use this type for the gpio_version member of struct lpc_ich_info. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230926190834.932233-2-andriy.shevchenko@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/lpc_ich.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mfd/lpc_ich.h b/include/linux/mfd/lpc_ich.h
index ea4a4b1b246a..83621e0ccf33 100644
--- a/include/linux/mfd/lpc_ich.h
+++ b/include/linux/mfd/lpc_ich.h
@@ -15,7 +15,7 @@
#define ICH_RES_GPE0 1
/* GPIO compatibility */
-enum {
+enum lpc_gpio_versions {
ICH_I3100_GPIO,
ICH_V5_GPIO,
ICH_V6_GPIO,
@@ -29,7 +29,7 @@ enum {
struct lpc_ich_info {
char name[32];
unsigned int iTCO_version;
- unsigned int gpio_version;
+ enum lpc_gpio_versions gpio_version;
enum intel_spi_type spi_type;
u8 use_gpio;
};