Skip to content

Commit 12e5bf7

Browse files
thierryredingLee Jones
authored andcommitted
mfd: max77620: Use single-byte writes on MAX77620
The MAX77620 doesn't support bulk writes, so make sure the regmap code breaks bulk writes into multiple single-byte writes. Note that this is mostly cosmetic because currently only the RTC sub- driver uses bulk writes and the RTC driver ends up using a different regmap on the MAX77620 anyway. However, it seems like a good idea to make this change now in order to avoid running into issues if bulk writes are ever used by other sub-drivers sometime down the road. Signed-off-by: Thierry Reding <[email protected]> Acked-by: Jon Hunter <[email protected]> Tested-by: Jon Hunter <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent 652b7b6 commit 12e5bf7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mfd/max77620.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ static const struct regmap_config max77620_regmap_config = {
177177
.rd_table = &max77620_readable_table,
178178
.wr_table = &max77620_writable_table,
179179
.volatile_table = &max77620_volatile_table,
180+
.use_single_write = true,
180181
};
181182

182183
static const struct regmap_config max20024_regmap_config = {

0 commit comments

Comments
 (0)