Re: [PATCH v2 1/2] hwmon: (ina3221) Do not read-back to cache reg_config

From: Guenter Roeck
Date: Thu Apr 18 2019 - 09:37:54 EST

On Wed, Apr 17, 2019 at 04:12:09PM -0700, Nicolin Chen wrote:
> Reading back the CONFIG register increases an extra I2C
> transaction. This's not necessary and could be replaced
> with a local variable caching the register settings.
> So this patch replaces two readback regmap_read() calls
> with a tmp variable.
> Signed-off-by: Nicolin Chen <nicoleotsuka@xxxxxxxxx>

Applied to hwmon-next.