iio: light: apds9306: remove redundant explicit pointer cast

C allows implicit conversion from void * to struct apds9306_data *, so the
explicit cast on 'ptr' is unnecessary. Removing it improves readability.

Signed-off-by: SAJJA EASWAR SAI <eshwarsajja20@gmail.com>
Acked-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
SAJJA EASWAR SAI 2026-01-30 02:34:31 +05:30 committed by Jonathan Cameron
parent f4e466aac3
commit 1bceffda64

View File

@ -1176,7 +1176,7 @@ static int apds9306_init_iio_gts(struct apds9306_data *data)
static void apds9306_powerdown(void *ptr)
{
struct apds9306_data *data = (struct apds9306_data *)ptr;
struct apds9306_data *data = ptr;
struct apds9306_regfields *rf = &data->rf;
int ret;