diff options
| author | Mark Brown <broonie@kernel.org> | 2014-09-29 15:49:41 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2014-09-29 15:49:41 -0400 |
| commit | 88507a2ba8b453a38b950f3ccb2cae6cc4d82e7a (patch) | |
| tree | 87f9a0c7186988e3fd8207f6b3b4d2de3679267f /drivers/base/regmap | |
| parent | 18a64d844c0e98ad00f735f5ea6a3affb6b76639 (diff) | |
| parent | 336fb81b319ec4d5c09aa6417de7c042cfcd7461 (diff) | |
Merge remote-tracking branch 'regmap/topic/core' into regmap-next
Diffstat (limited to 'drivers/base/regmap')
| -rw-r--r-- | drivers/base/regmap/Kconfig | 3 | ||||
| -rw-r--r-- | drivers/base/regmap/internal.h | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/base/regmap/Kconfig b/drivers/base/regmap/Kconfig index 4251570610c9..8a3f51f7b1b9 100644 --- a/drivers/base/regmap/Kconfig +++ b/drivers/base/regmap/Kconfig | |||
| @@ -11,12 +11,15 @@ config REGMAP | |||
| 11 | 11 | ||
| 12 | config REGMAP_I2C | 12 | config REGMAP_I2C |
| 13 | tristate | 13 | tristate |
| 14 | depends on I2C | ||
| 14 | 15 | ||
| 15 | config REGMAP_SPI | 16 | config REGMAP_SPI |
| 16 | tristate | 17 | tristate |
| 18 | depends on SPI | ||
| 17 | 19 | ||
| 18 | config REGMAP_SPMI | 20 | config REGMAP_SPMI |
| 19 | tristate | 21 | tristate |
| 22 | depends on SPMI | ||
| 20 | 23 | ||
| 21 | config REGMAP_MMIO | 24 | config REGMAP_MMIO |
| 22 | tristate | 25 | tristate |
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index bfc90b8547f2..0da5865df5b1 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
| @@ -49,8 +49,10 @@ struct regmap_async { | |||
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | struct regmap { | 51 | struct regmap { |
| 52 | struct mutex mutex; | 52 | union { |
| 53 | spinlock_t spinlock; | 53 | struct mutex mutex; |
| 54 | spinlock_t spinlock; | ||
| 55 | }; | ||
| 54 | unsigned long spinlock_flags; | 56 | unsigned long spinlock_flags; |
| 55 | regmap_lock lock; | 57 | regmap_lock lock; |
| 56 | regmap_unlock unlock; | 58 | regmap_unlock unlock; |
