summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorCosmin Tanislav <demonsingur@gmail.com>2022-11-24 17:30:49 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-11-24 19:24:34 +0000
commitf84eec02b7248b6ae3bd8ef18a66f6f64eeab971 (patch)
treefbc7c7903665b096cc09c90a9cc4a3fae68d481a /drivers
parentf1e24342401a69da0519b289f0942fcd69e7db55 (diff)
iio: addac: ad74413r: fix blank line after declaration warning
Checkpatch wants a blank line after all declarations. Add it now, even though the patch has already been submitted. Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com> Link: https://lore.kernel.org/r/20221124153049.8851-1-cosmin.tanislav@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/addac/ad74413r.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/addac/ad74413r.c b/drivers/iio/addac/ad74413r.c
index 61030053cbea..f32c8c2fb26d 100644
--- a/drivers/iio/addac/ad74413r.c
+++ b/drivers/iio/addac/ad74413r.c
@@ -1315,6 +1315,7 @@ static int ad74413r_probe(struct spi_device *spi)
st->chip_info = device_get_match_data(&spi->dev);
if (!st->chip_info) {
const struct spi_device_id *id = spi_get_device_id(spi);
+
if (id)
st->chip_info =
(struct ad74413r_chip_info *)id->driver_data;