summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorHugo Villeneuve <hvilleneuve@dimonoff.com>2022-02-08 11:29:07 -0500
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-02-15 23:35:43 +0100
commit73ce05302007eece23a6acb7dc124c92a2209087 (patch)
tree5b81cf894a8409e0d783d2631cb18e5fb7e70858 /tools/perf/scripts/python/exported-sql-viewer.py
parentd4785b46345cc9564f883c94acc4c4de6bbfeea5 (diff)
rtc: pcf2127: fix bug when reading alarm registers
The first bug is that reading the 5 alarm registers results in a read operation of 20 bytes. The reason is because the destination buffer is defined as an array of "unsigned int", and we use the sizeof() operator on this array to define the bulk read count. The second bug is that the read value is invalid, because we are indexing the destination buffer as integers (4 bytes), instead of indexing it as u8. Changing the destination buffer type to u8 fixes both problems. Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220208162908.3182581-1-hugo@hugovil.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions