mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-27 19:09:50 -04:00
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:
committed by
Jonathan Cameron
parent
f4e466aac3
commit
1bceffda64
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user