mfd: max77620: Use single-byte writes on MAX77620
authorThierry Reding <treding@nvidia.com>
Fri, 17 Apr 2020 17:09:13 +0000 (19:09 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 26 May 2020 09:51:21 +0000 (10:51 +0100)
commit12e5bf757a1fd03c5d736942428732be641daa1c
treec557bd706a00e7a45dd05db1ce396388fa32461f
parent652b7b6740eb52d98377a881c7730e36997f00ab
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>
drivers/mfd/max77620.c