Skip to contentSkip to conversation

regulator: qcom_rpm: Don't explicitly initialise the first field of config

PATCH Applied Axel Lin 2 participants 2 messages Sep 24, 2014 – Sep 26, 2014

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: qcom_rpm: Don't explicitly initialise the first field of config

Doing so generates a warning as the first field is a pointer but we use 0 to initialize it.

---
 drivers/regulator/qcom_rpm-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/qcom_rpm-regulator.c +1 -1
index 8f28309..8d5969a 100644
@@ -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;
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Axel Lin

Doing so generates a warning as the first field is a pointer but we use 0 to initialize it.

Applied, thanks.