Signed-off-by: Sakari Ailus <[email protected]>
---
drivers/media/i2c/smiapp/smiapp-regs.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/media/i2c/smiapp/smiapp-regs.c
b/drivers/media/i2c/smiapp/smiapp-regs.c
index 4fac32c..e88a59a 100644
--- a/drivers/media/i2c/smiapp/smiapp-regs.c
+++ b/drivers/media/i2c/smiapp/smiapp-regs.c
@@ -221,6 +221,13 @@ int smiapp_write(struct smiapp_sensor *sensor, u32 reg,
u32 val)
len != SMIA_REG_32BIT) || flags)
return -EINVAL;
+ if (smiapp_quirk_reg(sensor, reg, &val)) {
+ dev_dbg(&client->dev,
+ "ignoring write access to quirk reg 0x%4.4x\n",
+ (u16)reg);
+ return 0;
+ }
+
msg.addr = client->addr;
msg.flags = 0; /* Write */
msg.len = 2 + len;
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html