1

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>
This commit is contained in:
Andy Shevchenko 2023-09-26 22:08:32 +03:00 committed by Lee Jones
parent b0eb61880f
commit 16c4c1bb7e

View File

@ -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;
};