adv7604: fix tx 5v detect regression
authorHans Verkuil <hansverk@cisco.com>
Wed, 10 Feb 2016 10:09:10 +0000 (08:09 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Mar 2016 23:34:53 +0000 (15:34 -0800)
commitf7591f1a02b5b896ba2da9855a9af24634cae2b9
treec6f3dde56d2c5460b308e2acb2c82694d272b836
parent7abfb63f28e1fc56f39f0ef981035b6c9dbd9278
adv7604: fix tx 5v detect regression

commit 0ba4581c84cfb39fd527f6b3457f1c97f6356c04 upstream.

The 5 volt detect functionality broke in 3.14: the code reads IO register 0x70
again after it has already been cleared. Instead it should use the cached
irq_reg_0x70 value and the io_write to 0x71 to clear 0x70 can be dropped since
this has already been done.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/adv7604.c