mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02: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:
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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user