summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/stw481x.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mfd: stw481x: Use devm_mfd_add_devices() for mfd_device registrationLaxman Dewangan2016-04-191-9/+2
| | | | | | | | | | Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
* mfd: stw481x: Export I2C module alias informationJavier Martinez Canillas2015-08-111-0/+1
| | | | | | | | | | | The I2C core always reports the MODALIAS uevent as "i2c:<client name" regardless if the driver was matched using the I2C id_table or the of_match_table. So the driver needs to export the I2C table and this be built into the module or udev won't have the necessary information to auto load the correct module when the device is added. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
* mfd: stw481x: Check the return value of devm_regmap_init_i2cSachin Kamat2014-03-191-0/+6
| | | | | | | devm_regmap_init_i2c can fail. Check for it. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
* mfd: stw481x: Staticize stw481x_regmap_configSachin Kamat2014-03-191-1/+1
| | | | | | | | stw481x_regmap_config is local to this file. Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
* mfd: Add STw481x driverLinus Walleij2013-10-231-0/+250
This adds a driver for the STw481x PMICs found in the Nomadik family of platforms. This one uses pure device tree probing. Print some of the OTP registers on boot and register a regulator MFD child. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>