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>
This commit is contained in:
@@ -41,15 +41,11 @@
|
||||
|
||||
/**
|
||||
* struct stw481x - state holder for the Stw481x drivers
|
||||
* @mutex: mutex to serialize I2C accesses
|
||||
* @i2c_client: corresponding I2C client
|
||||
* @regulator: regulator device for regulator children
|
||||
* @map: regmap handle to access device registers
|
||||
*/
|
||||
struct stw481x {
|
||||
struct mutex lock;
|
||||
struct i2c_client *client;
|
||||
struct regulator_dev *vmmc_regulator;
|
||||
struct regmap *map;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user