Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

regulator: Small cleanup in of_get_regulation_constraints()

Just pass "init_data" instead the address of it.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aQYKoiivuec3m0Jj@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dan Carpenter and committed by
Mark Brown
252abf2d 28039efa

+3 -3
+3 -3
drivers/regulator/of_regulator.c
··· 79 79 80 80 static int of_get_regulation_constraints(struct device *dev, 81 81 struct device_node *np, 82 - struct regulator_init_data **init_data, 82 + struct regulator_init_data *init_data, 83 83 const struct regulator_desc *desc) 84 84 { 85 - struct regulation_constraints *constraints = &(*init_data)->constraints; 85 + struct regulation_constraints *constraints = &init_data->constraints; 86 86 struct regulator_state *suspend_state; 87 87 struct device_node *suspend_np; 88 88 unsigned int mode; ··· 359 359 if (!init_data) 360 360 return NULL; /* Out of memory? */ 361 361 362 - if (of_get_regulation_constraints(dev, node, &init_data, desc)) 362 + if (of_get_regulation_constraints(dev, node, init_data, desc)) 363 363 return NULL; 364 364 365 365 return init_data;