From: Henriette Hofmeier <passt@h-hofmeier.de>
To: devel@linuxdriverproject.org
Cc: zbr@ioremap.net, arvind.yadav.cs@gmail.com,
gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
Henriette Hofmeier <passt@h-hofmeier.de>,
Florian Harbecke <florian.harbecke@fau.de>
Subject: [PATCH 1/3] ds2490.c: Add required spaces
Date: Thu, 14 Jun 2018 17:20:39 +0200 [thread overview]
Message-ID: <1528989641-20284-2-git-send-email-passt@h-hofmeier.de> (raw)
In-Reply-To: <1528989641-20284-1-git-send-email-passt@h-hofmeier.de>
Add missing spaces in for- and while-loops
reported missing by checkpatch.
Signed-off-by: Henriette Hofmeier <passt@h-hofmeier.de>
Signed-off-by: Florian Harbecke <florian.harbecke@fau.de>
---
drivers/w1/masters/ds2490.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c
index c423bdb..917a5f1 100644
--- a/drivers/w1/masters/ds2490.c
+++ b/drivers/w1/masters/ds2490.c
@@ -236,7 +236,7 @@ static void ds_dump_status(struct ds_device *dev, unsigned char *buf, int count)
int i;
pr_info("0x%x: count=%d, status: ", dev->ep[EP_STATUS], count);
- for (i=0; i<count; ++i)
+ for (i = 0; i < count; ++i)
pr_info("%02x ", buf[i]);
pr_info("\n");
@@ -358,7 +358,7 @@ static int ds_recv_data(struct ds_device *dev, unsigned char *buf, int size)
int i;
printk("%s: count=%d: ", __func__, count);
- for (i=0; i<count; ++i)
+ for (i = 0; i < count; ++i)
printk("%02x ", buf[i]);
printk("\n");
}
@@ -404,7 +404,7 @@ int ds_stop_pulse(struct ds_device *dev, int limit)
if (err)
break;
}
- } while(++count < limit);
+ } while (++count < limit);
return err;
}
@@ -447,7 +447,7 @@ static int ds_wait_status(struct ds_device *dev, struct ds_status *st)
if (err >= 0) {
int i;
printk("0x%x: count=%d, status: ", dev->ep[EP_STATUS], err);
- for (i=0; i<err; ++i)
+ for (i = 0; i < err; ++i)
printk("%02x ", dev->st_buf[i]);
printk("\n");
}
--
2.7.4
next prev parent reply other threads:[~2018-06-14 15:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-14 15:20 [PATCH 0/3] drivers/w1/masters/ds2490: Correct errors reported by checkpatch Henriette Hofmeier
2018-06-14 15:20 ` Henriette Hofmeier [this message]
2018-06-14 15:20 ` [PATCH 2/3] ds2490.c: Remove unnecessary whitespace Henriette Hofmeier
2018-06-14 15:20 ` [PATCH 3/3] ds2490.c: Move struct open braces to previous line Henriette Hofmeier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1528989641-20284-2-git-send-email-passt@h-hofmeier.de \
--to=passt@h-hofmeier.de \
--cc=arvind.yadav.cs@gmail.com \
--cc=devel@linuxdriverproject.org \
--cc=florian.harbecke@fau.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zbr@ioremap.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).