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

io: light: st_uvis25: drop casting to void in dev_set_drvdata

The C standard specifies that there is no need to cast from a pointer to
void [1]. Therefore, it can be safely dropped.

[1] C Standard Committee: https://c0x.shape-of-code.com/6.3.2.3.html

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240303-void_in_dev_set_drvdata-v1-2-ae39027d740b@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Javier Carrasco and committed by
Jonathan Cameron
ba7352d0 76a1e6a4

+1 -1
+1 -1
drivers/iio/light/st_uvis25_core.c
··· 291 291 if (!iio_dev) 292 292 return -ENOMEM; 293 293 294 - dev_set_drvdata(dev, (void *)iio_dev); 294 + dev_set_drvdata(dev, iio_dev); 295 295 296 296 hw = iio_priv(iio_dev); 297 297 hw->irq = irq;