mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>
Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org
Subject: [PATCH 5/5] regulator: arizona-ldo1: clean up coding style
Date: Mon, 30 Nov 2026 21:58:39 -0800	[thread overview]
Message-ID: <20261130-arizona-regulator-v1-5-727bc83b897c@gmail.com> (raw)
In-Reply-To: <20261130-arizona-regulator-v1-0-727bc83b897c@gmail.com>

Use standard unsigned int instead of bare unsigned, align continuation
arguments with opening parentheses, and unwrap a short error log call.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/regulator/arizona-ldo1.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c
index 2c1bf034095c..d284f098a6c9 100644
--- a/drivers/regulator/arizona-ldo1.c
+++ b/drivers/regulator/arizona-ldo1.c
@@ -34,7 +34,7 @@ struct arizona_ldo1 {
 };
 
 static int arizona_ldo1_hc_set_voltage_sel(struct regulator_dev *rdev,
-					   unsigned sel)
+					   unsigned int sel)
 {
 	struct regmap *regmap = rdev_get_regmap(rdev);
 	unsigned int val;
@@ -235,7 +235,7 @@ static int arizona_ldo1_common_init(struct platform_device *pdev,
 	 * so clean up would happen at the wrong time
 	 */
 	config.ena_gpiod = gpiod_get_optional(parent_dev, "wlf,ldoena",
-				GPIOD_OUT_LOW | GPIOD_FLAGS_BIT_NONEXCLUSIVE);
+					      GPIOD_OUT_LOW | GPIOD_FLAGS_BIT_NONEXCLUSIVE);
 	if (IS_ERR(config.ena_gpiod)) {
 		of_node_put(config.of_node);
 		return PTR_ERR(config.ena_gpiod);
@@ -247,8 +247,7 @@ static int arizona_ldo1_common_init(struct platform_device *pdev,
 
 	if (IS_ERR(ldo1->regulator)) {
 		ret = PTR_ERR(ldo1->regulator);
-		dev_err(&pdev->dev, "Failed to register LDO1 supply: %d\n",
-			ret);
+		dev_err(&pdev->dev, "Failed to register LDO1 supply: %d\n", ret);
 		return ret;
 	}
 

-- 
2.56.1.911.g883d8bcb20-goog


      parent reply	other threads:[~2026-12-01  5:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  5:58 [PATCH 0/5] regulator: arizona: clean up Device Tree and platform data handling Dmitry Torokhov
2026-12-01  5:58 ` [PATCH 1/5] regulator: arizona-ldo1: fix OF node leak on enable GPIO error Dmitry Torokhov
2026-12-01  5:58 ` [PATCH 2/5] regulator: arizona: always parse device tree properties Dmitry Torokhov
2026-12-01  5:58 ` [PATCH 3/5] regulator: arizona: stop using platform data for init_data Dmitry Torokhov
2026-12-01  5:58 ` [PATCH 4/5] regulator: arizona: simplify Device Tree property parsing Dmitry Torokhov
2026-12-01  5:58 ` Dmitry Torokhov [this message]

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=20261130-arizona-regulator-v1-5-727bc83b897c@gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    /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®