diff options
| author | Luca Ceresoli <luca@lucaceresoli.net> | 2018-08-24 12:35:24 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-17 15:13:09 -0400 |
| commit | ca017467c78bd0e451facea2e512cfa8881eb003 (patch) | |
| tree | 907adb9eab126c29cfce68357791ace2283eafef /drivers/media/v4l2-core/v4l2-common.c | |
| parent | media: imx274: fix error in function docs (diff) | |
| download | linux-ca017467c78bd0e451facea2e512cfa8881eb003.tar.gz linux-ca017467c78bd0e451facea2e512cfa8881eb003.zip | |
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 <luca@lucaceresoli.net>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-common.c')
0 files changed, 0 insertions, 0 deletions
