aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2023-09-21 09:43:44 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-09-24 18:54:55 +0100
commitc78a96ab0f52a12b344882241019dd9070aa988c (patch)
treea2f9ab75a0d4542c5d839287a0f6ee0f4a1af8f6 /tools/perf/scripts/python
parentiio: adc: MCP3564: fix the static checker warning (diff)
downloadlinux-c78a96ab0f52a12b344882241019dd9070aa988c.tar.gz
linux-c78a96ab0f52a12b344882241019dd9070aa988c.zip
staging: iio: resolver: ad2s1210: fix ad2s1210_show_fault
When reading the fault attribute, an empty string was printed if the fault register value was non-zero. This is fixed by checking that the return value is less than zero instead of not zero. Also always print two hex digits while we are touching this line. Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://lore.kernel.org/r/20230921144400.62380-4-dlechner@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions