mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jagath Jog J <jagathjog1996@gmail.com>
To: alexandre.belloni@bootlin.com, a.zummo@towertech.it
Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org,
	jagathjog1996@gmail.com
Subject: [PATCH 1/3] rtc: rv3028: Inserting some required spaces.
Date: Tue, 16 Aug 2022 09:26:34 +0530	[thread overview]
Message-ID: <20220816035636.27226-2-jagathjog1996@gmail.com> (raw)
In-Reply-To: <20220816035636.27226-1-jagathjog1996@gmail.com>

Coding style changes for checkpatch.pl error.
Add space required before the open parenthesis '('.
Add space required after the ','.

Signed-off-by: Jagath Jog J <jagathjog1996@gmail.com>
---
 drivers/rtc/rtc-rv3028.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/rtc/rtc-rv3028.c b/drivers/rtc/rtc-rv3028.c
index cdc623b3e365..5cebb00bec21 100644
--- a/drivers/rtc/rtc-rv3028.c
+++ b/drivers/rtc/rtc-rv3028.c
@@ -80,8 +80,8 @@
 #define RV3028_EEBUSY_TIMEOUT		100000
 
 #define RV3028_BACKUP_TCE		BIT(5)
-#define RV3028_BACKUP_TCR_MASK		GENMASK(1,0)
-#define RV3028_BACKUP_BSM		GENMASK(3,2)
+#define RV3028_BACKUP_TCR_MASK		GENMASK(1, 0)
+#define RV3028_BACKUP_BSM		GENMASK(3, 2)
 
 #define RV3028_BACKUP_BSM_DSM		0x1
 #define RV3028_BACKUP_BSM_LSM		0x3
@@ -522,7 +522,7 @@ static int rv3028_param_get(struct device *dev, struct rtc_param *param)
 	struct rv3028_data *rv3028 = dev_get_drvdata(dev);
 	int ret;
 
-	switch(param->param) {
+	switch (param->param) {
 		u32 value;
 
 	case RTC_PARAM_BACKUP_SWITCH_MODE:
@@ -532,7 +532,7 @@ static int rv3028_param_get(struct device *dev, struct rtc_param *param)
 
 		value = FIELD_GET(RV3028_BACKUP_BSM, value);
 
-		switch(value) {
+		switch (value) {
 		case RV3028_BACKUP_BSM_DSM:
 			param->uvalue = RTC_BSM_DIRECT;
 			break;
@@ -555,7 +555,7 @@ static int rv3028_param_set(struct device *dev, struct rtc_param *param)
 {
 	struct rv3028_data *rv3028 = dev_get_drvdata(dev);
 
-	switch(param->param) {
+	switch (param->param) {
 		u8 mode;
 	case RTC_PARAM_BACKUP_SWITCH_MODE:
 		switch (param->uvalue) {
-- 
2.17.1


  reply	other threads:[~2022-08-16  7:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-16  3:56 [PATCH 0/3] rtc: rv3028: Fix codestyle errors and checks Jagath Jog J
2022-08-16  3:56 ` Jagath Jog J [this message]
2022-08-16  3:56 ` [PATCH 2/3] rtc: rv3028: fix code indent issue Jagath Jog J
2022-08-16  3:56 ` [PATCH 3/3] rtc: rv3028: Alignment to match the open parenthesis Jagath Jog J

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=20220816035636.27226-2-jagathjog1996@gmail.com \
    --to=jagathjog1996@gmail.com \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®