]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: apds9306: remove redundant explicit pointer cast
authorSAJJA EASWAR SAI <eshwarsajja20@gmail.com>
Thu, 29 Jan 2026 21:04:31 +0000 (02:34 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 3 Mar 2026 21:20:00 +0000 (21:20 +0000)
commit1bceffda64eeb7d24c4bfea9f0514b8775afb709
tree76132d6eaf67933b6577e8ee451c20af188d153a
parentf4e466aac34013904d81acfacf1f2453068578a2
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>
drivers/iio/light/apds9306.c