Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

SAJJA EASWAR SAI and committed by
Jonathan Cameron
1bceffda f4e466aa

+1 -1
+1 -1
drivers/iio/light/apds9306.c
··· 1176 1176 1177 1177 static void apds9306_powerdown(void *ptr) 1178 1178 { 1179 - struct apds9306_data *data = (struct apds9306_data *)ptr; 1179 + struct apds9306_data *data = ptr; 1180 1180 struct apds9306_regfields *rf = &data->rf; 1181 1181 int ret; 1182 1182