media: i2c: adv748x: Add support for i2c_new_secondary_device
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Tue, 27 Feb 2018 15:05:50 +0000 (10:05 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 21 Mar 2018 16:08:30 +0000 (12:08 -0400)
commit67537fe960e5f837436403b148fcc33a356aa4bb
tree6e37468de24b8ca1da5aefda0b1e05d630fc8791
parent71569850e3242db475a15b5e2674bf2b6e81d1a7
media: i2c: adv748x: Add support for i2c_new_secondary_device

The ADV748x has twelve 256-byte maps that can be accessed via the main
I2C ports. Each map has it own I2C address and acts as a standard slave
device on the I2C bus.

Allow a device tree node to override the default addresses so that
address conflicts with other devices on the same bus may be resolved at
the board description level.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/adv748x/adv748x-core.c
drivers/media/i2c/adv748x/adv748x.h