Skip to contentSkip to conversation

media: i2c: alvium: Fix: correct typo in alvium_set_ctrl_auto_exposure

PATCH Superseded Martin Hecht 2 participants 2 messages May 5 – May 22

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Martin Hecht

author maintainer
#0 lore raw

PATCH v2 1/1 media: i2c: alvium: Fix: correct typo in alvium_set_ctrl_auto_exposure

write value for auto-exposure into register REG_BCRM_EXPOSURE_AUTO_RW instead of wrong register REG_BCRM_WHITE_BALANCE_AUTO_RW.

Fixes 0a7af872915e ("media: i2c: Add support for alvium camera")
---
 drivers/media/i2c/alvium-csi2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/alvium-csi2.c +1 -1
index 955b7072a560..b62b45a4f2fc 100644
@@ -1290,7 +1290,7 @@ static int alvium_set_ctrl_auto_exposure(struct alvium_dev *alvium, bool on)
 	struct device *dev = &alvium->i2c_client->dev;
 	int ret;
 
-	ret = alvium_write_hshake(alvium, REG_BCRM_WHITE_BALANCE_AUTO_RW,
+	ret = alvium_write_hshake(alvium, REG_BCRM_EXPOSURE_AUTO_RW,
 				  on ? 0x02 : 0x00);
 	if (ret) {
 		dev_err(dev, "Fail to set autoexposure reg\n");
Signature · 1 line
2.43.0
#1 lore raw

Hi Martin,

Considering the subject, I think it looks like more than a typo: the wrong register gets written here before the patch. I think it'd be reasonable to say that.

Quoted 2 lines · Martin Hecht

write value for auto-exposure into register REG_BCRM_EXPOSURE_AUTO_RW instead of wrong register REG_BCRM_WHITE_BALANCE_AUTO_RW.

The sententence should begin with a capital letter.

Quoted 3 lines
Fixes 0a7af872915e ("media: i2c: Add support for alvium camera")
Cc stable..., please.
Quoted 17 lines
---
 drivers/media/i2c/alvium-csi2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/alvium-csi2.c +1 -1
index 955b7072a560..b62b45a4f2fc 100644
@@ -1290,7 +1290,7 @@ static int alvium_set_ctrl_auto_exposure(struct alvium_dev *alvium, bool on)
 	struct device *dev = &alvium->i2c_client->dev;
 	int ret;
 
-	ret = alvium_write_hshake(alvium, REG_BCRM_WHITE_BALANCE_AUTO_RW,
+	ret = alvium_write_hshake(alvium, REG_BCRM_EXPOSURE_AUTO_RW,
 				  on ? 0x02 : 0x00);
 	if (ret) {
 		dev_err(dev, "Fail to set autoexposure reg\n");
Signature · 3 lines
Kind regards,

Sakari Ailus