media: i2c: alvium: Fix: correct typo in alvium_set_ctrl_auto_exposure
Subsystems (3)
Martin Hecht
maintainerPATCH 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")
Signed-off-by Martin Hecht <[email protected]>
--- drivers/media/i2c/alvium-csi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/alvium-csi2.c +1 -1
@@ -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
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_RWinstead of wrong registerREG_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")Signed-off-by Martin Hecht <[email protected]>
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@@ -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