Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: light: apds9160: Remove duplicate assignment of chip->client
@ 2026-11-30  8:00 Oscar Alejandro Sánchez Lucero
  2026-11-30  9:08 ` Joshua Crofts
  0 siblings, 1 reply; 2+ messages in thread
From: Oscar Alejandro Sánchez Lucero @ 2026-11-30  8:00 UTC (permalink / raw)
  To: Mikael Gonella-Bolduc, Jonathan Cameron, David Lechner,
	Nuno Sá, Andy Shevchenko
  Cc: linux-iio, Oscar Alejandro Sánchez Lucero

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

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
 drivers/iio/light/apds9160.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/light/apds9160.c b/drivers/iio/light/apds9160.c
index d7e0924b8..dcde9d5aa 100644
--- a/drivers/iio/light/apds9160.c
+++ b/drivers/iio/light/apds9160.c
@@ -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,
--  
Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: light: apds9160: Remove duplicate assignment of chip->client
  2026-11-30  8:00 [PATCH] iio: light: apds9160: Remove duplicate assignment of chip->client Oscar Alejandro Sánchez Lucero
@ 2026-11-30  9:08 ` Joshua Crofts
  0 siblings, 0 replies; 2+ messages in thread
From: Joshua Crofts @ 2026-11-30  9:08 UTC (permalink / raw)
  To: Oscar Alejandro Sánchez Lucero, Mikael Gonella-Bolduc,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: linux-iio

On 30-Nov-26 9:00, Oscar Alejandro Sánchez Lucero wrote:
> chip->client is already assigned a few lines earlier in apds9160_probe().
> Drop the redundant assignment.
> 
> Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
> ---

Reviewed-by: Joshua Crofts <crofts@kernel.org>

-- 
Kind regards,
Joshua Crofts


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  8:00 [PATCH] iio: light: apds9160: Remove duplicate assignment of chip->client Oscar Alejandro Sánchez Lucero
2026-11-30  9:08 ` Joshua Crofts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox