linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: rtq2134: Fix coding style
@ 2021-07-30 12:32 cy_huang
  2021-07-30 19:03 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: cy_huang @ 2021-07-30 12:32 UTC (permalink / raw)
  To: broonie; +Cc: lgirdwood, linux-kernel, cy_huang

From: ChiYuan Huang <cy_huang@richtek.com>

Add empty space and put constant number to the right side for 'if' judgement.

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
---
 drivers/regulator/rtq2134-regulator.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/rtq2134-regulator.c b/drivers/regulator/rtq2134-regulator.c
index e09419c..f21e3f8 100644
--- a/drivers/regulator/rtq2134-regulator.c
+++ b/drivers/regulator/rtq2134-regulator.c
@@ -311,7 +311,7 @@ static const struct rtq2134_regulator_desc rtq2134_regulator_descs[] = {
 
 static bool rtq2134_is_accissible_reg(struct device *dev, unsigned int reg)
 {
-	if (RTQ2134_REG_IO_CHIPNAME <= reg && reg <= RTQ2134_REG_BUCK3_SLEWCTRL)
+	if (reg >= RTQ2134_REG_IO_CHIPNAME && reg <= RTQ2134_REG_BUCK3_SLEWCTRL)
 		return true;
 	return false;
 }
@@ -329,7 +329,7 @@ static int rtq2134_probe(struct i2c_client *i2c)
 {
 	struct regmap *regmap;
 	struct regulator_dev *rdev;
-	struct regulator_config regulator_cfg= {};
+	struct regulator_config regulator_cfg = {};
 	int i;
 
 	regmap = devm_regmap_init_i2c(i2c, &rtq2134_regmap_config);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] regulator: rtq2134: Fix coding style
  2021-07-30 12:32 [PATCH] regulator: rtq2134: Fix coding style cy_huang
@ 2021-07-30 19:03 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2021-07-30 19:03 UTC (permalink / raw)
  To: cy_huang; +Cc: Mark Brown, linux-kernel, lgirdwood, cy_huang

On Fri, 30 Jul 2021 20:32:06 +0800, cy_huang wrote:
> Add empty space and put constant number to the right side for 'if' judgement.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: rtq2134: Fix coding style
      commit: 15b4d2b972014b789f22d9267bcff1cc48153738

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-30 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 12:32 [PATCH] regulator: rtq2134: Fix coding style cy_huang
2021-07-30 19:03 ` Mark Brown

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).