OSDN Git Service

media: ov2740: only do OTP data read on demand from user
authorBingbu Cao <bingbu.cao@intel.com>
Fri, 13 Nov 2020 03:06:57 +0000 (04:06 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 25 Nov 2020 13:37:24 +0000 (14:37 +0100)
commit798f1a6b0efcb33e5f3abe048aa9d546ca849cd8
tree03ae96b9568cd42076ff3330c162c53f1cf920d2
parent3c80f6f81e64de5721867721d4a3e90bb602c787
media: ov2740: only do OTP data read on demand from user

OTP data access of ov2740 in probe need power up, it may cause
the camera flash LED blink during probe if the LED use same power
rail with camera, this patch move the OTP data access out of
probe, it will only occur on demand from user by nvmem sysfs.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Qingwu Zhang <qingwu.zhang@intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov2740.c