diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-03-03 23:34:40 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-03-25 21:10:12 +0100 |
commit | ba7352d019e7814fec475f429207a70b54e66e11 (patch) | |
tree | e4fcb8f8d240a54ba3ba5c9a24db494cd4882421 /drivers | |
parent | iio: adc: ad7173: add AD7173 driver (diff) | |
download | linux-ba7352d019e7814fec475f429207a70b54e66e11.tar.xz linux-ba7352d019e7814fec475f429207a70b54e66e11.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iio/light/st_uvis25_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/st_uvis25_core.c b/drivers/iio/light/st_uvis25_core.c index 50f95c5d2060..d4e17079b2f4 100644 --- a/drivers/iio/light/st_uvis25_core.c +++ b/drivers/iio/light/st_uvis25_core.c @@ -291,7 +291,7 @@ int st_uvis25_probe(struct device *dev, int irq, struct regmap *regmap) if (!iio_dev) return -ENOMEM; - dev_set_drvdata(dev, (void *)iio_dev); + dev_set_drvdata(dev, iio_dev); hw = iio_priv(iio_dev); hw->irq = irq; |