Skip to content

Commit aad615c

Browse files
AxelLinbroonie
authored andcommitted
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. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 2720386 commit aad615c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/regulator/qcom_rpm-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ static int rpm_reg_probe(struct platform_device *pdev)
631631
struct regulator_init_data *initdata;
632632
const struct qcom_rpm_reg *template;
633633
const struct of_device_id *match;
634-
struct regulator_config config = { 0 };
634+
struct regulator_config config = { };
635635
struct regulator_dev *rdev;
636636
struct qcom_rpm_reg *vreg;
637637
const char *key;

0 commit comments

Comments
 (0)