Skip to content

Commit 88507a2

Browse files
committed
Merge remote-tracking branch 'regmap/topic/core' into regmap-next
2 parents 18a64d8 + 336fb81 commit 88507a2

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7596,6 +7596,7 @@ F: fs/reiserfs/
75967596

75977597
REGISTER MAP ABSTRACTION
75987598
M: Mark Brown <broonie@kernel.org>
7599+
L: linux-kernel@vger.kernel.org
75997600
T: git git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git
76007601
S: Supported
76017602
F: drivers/base/regmap/

‎drivers/base/regmap/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ config REGMAP
1111

1212
config REGMAP_I2C
1313
tristate
14+
depends on I2C
1415

1516
config REGMAP_SPI
1617
tristate
18+
depends on SPI
1719

1820
config REGMAP_SPMI
1921
tristate
22+
depends on SPMI
2023

2124
config REGMAP_MMIO
2225
tristate

‎drivers/base/regmap/internal.h‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ struct regmap_async {
4949
};
5050

5151
struct regmap {
52-
struct mutex mutex;
53-
spinlock_t spinlock;
52+
union {
53+
struct mutex mutex;
54+
spinlock_t spinlock;
55+
};
5456
unsigned long spinlock_flags;
5557
regmap_lock lock;
5658
regmap_unlock unlock;

0 commit comments

Comments
 (0)