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>
This commit is contained in:
parent
d27be0ad94
commit
105676ce59
|
@ -1552,14 +1552,6 @@ static int ccs_power_on(struct device *dev)
|
||||||
* is found.
|
* 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);
|
rval = ccs_write(sensor, SOFTWARE_RESET, CCS_SOFTWARE_RESET_ON);
|
||||||
if (rval < 0) {
|
if (rval < 0) {
|
||||||
dev_err(dev, "software reset failed\n");
|
dev_err(dev, "software reset failed\n");
|
||||||
|
|
Loading…
Reference in New Issue