linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix some coding style problem in drivers/staging/iio/frequency/ad9832.c
@ 2014-06-02 17:05 Federico Di Pierro
  2014-06-02 17:14 ` Joe Perches
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Federico Di Pierro @ 2014-06-02 17:05 UTC (permalink / raw)
  To: jic23, jic23, gregkh, jg1.han, sachin.kamat
  Cc: linux-iio, devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 143 bytes --]

Hi!
This is my latest task of the eudyptula challenge.
Just a very small patch! It fixes 3 little coding style problems.
I'm using linux-next.

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1077 bytes --]

--- linux/drivers/staging/iio/frequency/ad9832.c.orig	2014-06-02 17:26:12.929978122 +0200
+++ linux/drivers/staging/iio/frequency/ad9832.c	2014-06-02 17:28:10.389970947 +0200
@@ -57,7 +57,7 @@ static int ad9832_write_frequency(struct
 }
 
 static int ad9832_write_phase(struct ad9832_state *st,
-				  unsigned long addr, unsigned long phase)
+			      unsigned long addr, unsigned long phase)
 {
 	if (phase > (1 << AD9832_PHASE_BITS))
 		return -EINVAL;
@@ -73,7 +73,7 @@ static int ad9832_write_phase(struct ad9
 }
 
 static ssize_t ad9832_write(struct device *dev,
-		struct device_attribute *attr,
+			    struct device_attribute *attr,
 		const char *buf,
 		size_t len)
 {
@@ -109,11 +109,11 @@ static ssize_t ad9832_write(struct devic
 		ret = spi_sync(st->spi, &st->msg);
 		break;
 	case AD9832_FREQ_SYM:
-		if (val == 1)
+		if (val == 1) {
 			st->ctrl_fp |= AD9832_FREQ;
-		else if (val == 0)
+		} else if (val == 0) {
 			st->ctrl_fp &= ~AD9832_FREQ;
-		else {
+		} else {
 			ret = -EINVAL;
 			break;
 		}


Signed-off-by: Federico Di Pierro <nierro92@gmail.org>

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

end of thread, other threads:[~2014-06-02 19:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02 17:05 [PATCH] fix some coding style problem in drivers/staging/iio/frequency/ad9832.c Federico Di Pierro
2014-06-02 17:14 ` Joe Perches
2014-06-02 17:21 ` Jianyu Zhan
2014-06-02 17:44 ` Jonathan Cameron
2014-06-02 19:10 ` Dan Carpenter

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).