linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging:iio:adc: fix codestyle
@ 2018-12-17  1:43 Sergey Efimochkin
  2018-12-17  7:45 ` Dan Carpenter
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Efimochkin @ 2018-12-17  1:43 UTC (permalink / raw)
  Cc: Sergey Efimochkin, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Hartmut Knaack, Peter Meerwald-Stadler,
	Greg Kroah-Hartman, linux-iio, devel, linux-kernel

staging:iio:adc: fix codestyle
Signed-off-by: Sergey Efimochkin <efimochkin.sv@phystech.edu>
---
 drivers/staging/iio/adc/ad7280a.c | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c
index 58420dcb406d..52e12d1201b3 100644
--- a/drivers/staging/iio/adc/ad7280a.c
+++ b/drivers/staging/iio/adc/ad7280a.c
@@ -706,8 +706,8 @@ static irqreturn_t ad7280_event_handler(int irq, void *private)
 				st->cell_threshhigh)
 				iio_push_event(indio_dev,
 					       IIO_EVENT_CODE(IIO_VOLTAGE,
-							1,
-							0,
+							      1,
+							      0,
 							IIO_EV_DIR_RISING,
 							IIO_EV_TYPE_THRESH,
 							0, 0, 0),
@@ -716,8 +716,8 @@ static irqreturn_t ad7280_event_handler(int irq, void *private)
 				st->cell_threshlow)
 				iio_push_event(indio_dev,
 					       IIO_EVENT_CODE(IIO_VOLTAGE,
-							1,
-							0,
+							      1,
+							      0,
 							IIO_EV_DIR_FALLING,
 							IIO_EV_TYPE_THRESH,
 							0, 0, 0),
@@ -725,18 +725,16 @@ static irqreturn_t ad7280_event_handler(int irq, void *private)
 		} else {
 			if (((channels[i] >> 11) & 0xFFF) >= st->aux_threshhigh)
 				iio_push_event(indio_dev,
-					       IIO_UNMOD_EVENT_CODE(
-							IIO_TEMP,
-							0,
+					       IIO_UNMOD_EVENT_CODE(IIO_TEMP,
+								    0,
 							IIO_EV_TYPE_THRESH,
 							IIO_EV_DIR_RISING),
 					       iio_get_time_ns(indio_dev));
 			else if (((channels[i] >> 11) & 0xFFF) <=
 				st->aux_threshlow)
 				iio_push_event(indio_dev,
-					       IIO_UNMOD_EVENT_CODE(
-							IIO_TEMP,
-							0,
+					       IIO_UNMOD_EVENT_CODE(IIO_TEMP,
+								    0,
 							IIO_EV_TYPE_THRESH,
 							IIO_EV_DIR_FALLING),
 					       iio_get_time_ns(indio_dev));
@@ -987,6 +985,6 @@ static struct spi_driver ad7280_driver = {
 };
 module_spi_driver(ad7280_driver);
 
-MODULE_AUTHOR("Michael Hennerich <michael.hennerich@analog.com>");
+MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
 MODULE_DESCRIPTION("Analog Devices AD7280A");
 MODULE_LICENSE("GPL v2");
-- 
2.15.1 (Apple Git-101)


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-22 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17  1:43 [PATCH] staging:iio:adc: fix codestyle Sergey Efimochkin
2018-12-17  7:45 ` Dan Carpenter
2018-12-17 22:06   ` [PATCH v2] staging: iio: adc: ad7280a: fix codestyle in ad7280_event_handler Sergey Efimochkin
2018-12-22 17:04     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).