OSDN Git Service

media: i2c: st-vgxy61: Move 'detect' call to 'power_on'
authorBenjamin Mugnier <benjamin.mugnier@foss.st.com>
Wed, 1 Feb 2023 14:04:15 +0000 (15:04 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 19 Mar 2023 23:36:05 +0000 (00:36 +0100)
commit985ed1d7432eb0a28be190e2b855050cf1f926fd
treef08e132fc02db37a6af63e02c290a14619d04c49
parent5a6cf0871265ae89090453e5eab1cb4a5a8ace0c
media: i2c: st-vgxy61: Move 'detect' call to 'power_on'

Previously the device detection was performed after patching.
Move it right after the reset to make sure we have the correct sensor
before trying to patch it.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/st-vgxy61.c