Commit 99698b45670a37b5304d5c6a743c8e96baa9ed8f

Authored by Peter Meerwald
Committed by Jonathan Cameron
1 parent d25b3808db

iio: whitespace cleanup and removal of semicolon after functions

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

Showing 4 changed files with 14 additions and 14 deletions Side-by-side Diff

drivers/iio/industrialio-buffer.c
... ... @@ -422,7 +422,7 @@
422 422 ret = indio_dev->setup_ops->preenable(indio_dev);
423 423 if (ret) {
424 424 printk(KERN_ERR
425   - "Buffer not started:"
  425 + "Buffer not started: "
426 426 "buffer preenable failed\n");
427 427 goto error_ret;
428 428 }
429 429  
... ... @@ -431,12 +431,12 @@
431 431 ret = buffer->access->request_update(buffer);
432 432 if (ret) {
433 433 printk(KERN_INFO
434   - "Buffer not started:"
  434 + "Buffer not started: "
435 435 "buffer parameter update failed\n");
436 436 goto error_ret;
437 437 }
438 438 }
439   - /* Definitely possible for devices to support both of these.*/
  439 + /* Definitely possible for devices to support both of these. */
440 440 if (indio_dev->modes & INDIO_BUFFER_TRIGGERED) {
441 441 if (!indio_dev->trig) {
442 442 printk(KERN_INFO
... ... @@ -456,7 +456,7 @@
456 456 ret = indio_dev->setup_ops->postenable(indio_dev);
457 457 if (ret) {
458 458 printk(KERN_INFO
459   - "Buffer not started:"
  459 + "Buffer not started: "
460 460 "postenable failed\n");
461 461 indio_dev->currentmode = previous_mode;
462 462 if (indio_dev->setup_ops->postdisable)
... ... @@ -657,7 +657,7 @@
657 657 /**
658 658 * struct iio_demux_table() - table describing demux memcpy ops
659 659 * @from: index to copy from
660   - * @to: index to copy to
  660 + * @to: index to copy to
661 661 * @length: how many bytes to copy
662 662 * @l: list head used for management
663 663 */
drivers/iio/industrialio-core.c
... ... @@ -29,7 +29,7 @@
29 29 #include <linux/iio/sysfs.h>
30 30 #include <linux/iio/events.h>
31 31  
32   -/* IDA to assign each registered device a unique id*/
  32 +/* IDA to assign each registered device a unique id */
33 33 static DEFINE_IDA(iio_ida);
34 34  
35 35 static dev_t iio_devt;
include/linux/iio/iio.h
... ... @@ -371,10 +371,10 @@
371 371 * scan mask is valid for the device.
372 372 */
373 373 struct iio_buffer_setup_ops {
374   - int (*preenable)(struct iio_dev *);
375   - int (*postenable)(struct iio_dev *);
376   - int (*predisable)(struct iio_dev *);
377   - int (*postdisable)(struct iio_dev *);
  374 + int (*preenable)(struct iio_dev *);
  375 + int (*postenable)(struct iio_dev *);
  376 + int (*predisable)(struct iio_dev *);
  377 + int (*postdisable)(struct iio_dev *);
378 378 bool (*validate_scan_mask)(struct iio_dev *indio_dev,
379 379 const unsigned long *scan_mask);
380 380 };
include/linux/iio/trigger.h
... ... @@ -29,7 +29,7 @@
29 29 * instances of a given device.
30 30 **/
31 31 struct iio_trigger_ops {
32   - struct module *owner;
  32 + struct module *owner;
33 33 int (*set_trigger_state)(struct iio_trigger *trig, bool state);
34 34 int (*try_reenable)(struct iio_trigger *trig);
35 35 int (*validate_device)(struct iio_trigger *trig,
36 36  
37 37  
... ... @@ -76,19 +76,19 @@
76 76 static inline struct iio_trigger *to_iio_trigger(struct device *d)
77 77 {
78 78 return container_of(d, struct iio_trigger, dev);
79   -};
  79 +}
80 80  
81 81 static inline void iio_trigger_put(struct iio_trigger *trig)
82 82 {
83 83 module_put(trig->ops->owner);
84 84 put_device(&trig->dev);
85   -};
  85 +}
86 86  
87 87 static inline void iio_trigger_get(struct iio_trigger *trig)
88 88 {
89 89 get_device(&trig->dev);
90 90 __module_get(trig->ops->owner);
91   -};
  91 +}
92 92  
93 93 /**
94 94 * iio_trigger_register() - register a trigger with the IIO core