From: Mark Brown <broonie@kernel.org> To: Dong Aisheng <aisheng.dong@nxp.com> Cc: Mark Brown <broonie@kernel.org>, linux-kernel@vger.kernel.org, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, aisheng.dong@nxp.com, kernel@pengutronix.de, lgirdwood@gmail.com, broonie@kernel.org, yibin.gong@nxp.com, linux-kernel@vger.kernel.org Subject: Applied "regulator: anatop: use of_property_read_string to read the name" to the regulator tree Date: Tue, 11 Apr 2017 21:42:19 +0100 [thread overview] Message-ID: <E1cy2cF-00086i-10@debutante> (raw) In-Reply-To: <1491962327-12477-3-git-send-email-aisheng.dong@nxp.com> The patch regulator: anatop: use of_property_read_string to read the name has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 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 5062e04711dbc4f67b24ffd926cc67060267792d Mon Sep 17 00:00:00 2001 From: Dong Aisheng <aisheng.dong@nxp.com> Date: Wed, 12 Apr 2017 09:58:44 +0800 Subject: [PATCH] regulator: anatop: use of_property_read_string to read the name sreg->name is a string, so use a more proper api to read back the string instead of of_get_property. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org> --- drivers/regulator/anatop-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index aa93f462ac6e..58141cbdf257 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c @@ -193,7 +193,8 @@ static int anatop_regulator_probe(struct platform_device *pdev) sreg = devm_kzalloc(dev, sizeof(*sreg), GFP_KERNEL); if (!sreg) return -ENOMEM; - sreg->name = of_get_property(np, "regulator-name", NULL); + + of_property_read_string(np, "regulator-name", &sreg->name); rdesc = &sreg->rdesc; rdesc->name = sreg->name; rdesc->type = REGULATOR_VOLTAGE; -- 2.11.0
WARNING: multiple messages have this Message-ID (diff)
From: broonie@kernel.org (Mark Brown) To: linux-arm-kernel@lists.infradead.org Subject: Applied "regulator: anatop: use of_property_read_string to read the name" to the regulator tree Date: Tue, 11 Apr 2017 21:42:19 +0100 [thread overview] Message-ID: <E1cy2cF-00086i-10@debutante> (raw) In-Reply-To: <1491962327-12477-3-git-send-email-aisheng.dong@nxp.com> The patch regulator: anatop: use of_property_read_string to read the name has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 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 5062e04711dbc4f67b24ffd926cc67060267792d Mon Sep 17 00:00:00 2001 From: Dong Aisheng <aisheng.dong@nxp.com> Date: Wed, 12 Apr 2017 09:58:44 +0800 Subject: [PATCH] regulator: anatop: use of_property_read_string to read the name sreg->name is a string, so use a more proper api to read back the string instead of of_get_property. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org> --- drivers/regulator/anatop-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index aa93f462ac6e..58141cbdf257 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c @@ -193,7 +193,8 @@ static int anatop_regulator_probe(struct platform_device *pdev) sreg = devm_kzalloc(dev, sizeof(*sreg), GFP_KERNEL); if (!sreg) return -ENOMEM; - sreg->name = of_get_property(np, "regulator-name", NULL); + + of_property_read_string(np, "regulator-name", &sreg->name); rdesc = &sreg->rdesc; rdesc->name = sreg->name; rdesc->type = REGULATOR_VOLTAGE; -- 2.11.0
next prev parent reply other threads:[~2017-04-11 20:42 UTC|newest] Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-04-12 1:58 [PATCH 1/6] regulator: anatop: check return value of of_get_regulator_init_data Dong Aisheng 2017-04-12 1:58 ` Dong Aisheng 2017-04-11 20:42 ` Applied "regulator: anatop: check return value of of_get_regulator_init_data" to the regulator tree Mark Brown 2017-04-11 20:42 ` Mark Brown 2017-04-12 1:58 ` [PATCH 2/6] regulator: anatop: only set supply regulator when it actually exists Dong Aisheng 2017-04-12 1:58 ` Dong Aisheng 2017-04-11 20:31 ` Mark Brown 2017-04-11 20:31 ` Mark Brown 2017-04-13 7:11 ` Dong Aisheng 2017-04-13 7:11 ` Dong Aisheng 2017-04-12 15:53 ` Mark Brown 2017-04-12 15:53 ` Mark Brown 2017-04-12 16:00 ` Dong Aisheng 2017-04-12 16:00 ` Dong Aisheng 2017-04-12 16:06 ` Mark Brown 2017-04-12 16:06 ` Mark Brown 2017-04-12 1:58 ` [PATCH 3/6] regulator: anatop: use of_property_read_string to read the name Dong Aisheng 2017-04-12 1:58 ` Dong Aisheng 2017-04-11 20:42 ` Mark Brown [this message] 2017-04-11 20:42 ` Applied "regulator: anatop: use of_property_read_string to read the name" to the regulator tree Mark Brown 2017-04-12 1:58 ` [PATCH 4/6] regulator: anatop: remove unneeded name field of struct anatop_regulator Dong Aisheng 2017-04-12 1:58 ` Dong Aisheng 2017-04-11 20:42 ` Applied "regulator: anatop: remove unneeded name field of struct anatop_regulator" to the regulator tree Mark Brown 2017-04-11 20:42 ` Mark Brown 2017-04-12 1:58 ` [PATCH 5/6] regulator: anatop-regulator: make regulator-name using optionally Dong Aisheng 2017-04-12 1:58 ` Dong Aisheng 2017-04-11 20:38 ` Mark Brown 2017-04-11 20:38 ` Mark Brown 2017-04-13 7:31 ` Dong Aisheng 2017-04-13 7:31 ` Dong Aisheng 2017-04-12 1:58 ` [PATCH 6/6] regulator: anatop: set default voltage selector for pcie Dong Aisheng 2017-04-12 1:58 ` Dong Aisheng 2017-04-11 20:40 ` Mark Brown 2017-04-11 20:40 ` Mark Brown 2017-04-13 7:41 ` Dong Aisheng 2017-04-13 7:41 ` Dong Aisheng 2017-04-12 15:49 ` Mark Brown 2017-04-12 15:49 ` Mark Brown 2017-04-12 16:11 ` Dong Aisheng 2017-04-12 16:11 ` Dong Aisheng 2017-04-12 16:11 ` Lucas Stach 2017-04-12 16:11 ` Lucas Stach 2017-04-12 16:16 ` Mark Brown 2017-04-12 16:16 ` Mark Brown
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=E1cy2cF-00086i-10@debutante \ --to=broonie@kernel.org \ --cc=aisheng.dong@nxp.com \ --cc=kernel@pengutronix.de \ --cc=lgirdwood@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=shawnguo@kernel.org \ --cc=yibin.gong@nxp.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: linkBe 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.