Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37a6f43d authored by Milo Kim's avatar Milo Kim Committed by Mark Brown
Browse files

regulator: lp872x: fix a build waring and coding styles



Fix a warning below.

  drivers/regulator/lp872x.c:910:33: warning: cast from pointer to integer of
                                     different size [-Wpointer-to-int-cast]

And checkpatch warnings are fixed.

  WARNING: space prohibited before semicolon

Signed-off-by: default avatarMilo Kim <milo.kim@ti.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent ad81f054
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -907,7 +907,8 @@ static struct lp872x_platform_data
		goto out;

	for (i = 0; i < num_matches; i++) {
		pdata->regulator_data[i].id = (int)match[i].driver_data;
		pdata->regulator_data[i].id =
				(enum lp872x_regulator_id)match[i].driver_data;
		pdata->regulator_data[i].init_data = match[i].init_data;

		/* Operation mode configuration for buck/buck1/buck2 */