mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 03:35:32 -04:00
media: i2c: alvium: Fix: Correct name of register in alvium_set_ctrl_auto_exposure
Write value for auto-exposure into correct register REG_BCRM_EXPOSURE_AUTO_RW
instead of wrong register REG_BCRM_WHITE_BALANCE_AUTO_RW.
Fixes: 0a7af87291 ("media: i2c: Add support for alvium camera")
Cc: stable@vger.kernel.org
Signed-off-by: Martin Hecht <mhecht73@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
committed by
Sakari Ailus
parent
4ececf7d42
commit
58ca8a0bff
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user