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/common/saa7146/saa7146_i2c.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/kernel/drivers/media/common/saa7146/saa7146_i2c.c b/kernel/drivers/media/common/saa7146/saa7146_i2c.c
index 3feddc5..df9ebe2 100644
--- a/kernel/drivers/media/common/saa7146/saa7146_i2c.c
+++ b/kernel/drivers/media/common/saa7146/saa7146_i2c.c
@@ -54,10 +54,7 @@
/* loop through all messages */
for(i = 0; i < num; i++) {
- /* insert the address of the i2c-slave.
- note: we get 7 bit i2c-addresses,
- so we have to perform a translation */
- addr = (m[i].addr*2) + ( (0 != (m[i].flags & I2C_M_RD)) ? 1 : 0);
+ addr = i2c_8bit_addr_from_msg(&m[i]);
h1 = op_count/3; h2 = op_count%3;
op[h1] |= cpu_to_le32( (u8)addr << ((3-h2)*8));
op[h1] |= cpu_to_le32(SAA7146_I2C_START << ((3-h2)*2));
--
Gitblit v1.6.2