aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/proximity
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2014-10-31 11:44:23 -0400
committerJonathan Cameron <jic23@kernel.org>2014-11-05 08:47:42 -0500
commit455f0049e0c02ee0a769d967b1eba2c52e932237 (patch)
treef9c1f5130e238838ba4c9990bbc50978cc21ca3e /drivers/iio/proximity
parentce0694841ea61607afcbdb5a67bb0b00328357ef (diff)
iio: as3935: Remove unnecessary semicolons
Signed-off-by: George McCollister <george.mccollister@gmail.com> Acked-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/proximity')
-rw-r--r--drivers/iio/proximity/as3935.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c
index 5e780ef206f3..78244e6343f6 100644
--- a/drivers/iio/proximity/as3935.c
+++ b/drivers/iio/proximity/as3935.c
@@ -95,7 +95,7 @@ static int as3935_read(struct as3935_state *st, unsigned int reg, int *val)
95 *val = ret; 95 *val = ret;
96 96
97 return 0; 97 return 0;
98}; 98}
99 99
100static int as3935_write(struct as3935_state *st, 100static int as3935_write(struct as3935_state *st,
101 unsigned int reg, 101 unsigned int reg,
@@ -107,7 +107,7 @@ static int as3935_write(struct as3935_state *st,
107 buf[1] = val; 107 buf[1] = val;
108 108
109 return spi_write(st->spi, buf, 2); 109 return spi_write(st->spi, buf, 2);
110}; 110}
111 111
112static ssize_t as3935_sensor_sensitivity_show(struct device *dev, 112static ssize_t as3935_sensor_sensitivity_show(struct device *dev,
113 struct device_attribute *attr, 113 struct device_attribute *attr,
@@ -122,7 +122,7 @@ static ssize_t as3935_sensor_sensitivity_show(struct device *dev,
122 val = (val & AS3935_AFE_MASK) >> 1; 122 val = (val & AS3935_AFE_MASK) >> 1;
123 123
124 return sprintf(buf, "%d\n", val); 124 return sprintf(buf, "%d\n", val);
125}; 125}
126 126
127static ssize_t as3935_sensor_sensitivity_store(struct device *dev, 127static ssize_t as3935_sensor_sensitivity_store(struct device *dev,
128 struct device_attribute *attr, 128 struct device_attribute *attr,
@@ -142,7 +142,7 @@ static ssize_t as3935_sensor_sensitivity_store(struct device *dev,
142 as3935_write(st, AS3935_AFE_GAIN, val << 1); 142 as3935_write(st, AS3935_AFE_GAIN, val << 1);
143 143
144 return len; 144 return len;
145}; 145}
146 146
147static IIO_DEVICE_ATTR(sensor_sensitivity, S_IRUGO | S_IWUSR, 147static IIO_DEVICE_ATTR(sensor_sensitivity, S_IRUGO | S_IWUSR,
148 as3935_sensor_sensitivity_show, as3935_sensor_sensitivity_store, 0); 148 as3935_sensor_sensitivity_show, as3935_sensor_sensitivity_store, 0);
@@ -214,7 +214,7 @@ err_read:
214 iio_trigger_notify_done(indio_dev->trig); 214 iio_trigger_notify_done(indio_dev->trig);
215 215
216 return IRQ_HANDLED; 216 return IRQ_HANDLED;
217}; 217}
218 218
219static const struct iio_trigger_ops iio_interrupt_trigger_ops = { 219static const struct iio_trigger_ops iio_interrupt_trigger_ops = {
220 .owner = THIS_MODULE, 220 .owner = THIS_MODULE,
@@ -238,7 +238,7 @@ static void as3935_event_work(struct work_struct *work)
238 dev_warn(&st->spi->dev, "noise level is too high"); 238 dev_warn(&st->spi->dev, "noise level is too high");
239 break; 239 break;
240 } 240 }
241}; 241}
242 242
243static irqreturn_t as3935_interrupt_handler(int irq, void *private) 243static irqreturn_t as3935_interrupt_handler(int irq, void *private)
244{ 244{
@@ -417,7 +417,7 @@ unregister_trigger:
417 iio_trigger_unregister(st->trig); 417 iio_trigger_unregister(st->trig);
418 418
419 return ret; 419 return ret;
420}; 420}
421 421
422static int as3935_remove(struct spi_device *spi) 422static int as3935_remove(struct spi_device *spi)
423{ 423{
@@ -429,7 +429,7 @@ static int as3935_remove(struct spi_device *spi)
429 iio_trigger_unregister(st->trig); 429 iio_trigger_unregister(st->trig);
430 430
431 return 0; 431 return 0;
432}; 432}
433 433
434static const struct spi_device_id as3935_id[] = { 434static const struct spi_device_id as3935_id[] = {
435 {"as3935", 0}, 435 {"as3935", 0},