diff options
| author | Luca Ceresoli <[email protected]> | 2018-08-24 12:35:24 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-09-17 15:13:09 -0400 |
| commit | ca017467c78bd0e451facea2e512cfa8881eb003 (patch) | |
| tree | 907adb9eab126c29cfce68357791ace2283eafef /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 1657c28d82e8f89f0cb7d327f31515071bd0577a (diff) | |
media: imx274: add helper to read multibyte registers
Currently 2-bytes and 3-bytes registers are read one byte at a time,
doing the needed shift & mask each time.
Replace all of this code by a unique helper function that calls
regmap_bulk_read(), which has two advantages:
- reads all the bytes in a unique I2C transaction
- simplifies code to read multibyte registers
Signed-off-by: Luca Ceresoli <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions