diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2020-10-08 11:56:48 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-12 19:33:05 +0300 |
commit | 105676ce5940517d2a8a4be32f54c9ff8a021ca5 (patch) | |
tree | c6adb02225c0da9e7f8feb93549b543f2c2ef08a /drivers/media/i2c | |
parent | d27be0ad943b22d491d1f00e2edbb93a87d58376 (diff) | |
download | linux-105676ce5940517d2a8a4be32f54c9ff8a021ca5.tar.xz |
media: ccs: Don't change the I²C address just for software reset
The sensor's address was changed before resetting and changing the
address again. Don't do it before reset as it's useless.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/ccs/ccs-core.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c index 11c6de7f55aa..da7a6bd2c820 100644 --- a/drivers/media/i2c/ccs/ccs-core.c +++ b/drivers/media/i2c/ccs/ccs-core.c @@ -1552,14 +1552,6 @@ static int ccs_power_on(struct device *dev) * is found. */ - if (sensor->hwcfg.i2c_addr_alt) { - rval = ccs_change_cci_addr(sensor); - if (rval) { - dev_err(dev, "cci address change error\n"); - goto out_cci_addr_fail; - } - } - rval = ccs_write(sensor, SOFTWARE_RESET, CCS_SOFTWARE_RESET_ON); if (rval < 0) { dev_err(dev, "software reset failed\n"); |