media: i2c: adv748x: Convert SW reset routine to function
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 11 Jan 2019 17:41:40 +0000 (12:41 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 16:24:49 +0000 (11:24 -0500)
commitac105ab2138f43b7acbc91f17453e0a0ba2f7f33
treef6319694bd7108fee4b620e977d982795c0000ec
parent9423ca350df71ff71f8db2b01127eecd2254f619
media: i2c: adv748x: Convert SW reset routine to function

The ADV748x is currently reset by writting a small table of registers to
the device.

The table lacks documentation and contains magic values to perform the
actions, including using a fake register address to introduce a delay
loop.

Remove the table, and convert to code, documenting the purpose of the
specific writes along the way.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/adv748x/adv748x-core.c
drivers/media/i2c/adv748x/adv748x.h