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: Milo Kim <milo.kim@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
@@ -907,7 +907,8 @@ static struct lp872x_platform_data
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
for (i = 0; i < num_matches; i++) {
|
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;
|
pdata->regulator_data[i].init_data = match[i].init_data;
|
||||||
|
|
||||||
/* Operation mode configuration for buck/buck1/buck2 */
|
/* Operation mode configuration for buck/buck1/buck2 */
|
||||||
|
Reference in New Issue
Block a user