Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <treding@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Thierry Reding and committed by
Lee Jones
12e5bf75 652b7b67

+1
+1
drivers/mfd/max77620.c
··· 177 177 .rd_table = &max77620_readable_table, 178 178 .wr_table = &max77620_writable_table, 179 179 .volatile_table = &max77620_volatile_table, 180 + .use_single_write = true, 180 181 }; 181 182 182 183 static const struct regmap_config max20024_regmap_config = {