All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
	linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,
	Mark Brown <broonie@kernel.org>
Subject: Applied "regulator: max8952: simplify getting the adapter of a client" to the regulator tree
Date: Mon, 10 Jun 2019 18:34:46 +0100 (BST)	[thread overview]
Message-ID: <20190610173446.B100A440046@finisterre.sirena.org.uk> (raw)
In-Reply-To: <20190608105619.593-26-wsa+renesas@sang-engineering.com>

The patch

   regulator: max8952: simplify getting the adapter of a client

has been applied to the regulator tree at

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

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

From 6b96092a6bfa65566dda2f5a68a559a743b8d132 Mon Sep 17 00:00:00 2001
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
Date: Sat, 8 Jun 2019 12:56:04 +0200
Subject: [PATCH] regulator: max8952: simplify getting the adapter of a client

We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/regulator/max8952.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c
index cf2a2912cb1b..451237efb359 100644
--- a/drivers/regulator/max8952.c
+++ b/drivers/regulator/max8952.c
@@ -192,7 +192,7 @@ static struct max8952_platform_data *max8952_parse_dt(struct device *dev)
 static int max8952_pmic_probe(struct i2c_client *client,
 		const struct i2c_device_id *i2c_id)
 {
-	struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
+	struct i2c_adapter *adapter = client->adapter;
 	struct max8952_platform_data *pdata = dev_get_platdata(&client->dev);
 	struct regulator_config config = { };
 	struct max8952_data *max8952;
-- 
2.20.1


WARNING: multiple messages have this Message-ID (diff)
From: Mark Brown <broonie@kernel.org>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
	linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,
	Mark Brown <broonie@kernel.org>
Subject: Applied "regulator: max8952: simplify getting the adapter of a client" to the regulator tree
Date: Mon, 10 Jun 2019 18:34:46 +0100 (BST)	[thread overview]
Message-ID: <20190610173446.B100A440046@finisterre.sirena.org.uk> (raw)
In-Reply-To: <20190608105619.593-26-wsa+renesas@sang-engineering.com>

The patch

   regulator: max8952: simplify getting the adapter of a client

has been applied to the regulator tree at

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

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

>From 6b96092a6bfa65566dda2f5a68a559a743b8d132 Mon Sep 17 00:00:00 2001
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
Date: Sat, 8 Jun 2019 12:56:04 +0200
Subject: [PATCH] regulator: max8952: simplify getting the adapter of a client

We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/regulator/max8952.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c
index cf2a2912cb1b..451237efb359 100644
--- a/drivers/regulator/max8952.c
+++ b/drivers/regulator/max8952.c
@@ -192,7 +192,7 @@ static struct max8952_platform_data *max8952_parse_dt(struct device *dev)
 static int max8952_pmic_probe(struct i2c_client *client,
 		const struct i2c_device_id *i2c_id)
 {
-	struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
+	struct i2c_adapter *adapter = client->adapter;
 	struct max8952_platform_data *pdata = dev_get_platdata(&client->dev);
 	struct regulator_config config = { };
 	struct max8952_data *max8952;
-- 
2.20.1

  reply	other threads:[~2019-06-10 17:34 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-08 10:55 [PATCH 00/34] treewide: simplify getting the adapter of an I2C client Wolfram Sang
2019-06-08 10:55 ` Wolfram Sang
2019-06-08 10:55 ` Wolfram Sang
2019-06-08 10:55 ` Wolfram Sang
2019-06-08 10:55 ` [PATCH 01/34] clk: clk-cdce706: simplify getting the adapter of a client Wolfram Sang
2019-06-13  9:45   ` Simon Horman
2019-06-25 22:55   ` Stephen Boyd
2019-06-25 22:55     ` Stephen Boyd
2019-06-08 10:55 ` [PATCH 02/34] gpu: drm: bridge: sii9234: " Wolfram Sang
2019-06-08 11:40   ` Laurent Pinchart
2019-06-08 11:40     ` Laurent Pinchart
2019-06-12 14:04     ` Andrzej Hajda
2019-06-08 10:55 ` [PATCH 03/34] iio: light: bh1780: " Wolfram Sang
2019-06-08 11:39   ` Jonathan Cameron
2019-06-08 10:55 ` [PATCH 04/34] leds: leds-pca955x: " Wolfram Sang
2019-06-09 11:03   ` Jacek Anaszewski
2019-06-09 11:05     ` Pavel Machek
2019-06-09 11:17       ` Jacek Anaszewski
2019-06-08 10:55 ` [PATCH 05/34] leds: leds-tca6507: " Wolfram Sang
2019-06-13  9:47   ` Simon Horman
2019-06-08 10:55 ` [PATCH 06/34] media: i2c: ak881x: " Wolfram Sang
2019-06-13  9:47   ` Simon Horman
2019-06-08 10:55 ` [PATCH 07/34] media: i2c: mt9m001: " Wolfram Sang
2019-06-13  9:47   ` Simon Horman
2019-06-08 10:55 ` [PATCH 08/34] media: i2c: mt9m111: " Wolfram Sang
2019-06-13  9:47   ` Simon Horman
2019-06-08 10:55 ` [PATCH 09/34] media: i2c: mt9p031: " Wolfram Sang
2019-06-08 11:42   ` Laurent Pinchart
2019-06-08 10:55 ` [PATCH 10/34] media: i2c: ov2640: " Wolfram Sang
2019-06-13  9:48   ` Simon Horman
2019-06-08 10:55 ` [PATCH 11/34] media: i2c: tw9910: " Wolfram Sang
2019-06-13  9:48   ` Simon Horman
2019-06-08 10:55 ` [PATCH 12/34] misc: fsa9480: " Wolfram Sang
2019-06-13  9:49   ` Simon Horman
2019-06-08 10:55 ` [PATCH 13/34] misc: isl29003: " Wolfram Sang
2019-06-13  9:49   ` Simon Horman
2019-06-08 10:55 ` [PATCH 14/34] misc: tsl2550: " Wolfram Sang
2019-06-13  9:49   ` Simon Horman
2019-06-08 10:55 ` [PATCH 15/34] mtd: maps: pismo: " Wolfram Sang
2019-06-08 10:55   ` Wolfram Sang
2019-06-13  9:50   ` Simon Horman
2019-06-13  9:50     ` Simon Horman
2019-06-08 10:55 ` [PATCH 16/34] power: supply: bq24190_charger: " Wolfram Sang
2019-06-13  9:50   ` Simon Horman
2019-06-08 10:55 ` [PATCH 17/34] power: supply: bq24257_charger: " Wolfram Sang
2019-06-13  9:50   ` Simon Horman
2019-06-08 10:55 ` [PATCH 18/34] power: supply: bq25890_charger: " Wolfram Sang
2019-06-13  9:50   ` Simon Horman
2019-06-08 10:55 ` [PATCH 19/34] power: supply: max14656_charger_detector: " Wolfram Sang
2019-06-13  9:51   ` Simon Horman
2019-06-08 10:55 ` [PATCH 20/34] power: supply: max17040_battery: " Wolfram Sang
2019-06-13  9:52   ` Simon Horman
2019-06-08 10:56 ` [PATCH 21/34] power: supply: max17042_battery: " Wolfram Sang
2019-06-13  9:52   ` Simon Horman
2019-06-08 10:56 ` [PATCH 22/34] power: supply: rt5033_battery: " Wolfram Sang
2019-06-13  9:52   ` Simon Horman
2019-06-08 10:56 ` [PATCH 23/34] power: supply: rt9455_charger: " Wolfram Sang
2019-06-13  9:52   ` Simon Horman
2019-06-08 10:56 ` [PATCH 24/34] power: supply: sbs-manager: " Wolfram Sang
2019-06-13  9:53   ` Simon Horman
2019-06-08 10:56 ` [PATCH 25/34] regulator: max8952: " Wolfram Sang
2019-06-10 17:34   ` Mark Brown [this message]
2019-06-10 17:34     ` Applied "regulator: max8952: simplify getting the adapter of a client" to the regulator tree Mark Brown
2019-06-08 10:56 ` [PATCH 26/34] rtc: fm3130: simplify getting the adapter of a client Wolfram Sang
2019-06-09 14:48   ` Alexandre Belloni
2019-06-08 10:56 ` [PATCH 27/34] rtc: m41t80: " Wolfram Sang
2019-06-09 14:48   ` Alexandre Belloni
2019-06-08 10:56 ` [PATCH 28/34] rtc: rv8803: " Wolfram Sang
2019-06-09 14:49   ` Alexandre Belloni
2019-06-08 10:56 ` [PATCH 29/34] rtc: rx8010: " Wolfram Sang
2019-06-09 14:49   ` Alexandre Belloni
2019-06-08 10:56 ` [PATCH 30/34] rtc: rx8025: " Wolfram Sang
2019-06-09 14:49   ` Alexandre Belloni
2019-06-08 10:56 ` [PATCH 31/34] staging: media: soc_camera: imx074: " Wolfram Sang
2019-06-08 10:56   ` Wolfram Sang
2019-06-08 10:56   ` Wolfram Sang
2019-06-13  9:53   ` Simon Horman
2019-06-13  9:53     ` Simon Horman
2019-06-13  9:53     ` Simon Horman
2019-06-08 10:56 ` [PATCH 32/34] staging: media: soc_camera: mt9t031: " Wolfram Sang
2019-06-13  9:54   ` Simon Horman
2019-06-13  9:54     ` Simon Horman
2019-06-08 10:56 ` [PATCH 33/34] staging: media: soc_camera: soc_mt9v022: " Wolfram Sang
2019-06-13  9:54   ` Simon Horman
2019-06-13  9:54     ` Simon Horman
2019-06-08 10:56 ` [PATCH 34/34] usb: typec: tcpm: fusb302: " Wolfram Sang
2019-06-08 12:59   ` Guenter Roeck
2019-06-13  9:54     ` Simon Horman
2019-06-09 16:37 ` [PATCH 00/34] treewide: simplify getting the adapter of an I2C client Peter Rosin
2019-06-09 16:37   ` Peter Rosin
2019-06-09 16:37   ` Peter Rosin
2019-06-09 16:37   ` Peter Rosin
2019-06-10  7:15   ` Wolfram Sang
2019-06-10  7:15     ` Wolfram Sang
2019-06-10  7:15     ` Wolfram Sang
2019-06-10  7:15     ` Wolfram Sang
2019-06-27 18:28 ` Sebastian Reichel
2019-06-27 18:28   ` Sebastian Reichel
2019-06-27 18:28   ` Sebastian Reichel

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=20190610173446.B100A440046@finisterre.sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wsa+renesas@sang-engineering.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.