From 2f7c68cb55ecb7331f2381deb497c27155f32faf Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 03 Jan 2024 09:43:39 +0000
Subject: [PATCH] update kernel to 5.10.198

---
 kernel/drivers/media/i2c/otp_eeprom.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/kernel/drivers/media/i2c/otp_eeprom.c b/kernel/drivers/media/i2c/otp_eeprom.c
index 2fb123c..315220e 100644
--- a/kernel/drivers/media/i2c/otp_eeprom.c
+++ b/kernel/drivers/media/i2c/otp_eeprom.c
@@ -649,6 +649,11 @@
 	checksum += otp_ptr->pdaf_data.dccmap_checksum;
 	base_addr += 1;
 
+	ret |= read_reg_otp(client, base_addr,
+		2, &otp_ptr->pdaf_data.pd_offset);
+	checksum += otp_ptr->pdaf_data.pd_offset;
+	base_addr += 2;
+
 	memset(pdaf_buf, 0, RK_PDAF_RESERVED_SIZE);
 	ret |= read_reg_otp_buf(client, base_addr,
 	       RK_PDAF_RESERVED_SIZE, pdaf_buf);
@@ -931,7 +936,7 @@
 			seq_printf(p, "flag=%d;\n", dev->otp->pdaf_data.flag);
 			seq_printf(p, "gainmap_width=%d;\n", gainmap_w);
 			seq_printf(p, "gainmap_height=%d;\n", gainmap_h);
-
+			seq_printf(p, "pd_offset=%d\n", dev->otp->pdaf_data.pd_offset);
 			seq_printf(p, "gainmap_table=\n");
 			for (i = 0; i < gainmap_h; i++) {
 				for (j = 0; j < gainmap_w; j++) {

--
Gitblit v1.6.2