aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2021-05-29 02:13:52 -0700
committerGuenter Roeck <linux@roeck-us.net>2021-06-17 04:21:45 -0700
commit07c6621a37352e38b4ad9addaba473ad90fbfe5e (patch)
tree03ca91fa1d90a80a7bc8538352cc4731228602af /tools/perf/scripts/python/exported-sql-viewer.py
parent505c2549373f3aa9ee16493f872e57876ffb70b1 (diff)
downloadlinux-07c6621a37352e38b4ad9addaba473ad90fbfe5e.tar.gz
linux-07c6621a37352e38b4ad9addaba473ad90fbfe5e.tar.bz2
linux-07c6621a37352e38b4ad9addaba473ad90fbfe5e.zip
hwmon: (sht4x) Fix sht4x_read_values return value
Kernel doc for sht4x_read_values() shows 0 on success, 1 on failure but the return value on success is actually always positive as it is set to SHT4X_RESPONSE_LENGTH by a successful call to i2c_master_recv(). Miscellanea: o Update the kernel doc for sht4x_read_values to 0 for success or -ERRNO o Remove incorrectly used kernel doc /** header for other _read functions o Typo fix succesfull->successful o Reverse a test to unindent a block and use goto unlock o Declare cmd[SHT4X_CMD_LEN] rather than cmd[] At least for gcc 10.2, object size is reduced a tiny bit. $ size drivers/hwmon/sht4x.o* text data bss dec hex filename 1752 404 256 2412 96c drivers/hwmon/sht4x.o.new 1825 404 256 2485 9b5 drivers/hwmon/sht4x.o.old Signed-off-by: Joe Perches <joe@perches.com> Link: https://lore.kernel.org/r/60eedce497137eb34448c0c77e01ec9d9c972ad7.camel@perches.com Reviewed by: Navin Sankar Velliangiri <navin@linumiz.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions