]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
iio:light:ltr501: Drop unnecessary cast of parameter in regmap_bulk_read
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 5 Apr 2020 18:03:21 +0000 (19:03 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:40 +0000 (16:56 +0100)
This only occurs once in the driver and isn't needed in this case either,
so drop it.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/iio/light/ltr501.c

index 71f99d2a22c1ddf2994100d7a9e54752ba4d0163..0626927251bb5a31d2a99cc83da1995f7ddb1e95 100644 (file)
@@ -1263,7 +1263,7 @@ static irqreturn_t ltr501_trigger_handler(int irq, void *p)
 
        if (mask & LTR501_STATUS_ALS_RDY) {
                ret = regmap_bulk_read(data->regmap, LTR501_ALS_DATA1,
-                                      (u8 *)als_buf, sizeof(als_buf));
+                                      als_buf, sizeof(als_buf));
                if (ret < 0)
                        return ret;
                if (test_bit(0, indio_dev->active_scan_mask))