[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20220816035636.27226-2-jagathjog1996@gmail.com>
Date: Tue, 16 Aug 2022 09:26:34 +0530
From: Jagath Jog J <jagathjog1996@...il.com>
To: alexandre.belloni@...tlin.com, a.zummo@...ertech.it
Cc: linux-rtc@...r.kernel.org, linux-kernel@...r.kernel.org,
jagathjog1996@...il.com
Subject: [PATCH 1/3] rtc: rv3028: Inserting some required spaces.
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@...il.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
Powered by blists - more mailing lists