All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] rtc: rx6110: simplify getting the adapter of a client
@ 2021-09-18 21:35 Wolfram Sang
  2021-09-18 21:35   ` Wolfram Sang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Wolfram Sang @ 2021-09-18 21:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: Wolfram Sang, Alessandro Zummo, Alexandre Belloni, linux-rtc

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

Please apply to your subsystem tree.

 drivers/rtc/rtc-rx6110.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c
index f4d425002f7f..758fd6e11a15 100644
--- a/drivers/rtc/rtc-rx6110.c
+++ b/drivers/rtc/rtc-rx6110.c
@@ -422,7 +422,7 @@ static struct regmap_config regmap_i2c_config = {
 static int rx6110_i2c_probe(struct i2c_client *client,
 			    const struct i2c_device_id *id)
 {
-	struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
+	struct i2c_adapter *adapter = client->adapter;
 	struct rx6110_data *rx6110;
 
 	if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA
-- 
2.30.2


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

* [PATCH 2/2] ASoC: codecs: max98390: simplify getting the adapter of a client
  2021-09-18 21:35 [PATCH 1/2] rtc: rx6110: simplify getting the adapter of a client Wolfram Sang
@ 2021-09-18 21:35   ` Wolfram Sang
  2021-09-20 15:30 ` (subset) [PATCH 1/2] rtc: rx6110: " Mark Brown
  2021-09-25 21:29 ` Alexandre Belloni
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2021-09-18 21:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: Wolfram Sang, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, alsa-devel

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

Please apply to your subsystem tree.

 sound/soc/codecs/max98390.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c
index b392567c2b3e..d1882cbc9381 100644
--- a/sound/soc/codecs/max98390.c
+++ b/sound/soc/codecs/max98390.c
@@ -1021,7 +1021,7 @@ static int max98390_i2c_probe(struct i2c_client *i2c,
 	int reg = 0;
 
 	struct max98390_priv *max98390 = NULL;
-	struct i2c_adapter *adapter = to_i2c_adapter(i2c->dev.parent);
+	struct i2c_adapter *adapter = i2c->adapter;
 
 	ret = i2c_check_functionality(adapter,
 		I2C_FUNC_SMBUS_BYTE
-- 
2.30.2


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

* [PATCH 2/2] ASoC: codecs: max98390: simplify getting the adapter of a client
@ 2021-09-18 21:35   ` Wolfram Sang
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2021-09-18 21:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: alsa-devel, Takashi Iwai, Liam Girdwood, Wolfram Sang, Mark Brown

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

Please apply to your subsystem tree.

 sound/soc/codecs/max98390.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c
index b392567c2b3e..d1882cbc9381 100644
--- a/sound/soc/codecs/max98390.c
+++ b/sound/soc/codecs/max98390.c
@@ -1021,7 +1021,7 @@ static int max98390_i2c_probe(struct i2c_client *i2c,
 	int reg = 0;
 
 	struct max98390_priv *max98390 = NULL;
-	struct i2c_adapter *adapter = to_i2c_adapter(i2c->dev.parent);
+	struct i2c_adapter *adapter = i2c->adapter;
 
 	ret = i2c_check_functionality(adapter,
 		I2C_FUNC_SMBUS_BYTE
-- 
2.30.2


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

* Re: (subset) [PATCH 1/2] rtc: rx6110: simplify getting the adapter of a client
  2021-09-18 21:35 [PATCH 1/2] rtc: rx6110: simplify getting the adapter of a client Wolfram Sang
  2021-09-18 21:35   ` Wolfram Sang
@ 2021-09-20 15:30 ` Mark Brown
  2021-09-25 21:29 ` Alexandre Belloni
  2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2021-09-20 15:30 UTC (permalink / raw)
  To: Wolfram Sang, linux-kernel
  Cc: Mark Brown, linux-rtc, Alessandro Zummo, Alexandre Belloni

On Sat, 18 Sep 2021 23:35:51 +0200, Wolfram Sang wrote:
> We have a dedicated pointer for that, so use it. Much easier to read and
> less computation involved.
> 
> 

Applied to

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

Thanks!

[2/2] ASoC: codecs: max98390: simplify getting the adapter of a client
      commit: 0f9a84b20f14f8a5039594493a1b6f9c49bf2995

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] 5+ messages in thread

* Re: (subset) [PATCH 1/2] rtc: rx6110: simplify getting the adapter of a client
  2021-09-18 21:35 [PATCH 1/2] rtc: rx6110: simplify getting the adapter of a client Wolfram Sang
  2021-09-18 21:35   ` Wolfram Sang
  2021-09-20 15:30 ` (subset) [PATCH 1/2] rtc: rx6110: " Mark Brown
@ 2021-09-25 21:29 ` Alexandre Belloni
  2 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2021-09-25 21:29 UTC (permalink / raw)
  To: Wolfram Sang, linux-kernel; +Cc: Alexandre Belloni, Alessandro Zummo, linux-rtc

On Sat, 18 Sep 2021 23:35:51 +0200, Wolfram Sang wrote:
> We have a dedicated pointer for that, so use it. Much easier to read and
> less computation involved.
> 
> 

Applied, thanks!

Note that the DKIM-Signature verification failed for that patch

[1/2] rtc: rx6110: simplify getting the adapter of a client
      commit: 38b17bc9c40e8f3138b02c624d9063b6781c8150

Best regards,
-- 
Alexandre Belloni <alexandre.belloni@bootlin.com>

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

end of thread, other threads:[~2021-09-25 21:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-18 21:35 [PATCH 1/2] rtc: rx6110: simplify getting the adapter of a client Wolfram Sang
2021-09-18 21:35 ` [PATCH 2/2] ASoC: codecs: max98390: " Wolfram Sang
2021-09-18 21:35   ` Wolfram Sang
2021-09-20 15:30 ` (subset) [PATCH 1/2] rtc: rx6110: " Mark Brown
2021-09-25 21:29 ` Alexandre Belloni

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.