Skip to content

Commit

Permalink
regulator: act8865: Remove "static" from local variable
Browse files Browse the repository at this point in the history
There is no need to preserve its value between calls. I guess this
was a copy-paste slip-up.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Maarten ter Huurne authored and Mark Brown committed Feb 29, 2016
1 parent 92e963f commit abea1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/act8865-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static void act8865_power_off(void)
static int act8865_pmic_probe(struct i2c_client *client,
const struct i2c_device_id *i2c_id)
{
static const struct regulator_desc *regulators;
const struct regulator_desc *regulators;
struct act8865_platform_data pdata_of, *pdata;
struct device *dev = &client->dev;
struct device_node **of_node;
Expand Down

0 comments on commit abea1bb

Please sign in to comment.