[COMMON] fimc-is2: update ois bu24218gwl cal data control
authorlibm1 <libm1@lenovo.com>
Tue, 15 Jan 2019 04:51:30 +0000 (12:51 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:32 +0000 (20:23 +0300)
commit58697d48dd31ef586b89bdb50e6ca8c8350c9595
tree3b506e5934cbac120b04c94abe1668b762a9d492
parent197b41f0c36afac931a85399a43ddc5fc7fd8fff
[COMMON] fimc-is2: update ois bu24218gwl cal data control

The OIS cal data in DVT2 eeprom is ok to apply. But before DVT2,
it is not workable data.
So add logic to check whether the OIS cal data is good or not,
if good, use it to write into OIS module,
if wrong, will change to use dafault cal data to write into OIS module.
So the ideal expected result is:
using real ois cal data in EEPROM on DVT2 module and after,
using dafault ois cal data on old module(before DVT2).

Change-Id: I8b156021aa3acc3e21d9b073d007a4b79db2f546
Signed-off-by: libm1 <libm1@lenovo.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/ois/fimc-is-ois-bu24218gwl.c