CRs-fixed: (CR)
Change-Id: I8ffc5d9d43ae7b07903284c67b64d1f96ede43b9
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/
1358069
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key
return ret;
}
+void sensor_cis_otp_data_set(char *data, char *name, u32 size, u32 value)
+{
+ int i;
+
+ /* value setting to (name) cal data section */
+ for (i = 0; i < size; i++)
+ data[i] = value;
+
+ info("%s() Done: %s calibration data is %d set\n", __func__, name, value);
+}
+
u16 sensor_cis_otp_get_crc16(char *data, int count)
{
char *tmp = data;
int sensor_cis_factory_test(struct v4l2_subdev *subdev);
/* OTP function */
+void sensor_cis_otp_data_set(char *data, char *name, u32 size, u32 value);
u16 sensor_cis_otp_get_crc16(char *data, int count);
int sensor_cis_otp_read_file(const char *file_name, const void *data, unsigned long size);
int sensor_cis_otp_write_file(const char *file_name, const void *data, unsigned long size);