aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2018-07-25 12:24:54 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-27 12:41:42 -0400
commit279b4b9aaa3d04ea8de960e39e54e38aafe93e62 (patch)
tree45dc1bbcf11d6a15b982e63ba42596db3d68796e /include/linux
parentmedia: ov2680: Add Omnivision OV2680 sensor driver (diff)
downloadlinux-dev-279b4b9aaa3d04ea8de960e39e54e38aafe93e62.tar.xz
linux-dev-279b4b9aaa3d04ea8de960e39e54e38aafe93e62.zip
media: imx274: use regmap_bulk_write to write multybyte registers
Currently 2-bytes and 3-bytes registers are set by very similar functions doing the needed shift & mask manipulation, followed by very similar for loops setting one byte at a time over I2C. Replace all of this code by a unique helper function that calls regmap_bulk_write(), which has two advantages: - sets all the bytes in a unique I2C transaction - removes lots of now unused code. 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 'include/linux')
0 files changed, 0 insertions, 0 deletions