diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-09-26 22:08:33 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-11-01 13:02:13 +0300 |
commit | 1f84f88dc15036d63fa7c84833a440370f22a74b (patch) | |
tree | f2c068aecfd6a32b19c09abefdeeb6651fbc0184 /include | |
parent | 16c4c1bb7e01d5de797c43d7a2396434f2078b0a (diff) | |
download | linux-1f84f88dc15036d63fa7c84833a440370f22a74b.tar.xz |
mfd: lpc_ich: Move APL GPIO resources to a custom structure
We are expecting more platforms that want to instantiate
the GPIO device via P2SB. For them prepare the custom structure
and move Apollo Lake data there. Refactor the code accordingly.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230926190834.932233-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/lpc_ich.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/lpc_ich.h b/include/linux/mfd/lpc_ich.h index 83621e0ccf33..1fbda1f8967d 100644 --- a/include/linux/mfd/lpc_ich.h +++ b/include/linux/mfd/lpc_ich.h @@ -26,11 +26,14 @@ enum lpc_gpio_versions { AVOTON_GPIO, }; +struct lpc_ich_gpio_info; + struct lpc_ich_info { char name[32]; unsigned int iTCO_version; enum lpc_gpio_versions gpio_version; enum intel_spi_type spi_type; + const struct lpc_ich_gpio_info *gpio_info; u8 use_gpio; }; |