diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-03-19 19:53:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-20 21:05:56 -0400 |
commit | 14aef2919d06bd132f2e6f74f5ccb3caa4c92d54 (patch) | |
tree | 203c09764b008f10d7ff0f3253d25eb6784cd839 /include/linux | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
regulator: stw481x: Remove unused fields from struct stw481x
The mutex lock is not used at all, remove it.
The *vmmc_regulator is not necessary, use a local variable in
stw481x_vmmc_regulator_probe() instead.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/stw481x.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/mfd/stw481x.h b/include/linux/mfd/stw481x.h index eda121556e5d..833074b766bd 100644 --- a/include/linux/mfd/stw481x.h +++ b/include/linux/mfd/stw481x.h | |||
@@ -41,15 +41,11 @@ | |||
41 | 41 | ||
42 | /** | 42 | /** |
43 | * struct stw481x - state holder for the Stw481x drivers | 43 | * struct stw481x - state holder for the Stw481x drivers |
44 | * @mutex: mutex to serialize I2C accesses | ||
45 | * @i2c_client: corresponding I2C client | 44 | * @i2c_client: corresponding I2C client |
46 | * @regulator: regulator device for regulator children | ||
47 | * @map: regmap handle to access device registers | 45 | * @map: regmap handle to access device registers |
48 | */ | 46 | */ |
49 | struct stw481x { | 47 | struct stw481x { |
50 | struct mutex lock; | ||
51 | struct i2c_client *client; | 48 | struct i2c_client *client; |
52 | struct regulator_dev *vmmc_regulator; | ||
53 | struct regmap *map; | 49 | struct regmap *map; |
54 | }; | 50 | }; |
55 | 51 | ||