Re: [PATCH v2 2/3] hwmon: (tps23861) reduce count of i2c transactions for port_status

From: Guenter Roeck
Date: Thu Sep 08 2022 - 14:49:44 EST


On Tue, Sep 06, 2022 at 08:54:04PM -0500, Alexandru Gagniuc wrote:
> When reading the 'port_status' debugfs entry, some I2C registers were
> read more than once. This looks inefficient in an I2C trace.
>
> To reduce I2C traffic, update tps23861_port_status_show() to only read
> each register once. Indexing the port number from 0 instead of 1 also
> allows simplifying things a bit.
>
> Signed-off-by: Alexandru Gagniuc <mr.nuke.me@xxxxxxxxx>

Applied to hwmon-next.

Thanks,
Guenter