summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-03-20 07:53:06 +0800
committerMark Brown <broonie@kernel.org>2015-03-21 01:05:56 +0000
commit14aef2919d06bd132f2e6f74f5ccb3caa4c92d54 (patch)
tree203c09764b008f10d7ff0f3253d25eb6784cd839 /include/linux/mfd
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
downloadop-kernel-dev-14aef2919d06bd132f2e6f74f5ccb3caa4c92d54.zip
op-kernel-dev-14aef2919d06bd132f2e6f74f5ccb3caa4c92d54.tar.gz
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/mfd')
-rw-r--r--include/linux/mfd/stw481x.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/mfd/stw481x.h b/include/linux/mfd/stw481x.h
index eda1215..833074b 100644
--- a/include/linux/mfd/stw481x.h
+++ b/include/linux/mfd/stw481x.h
@@ -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;
};
OpenPOWER on IntegriCloud