summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorArthur Pilone <art.pilone@gmail.com>2025-04-21 11:55:34 -0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-05-21 14:20:29 +0100
commitfc0b0e82260f3b93f63325a89b4e4e17737b1421 (patch)
treebd6f8efad27863f1b965dddd383a09b6c180414d /tools/perf/scripts/python/gecko.py
parent872c8014e05ed47b8a7c0f5ba4311279a637150b (diff)
iio: adc: ad7091r-base: Remove duplicate code on volatile reg check
Both ad7091r_writeable_reg() and ad7091r_volatile_reg() perform the same test, checking whether a given 'reg' code is AD7091R_REG_RESULT or AD7091R_REG_ALERT. As the volatile ad7091r registers happen to be the only read-only ones, the volatile_reg() function now returns the negated output of writeable_reg(). Co-developed-by: Bruno Stephan <bruno.stephan@usp.br> Signed-off-by: Bruno Stephan <bruno.stephan@usp.br> Co-developed-by: Andre de Lima <aschwarz@usp.br> Signed-off-by: Andre de Lima <aschwarz@usp.br> Signed-off-by: Arthur Pilone <art.pilone@gmail.com> Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com> Link: https://patch.msgid.link/20250421145534.91146-1-arthurpilone@usp.br Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions