OpenWrt

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 2  →  ?path2? @ 3
/branches/18.06.1/target/linux/generic/hack-4.14/259-regmap_dynamic.patch
@@ -21,19 +21,22 @@
- default y if (REGMAP_I2C || REGMAP_SPI || REGMAP_SPMI || REGMAP_W1 || REGMAP_AC97 || REGMAP_MMIO || REGMAP_IRQ)
select IRQ_DOMAIN if REGMAP_IRQ
- bool
+ tristate
+ tristate "Regmap"
config REGCACHE_COMPRESSED
select LZO_COMPRESS
@@ -18,22 +17,29 @@ config REGMAP_AC97
@@ -17,23 +16,30 @@ config REGMAP_AC97
tristate
config REGMAP_I2C
tristate
- tristate
+ tristate "Regmap I2C"
+ select REGMAP
depends on I2C
config REGMAP_SPI
tristate
- tristate
+ tristate "Regmap SPI"
+ select REGMAP
+ depends on SPI_MASTER
depends on SPI
@@ -49,7 +52,8 @@
depends on W1
config REGMAP_MMIO
tristate
- tristate
+ tristate "Regmap MMIO"
+ select REGMAP
config REGMAP_IRQ
@@ -99,7 +103,7 @@
})
-#ifdef CONFIG_REGMAP
+#if IS_REACHABLE(CONFIG_REGMAP)
+#if IS_ENABLED(CONFIG_REGMAP)
enum regmap_endian {
/* Unspecified -> 0 -> Backwards compatible default */