aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2020-04-21 11:23:41 +0200
committerMauro Carvalho Chehab <[email protected]>2020-04-29 12:04:38 +0200
commite5ad7db4b2f35aaed796669b47e24c6d79cab3d0 (patch)
treed5fc2cf22e0ddb0b89bfe34996f012a204bb58d1 /tools/perf/scripts/python
parentfcab45adb853a668e9b2f653e792770399bb441a (diff)
media: cec-gpio: handle gpiod_get_value errors correctly
gpiod_get_value() can return negative values if an error occurs. In several places this error code was ignored. Ensure that errors codes are handled correctly throughout the CEC pin framework and CEC pin drivers. The return code of the cec_pin_ops read() callback had to be changed from 'bool' to 'int', which mean the prototype of that callback in the sun4i drm driver also had to be changed. Signed-off-by: Hans Verkuil <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions