Skip to contentSkip to conversation

iio: light: apds9160: Remove duplicate assignment of chip->client

PATCH In review Oscar Alejandro Sánchez Lucero 2 participants 2 messages Nov 30

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: light: apds9160: Remove duplicate assignment of chip->client

chip->client is already assigned a few lines earlier in apds9160_probe(). Drop the redundant assignment.

---
 drivers/iio/light/apds9160.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/light/apds9160.c +0 -1
index d7e0924b8..dcde9d5aa 100644
@@ -1518,7 +1518,6 @@ static int apds9160_probe(struct i2c_client *client)
 		return dev_err_probe(dev, PTR_ERR(chip->regmap),
 				     "regmap initialization failed.\n");
 
-	chip->client = client;
 	mutex_init(&chip->lock);
 
 	ret = apds9160_detect(chip);

---
base-commit: 9437ee8b6cf607e883b36e44bd755968daaebd48
change-id: 20261130-apds9160-cleanup-43968b6d8b00

Best regards,

Signature · 1 line
Oscar Alejandro Sánchez Lucero <[email protected]>