Commit 455f0049 authored by George McCollister's avatar George McCollister Committed by Jonathan Cameron

iio: as3935: Remove unnecessary semicolons

Signed-off-by: default avatarGeorge McCollister <george.mccollister@gmail.com>
Acked-by: default avatarHartmut Knaack <knaack.h@gmx.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent ce069484
...@@ -95,7 +95,7 @@ static int as3935_read(struct as3935_state *st, unsigned int reg, int *val) ...@@ -95,7 +95,7 @@ static int as3935_read(struct as3935_state *st, unsigned int reg, int *val)
*val = ret; *val = ret;
return 0; return 0;
}; }
static int as3935_write(struct as3935_state *st, static int as3935_write(struct as3935_state *st,
unsigned int reg, unsigned int reg,
...@@ -107,7 +107,7 @@ static int as3935_write(struct as3935_state *st, ...@@ -107,7 +107,7 @@ static int as3935_write(struct as3935_state *st,
buf[1] = val; buf[1] = val;
return spi_write(st->spi, buf, 2); return spi_write(st->spi, buf, 2);
}; }
static ssize_t as3935_sensor_sensitivity_show(struct device *dev, static ssize_t as3935_sensor_sensitivity_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
...@@ -122,7 +122,7 @@ static ssize_t as3935_sensor_sensitivity_show(struct device *dev, ...@@ -122,7 +122,7 @@ static ssize_t as3935_sensor_sensitivity_show(struct device *dev,
val = (val & AS3935_AFE_MASK) >> 1; val = (val & AS3935_AFE_MASK) >> 1;
return sprintf(buf, "%d\n", val); return sprintf(buf, "%d\n", val);
}; }
static ssize_t as3935_sensor_sensitivity_store(struct device *dev, static ssize_t as3935_sensor_sensitivity_store(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
...@@ -142,7 +142,7 @@ static ssize_t as3935_sensor_sensitivity_store(struct device *dev, ...@@ -142,7 +142,7 @@ static ssize_t as3935_sensor_sensitivity_store(struct device *dev,
as3935_write(st, AS3935_AFE_GAIN, val << 1); as3935_write(st, AS3935_AFE_GAIN, val << 1);
return len; return len;
}; }
static IIO_DEVICE_ATTR(sensor_sensitivity, S_IRUGO | S_IWUSR, static IIO_DEVICE_ATTR(sensor_sensitivity, S_IRUGO | S_IWUSR,
as3935_sensor_sensitivity_show, as3935_sensor_sensitivity_store, 0); as3935_sensor_sensitivity_show, as3935_sensor_sensitivity_store, 0);
...@@ -214,7 +214,7 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private) ...@@ -214,7 +214,7 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private)
iio_trigger_notify_done(indio_dev->trig); iio_trigger_notify_done(indio_dev->trig);
return IRQ_HANDLED; return IRQ_HANDLED;
}; }
static const struct iio_trigger_ops iio_interrupt_trigger_ops = { static const struct iio_trigger_ops iio_interrupt_trigger_ops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
...@@ -238,7 +238,7 @@ static void as3935_event_work(struct work_struct *work) ...@@ -238,7 +238,7 @@ static void as3935_event_work(struct work_struct *work)
dev_warn(&st->spi->dev, "noise level is too high"); dev_warn(&st->spi->dev, "noise level is too high");
break; break;
} }
}; }
static irqreturn_t as3935_interrupt_handler(int irq, void *private) static irqreturn_t as3935_interrupt_handler(int irq, void *private)
{ {
...@@ -417,7 +417,7 @@ static int as3935_probe(struct spi_device *spi) ...@@ -417,7 +417,7 @@ static int as3935_probe(struct spi_device *spi)
iio_trigger_unregister(st->trig); iio_trigger_unregister(st->trig);
return ret; return ret;
}; }
static int as3935_remove(struct spi_device *spi) static int as3935_remove(struct spi_device *spi)
{ {
...@@ -429,7 +429,7 @@ static int as3935_remove(struct spi_device *spi) ...@@ -429,7 +429,7 @@ static int as3935_remove(struct spi_device *spi)
iio_trigger_unregister(st->trig); iio_trigger_unregister(st->trig);
return 0; return 0;
}; }
static const struct spi_device_id as3935_id[] = { static const struct spi_device_id as3935_id[] = {
{"as3935", 0}, {"as3935", 0},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment