aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2022-10-16 09:15:13 +0300
committerSakari Ailus <[email protected]>2022-10-27 14:38:01 +0300
commite611f3dac54cae6f9a2efa61fb3dc632c399dd2c (patch)
treec186c7366d11168bbbe45b53c6290ab635b2275e /tools/perf/scripts/python/bin
parent454a86f33dd0682d6f3b65cd1305643e95257d28 (diff)
media: i2c: imx290: Simplify error handling when writing registers
Error handling for register writes requires checking the error status of every single write. This makes the code complex, or incorrect when the checks are omitted. Simplify this by passing a pointer to an error code to the imx290_write_reg() function, which allows writing multiple registers in a row and only checking for errors at the end. While at it, rename imx290_write_reg() to imx290_write() as there's nothing else than registers to write, and rename imx290_read_reg() accordingly. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Alexander Stein <[email protected]> Signed-off-by: Sakari Ailus <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions