* [PATCH] regulator: qcom_rpm: Don't explicitly initialise the first field of config
@ 2014-09-24 9:45 Axel Lin
2014-09-26 8:28 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-09-24 9:45 UTC (permalink / raw)
To: Mark Brown; +Cc: Bjorn Andersson, Liam Girdwood, linux-kernel
Doing so generates a warning as the first field is a pointer but we use
0 to initialize it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/qcom_rpm-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c
index 8f28309..8d5969a 100644
--- a/drivers/regulator/qcom_rpm-regulator.c
+++ b/drivers/regulator/qcom_rpm-regulator.c
@@ -631,7 +631,7 @@ static int rpm_reg_probe(struct platform_device *pdev)
struct regulator_init_data *initdata;
const struct qcom_rpm_reg *template;
const struct of_device_id *match;
- struct regulator_config config = { 0 };
+ struct regulator_config config = { };
struct regulator_dev *rdev;
struct qcom_rpm_reg *vreg;
const char *key;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: qcom_rpm: Don't explicitly initialise the first field of config
2014-09-24 9:45 [PATCH] regulator: qcom_rpm: Don't explicitly initialise the first field of config Axel Lin
@ 2014-09-26 8:28 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-09-26 8:28 UTC (permalink / raw)
To: Axel Lin; +Cc: Bjorn Andersson, Liam Girdwood, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 172 bytes --]
On Wed, Sep 24, 2014 at 05:45:25PM +0800, Axel Lin wrote:
> Doing so generates a warning as the first field is a pointer but we use
> 0 to initialize it.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-26 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-24 9:45 [PATCH] regulator: qcom_rpm: Don't explicitly initialise the first field of config Axel Lin
2014-09-26 8:28 ` Mark Brown
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.