mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02: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:
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user