mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Priit Laes <plaes@plaes.org>
To: Lee Jones <lee.jones@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>, Chen-Yu Tsai <wens@csie.org>,
	Maxime Ripard <maxime.ripard@bootlin.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Olliver Schinagl <oliver@schinagl.nl>,
	linux-sunxi <linux-sunxi@googlegroups.com>
Cc: Priit Laes <plaes@plaes.org>
Subject: [PATCH v2 8/8] mfd: axp20x: use explicit bit defines
Date: Tue, 11 Dec 2018 17:17:12 +0200	[thread overview]
Message-ID: <2098c0aece09761bf975e72eaa75cba92a4e463d.1544512919.git-series.plaes@plaes.org> (raw)
In-Reply-To: <cover.923997dd7d7396bb4d71f8967698b58ca956b929.1544512919.git-series.plaes@plaes.org>

From: Olliver Schinagl <oliver@schinagl.nl>

The AXP20X_OFF define is an actual specific bit, define it as such.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Priit Laes <plaes@plaes.org>
Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>
---
 drivers/mfd/axp20x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index c3f3dbd..d183ed8 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -30,7 +30,7 @@
 #include <linux/regmap.h>
 #include <linux/regulator/consumer.h>
 
-#define AXP20X_OFF	0x80
+#define AXP20X_OFF	BIT(7)
 
 #define AXP806_REG_ADDR_EXT_ADDR_MASTER_MODE	0
 #define AXP806_REG_ADDR_EXT_ADDR_SLAVE_MODE	BIT(4)
-- 
git-series 0.9.1

      parent reply	other threads:[~2018-12-11 15:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-11 15:17 [PATCH v2 0/8] regulator: axp20x: Stop AXP209 from crashing when enabling LDO3 Priit Laes
2018-12-11 15:17 ` [PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly Priit Laes
2018-12-21  8:39   ` Lee Jones
2018-12-21  8:42     ` [linux-sunxi] " Priit Laes
2018-12-21  9:26       ` Lee Jones
2018-12-21  9:28         ` Priit Laes
2018-12-21  9:57           ` Lee Jones
2018-12-11 15:17 ` [PATCH v2 2/8] regulator: axp20x: add support for set_ramp_delay for AXP209 Priit Laes
2018-12-11 15:17 ` [PATCH v2 3/8] dt-bindings: mfd: axp20x: add support for regulator-ramp-delay " Priit Laes
2018-12-11 15:17 ` [PATCH v2 4/8] regulator: axp20x: add software based soft_start for AXP209 LDO3 Priit Laes
2018-12-11 15:17 ` [PATCH v2 5/8] dt-bindings: mfd: axp20x: Add " Priit Laes
2018-12-21  8:40   ` Lee Jones
2018-12-11 15:17 ` [PATCH v2 6/8] regulator: dts: enable soft-start and ramp delay for the OLinuXino Lime2 Priit Laes
2018-12-11 15:17 ` [PATCH v2 7/8] mfd: axp20x: Clean up included headers Priit Laes
2018-12-11 15:17 ` Priit Laes [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=2098c0aece09761bf975e72eaa75cba92a4e463d.1544512919.git-series.plaes@plaes.org \
    --to=plaes@plaes.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=mark.rutland@arm.com \
    --cc=maxime.ripard@bootlin.com \
    --cc=oliver@schinagl.nl \
    --cc=robh+dt@kernel.org \
    --cc=wens@csie.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®