08d6da291435f5de0f0fa283994a74f67d9ab23a |
|
24-Mar-2014 |
Axel Lin <axel.lin@ingics.com> |
regulator: aat2870: Use regulator_map_voltage_ascend The voltages in aat2870_ldo_voltages table are in ascendant order, so use regulator_map_voltage_ascend. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
|
b1a613d505c53ad4f4af4cf228841a1784a50011 |
|
03-Sep-2013 |
Axel Lin <axel.lin@ingics.com> |
regulator: aat2870: Convert to devm_regulator_register Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Jinyoung Park <jinyoungp@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org>
|
dff91d0b721bf8f036c1071a8f16a7effaa87514 |
|
30-Jul-2013 |
Jingoo Han <jg1.han@samsung.com> |
regulator: use dev_get_platdata() Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
|
8dc995f56ef7aedb41873fdeaa1971f3aa166ebd |
|
19-Nov-2012 |
Bill Pemberton <wfp5p@virginia.edu> |
regulator: remove use of __devexit CONFIG_HOTPLUG is going away as an option so __devexit is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
5eb9f2b96381ac3fa4a5910c37213c1cb62e9c65 |
|
19-Nov-2012 |
Bill Pemberton <wfp5p@virginia.edu> |
regulator: remove use of __devexit_p CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
e4c5288e410440abcc3e2e1887111b09a98304d5 |
|
09-Sep-2012 |
Mark Brown <broonie@opensource.wolfsonmicro.com> |
regulator: aat2870: Don't explicitly initialise the first field Doing so generates a warning as the first field is a pointer but we use 0 to initalize it. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
257ee3c6dde02c2c93334f802a8fc34825c75369 |
|
06-Jul-2012 |
Axel Lin <axel.lin@gmail.com> |
regulator: aat2870: Remove unused min_uV and max_uV from struct aat2870_regulator Both min_uV and max_uV are not used in the code, remove them. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
4506c6d5ea5dddab562fd06398fd9b8d1681bbd0 |
|
06-Jul-2012 |
Axel Lin <axel.lin@gmail.com> |
regulator: aat2870: Convert to regulator_list_voltage_table Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
6c9eeb0f5cac0d9fd05c138f1eec86a7f70630ce |
|
18-Apr-2012 |
Axel Lin <axel.lin@gmail.com> |
regulator: Remove unneeded include of linux/delay.h from regulator drivers All the drivers that need delay for the regulator voltage output voltage to stabilize after being enabled or after being set to a new value has been converted to implement enable_time and set_voltage_time_sel callbacks. Then regulator core will take care of the necessary delay. For the drivers that don't need the delay, don't need to include linux/delay.h. This patch removes the unneeded include of linux/delay.h in regulator drivers. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
c172708d38a401b2f3f841dfcd862b469fa0b670 |
|
04-Apr-2012 |
Mark Brown <broonie@opensource.wolfsonmicro.com> |
regulator: core: Use a struct to pass in regulator runtime configuration Rather than adding new arguments to regulator_register() every time we want to add a new bit of dynamic information at runtime change the function to take these via a struct. By doing this we avoid needing to do further changes like the recent addition of device tree support which required each regulator driver to be updated to take an additional parameter. The regulator_desc which should (mostly) be static data is still passed separately as most drivers are able to configure this statically at build time. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
ad9c5ffea8de1d989e205650bb46111b37498cf3 |
|
14-Mar-2012 |
Mark Brown <broonie@opensource.wolfsonmicro.com> |
regulator: aat2870: Add MODULE_ALIAS Not that it's ever likely to get used. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Jin Park <jinyoungp@nvidia.com>
|
b21bcd1ada026cd90243311e89dd8d999fe0a227 |
|
02-Mar-2012 |
Axel Lin <axel.lin@gmail.com> |
regulator: Add a pointer to aat2870_data in struct aat2870_regulator The reason we add *pdev in struct aat2870_regulator is to use it to get a pointer to struct aat2870_data. Save a pointer to struct aat2870_data instead of pdev in struct aat2870_regulator, this change makes the intention more clear. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Jin Park <jinyoungp@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
a5228d2e5ea02c90581d5957cb6c4c73c191298f |
|
28-Nov-2011 |
Axel Lin <axel.lin@gmail.com> |
regulator: aat2870: Remove a redundant bitwise and operation The implementation in aat2870_update() already did the bitwise and operation against mask parameter. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
d4d6373c1109b11c8118340be97ae31b8f94d66a |
|
28-Nov-2011 |
Axel Lin <axel.lin@gmail.com> |
regulator: aat2870: Fix the logic of checking if no id is matched in aat2870_get_regulator In current implementation, the pointer ri is not NULL if no id is matched. Fix it by checking i == ARRAY_SIZE(aat2870_regulators) if no id is matched. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@kernel.org
|
2c043bcbf287dc69848054d5c02c55c20f7a7bc5 |
|
18-Nov-2011 |
Rajendra Nayak <rnayak@ti.com> |
regulator: pass additional of_node to regulator_register() With device tree support for regulators, its needed that the regulator_dev->dev device has the right of_node attached. To be able to do this add an additional parameter to the regulator_register() api, wherein the dt-adapted driver can then pass this additional info onto the regulator core. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
65602c32ee9b5500e3cb617ccec2154ee2191898 |
|
17-Jul-2011 |
Paul Gortmaker <paul.gortmaker@windriver.com> |
regulator: Add module.h to drivers/regulator users as required Another group of drivers that are taking advantage of the implicit presence of module.h -- and will break when we pull the carpet out from under them during a cleanup. Fix 'em now. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
|
3a7d021b5e1de205c964c30d0ceda660501dc107 |
|
30-Jul-2011 |
Randy Dunlap <rdunlap@xenotime.net> |
regulator: aat2870-regulator.c needs module.h aat2870-regulator.c needs to include linux/module.h to fix multiple build errors. drivers/regulator/aat2870-regulator.c:145: error: 'THIS_MODULE' undeclared here (not in a function) drivers/regulator/aat2870-regulator.c:230: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' drivers/regulator/aat2870-regulator.c:231: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' drivers/regulator/aat2870-regulator.c:232: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
|
f7eb6c5e8e5e1e96c36763778e9a78b9da6fcd31 |
|
04-Jul-2011 |
Jin Park <jinyoungp@nvidia.com> |
regulator: aat2870: Add AAT2870 regulator driver Add regulator driver for AnalogicTech AAT2870. Signed-off-by: Jin Park <jinyoungp@nvidia.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
|