linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: linux-rtc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
	Alexandre Belloni <alexandre.belloni@bootlin.com>
Subject: [PATCH 3/3] rtc: omap: checkpatch cleanup
Date: Wed, 20 Mar 2019 13:45:35 +0100	[thread overview]
Message-ID: <20190320124535.14606-3-alexandre.belloni@bootlin.com> (raw)
In-Reply-To: <20190320124535.14606-1-alexandre.belloni@bootlin.com>

Properly align code with opening parenthesis.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-omap.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c
index 78082f94495e..ec3957c43cb6 100644
--- a/drivers/rtc/rtc-omap.c
+++ b/drivers/rtc/rtc-omap.c
@@ -450,7 +450,7 @@ static void omap_rtc_power_off(void)
 	 */
 	val = rtc_read(rtc, OMAP_RTC_INTERRUPTS_REG);
 	rtc_writel(rtc, OMAP_RTC_INTERRUPTS_REG,
-			val | OMAP_RTC_INTERRUPTS_IT_ALARM2);
+		   val | OMAP_RTC_INTERRUPTS_IT_ALARM2);
 
 	/* Retry in case roll over happened before alarm was armed. */
 	if (rtc_read(rtc, OMAP_RTC_SECONDS_REG) != seconds) {
@@ -538,7 +538,7 @@ static int rtc_pinctrl_get_groups_count(struct pinctrl_dev *pctldev)
 }
 
 static const char *rtc_pinctrl_get_group_name(struct pinctrl_dev *pctldev,
-					unsigned int group)
+					      unsigned int group)
 {
 	return NULL;
 }
@@ -563,7 +563,7 @@ static const struct pin_config_item rtc_conf_items[ARRAY_SIZE(rtc_params)] = {
 #endif
 
 static int rtc_pinconf_get(struct pinctrl_dev *pctldev,
-			unsigned int pin, unsigned long *config)
+			   unsigned int pin, unsigned long *config)
 {
 	struct omap_rtc *rtc = pinctrl_dev_get_drvdata(pctldev);
 	unsigned int param = pinconf_to_config_param(*config);
@@ -591,8 +591,8 @@ static int rtc_pinconf_get(struct pinctrl_dev *pctldev,
 }
 
 static int rtc_pinconf_set(struct pinctrl_dev *pctldev,
-			unsigned int pin, unsigned long *configs,
-			unsigned int num_configs)
+			   unsigned int pin, unsigned long *configs,
+			   unsigned int num_configs)
 {
 	struct omap_rtc *rtc = pinctrl_dev_get_drvdata(pctldev);
 	u32 val;
@@ -757,7 +757,7 @@ static int omap_rtc_probe(struct platform_device *pdev)
 	if (rtc->type->has_32kclk_en) {
 		reg = rtc_read(rtc, OMAP_RTC_OSC_REG);
 		rtc_writel(rtc, OMAP_RTC_OSC_REG,
-				reg | OMAP_RTC_OSC_32KCLK_EN);
+			   reg | OMAP_RTC_OSC_32KCLK_EN);
 	}
 
 	/* clear old status */
@@ -835,13 +835,13 @@ static int omap_rtc_probe(struct platform_device *pdev)
 
 	/* handle periodic and alarm irqs */
 	ret = devm_request_irq(&pdev->dev, rtc->irq_timer, rtc_irq, 0,
-			dev_name(&rtc->rtc->dev), rtc);
+			       dev_name(&rtc->rtc->dev), rtc);
 	if (ret)
 		goto err;
 
 	if (rtc->irq_timer != rtc->irq_alarm) {
 		ret = devm_request_irq(&pdev->dev, rtc->irq_alarm, rtc_irq, 0,
-				dev_name(&rtc->rtc->dev), rtc);
+				       dev_name(&rtc->rtc->dev), rtc);
 		if (ret)
 			goto err;
 	}
@@ -889,7 +889,7 @@ static int omap_rtc_remove(struct platform_device *pdev)
 	u8 reg;
 
 	if (pm_power_off == omap_rtc_power_off &&
-			omap_rtc_power_off_rtc == rtc) {
+	    omap_rtc_power_off_rtc == rtc) {
 		pm_power_off = NULL;
 		omap_rtc_power_off_rtc = NULL;
 	}
-- 
2.20.1


  parent reply	other threads:[~2019-03-20 12:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-20 12:45 [PATCH 1/3] rtc: omap: switch to rtc_time64_to_tm/rtc_tm_to_time64 Alexandre Belloni
2019-03-20 12:45 ` [PATCH 2/3] rtc: omap: convert to SPDX identifier Alexandre Belloni
2019-03-20 12:45 ` Alexandre Belloni [this message]
2019-03-20 13:31   ` [PATCH 3/3] rtc: omap: checkpatch cleanup Johan Hovold
2019-03-22  6:35     ` Alexandre Belloni

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=20190320124535.14606-3-alexandre.belloni@bootlin.com \
    --to=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;
as well as URLs for NNTP newsgroup(s).