diff options
| author | 2022-09-06 20:54:04 -0500 | |
|---|---|---|
| committer | 2022-09-19 06:17:06 -0700 | |
| commit | 0fed840c7562d9dcc5bf8a91744b079e952683d1 (patch) | |
| tree | 7f3bebc9ae98b5308ce156fa97518d5db8ef74a8 /tools/perf/scripts/python | |
| parent | hwmon: (emc2305) Remove unused including <linux/version.h> (diff) | |
| download | linux-dev-0fed840c7562d9dcc5bf8a91744b079e952683d1.tar.xz linux-dev-0fed840c7562d9dcc5bf8a91744b079e952683d1.zip | |
hwmon: (tps23861) reduce count of i2c transactions for port_status
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@gmail.com>
Link: https://lore.kernel.org/r/20220907015405.16547-1-mr.nuke.me@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
