15 Jul, 2015
1 commit
-
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Mark Brown
27 Nov, 2014
1 commit
-
The of_get_regulator_init_data() function is used to extract the regulator
init_data but information on how to extract certain data is defined in the
static regulator descriptor (e.g: how to map the hardware operating modes).Add a const struct regulator_desc * parameter to the function signature so
the parsing logic could use the information in the struct regulator_desc.of_get_regulator_init_data() relies on of_get_regulation_constraints() to
actually extract the init_data so it has to pass the struct regulator_desc
but that is modified on a later patch.Signed-off-by: Javier Martinez Canillas
Signed-off-by: Mark Brown
20 Feb, 2014
1 commit
-
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat
Signed-off-by: Mark Brown
06 Jan, 2014
1 commit
-
Fix up the following pointer-integer size mismatch warning in tps62360_probe():
drivers/regulator/tps62360-regulator.c: In function 'tps62360_probe':
drivers/regulator/tps62360-regulator.c:363:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
chip_id = (int)match->data;
^Signed-off-by: David Howells
Signed-off-by: Mark Brown
17 Sep, 2013
1 commit
-
devm_* simplifies the code.
Signed-off-by: Sachin Kamat
Signed-off-by: Mark Brown
30 Jul, 2013
1 commit
-
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.Signed-off-by: Jingoo Han
Signed-off-by: Mark Brown
18 Jun, 2013
1 commit
-
Commit "i2c: core: make it possible to match a pure device tree driver"
changed semantics of the i2c probing for device tree devices.
Device tree probed devices now get a NULL i2c_device_id pointer.
This caused kernel panics due to NULL dereference.Tested-by: Stephen Warren
Reviewed-by: Stephen Warren
Signed-off-by: Tuomas Tynkkynen
Signed-off-by: Mark Brown
23 Apr, 2013
1 commit
-
According to the datasheet[1]
Register 0x06h Description: RmpCtrl (REGISTER ADDRESS: 0x06h Read/Write)
BIT[5..7]:
RMP[2:0] Output voltage ramp timing
D7-D5 Slope
000 32mV/us
001 16mV/us
010 8mV/us
...
110 0.5mV/us
111 0.25mV/usThus to get correct ramp_ctrl value, we need to right-shift 5 bits.
[1] http://www.ti.com/lit/ds/symlink/tps62360.pdf
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown
20 Nov, 2012
3 commits
-
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown -
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown -
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown
16 Jul, 2012
1 commit
-
Use devm_ version of gpio APIs gpio_request_one() for
requesting gpios.
This avoid extra code for freeing gpios.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown
03 Jul, 2012
1 commit
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
23 Jun, 2012
1 commit
-
The chip_id is not used.
The voltage_base is not necessary, set base voltage to tps->desc.min_uV instead.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
18 Jun, 2012
1 commit
-
For linear mappings, we can use below equation to get the voltage difference
between new_selector and old_selector:abs(new_selector - old_selector) * rdev->desc->uV_step
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
21 May, 2012
1 commit
-
Initialize config.of_node for regulator before registering.
This is needed for DT based regulator support.
Regulator stores this of_node value in rdev->dev.of_node
and used for lookup when client ask for regulator_get().Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown
15 May, 2012
2 commits
-
Change the mechanism of enabling the force PWM mode through
regulator set mode. This can be dynamically configured now.
In the REGULATOR_MODE_FAST the force PWM is enabled and in
REGULATOR_MODE_NORMAL the force PWM is disabled.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Fix below build error:
CC [M] drivers/regulator/tps62360-regulator.o
drivers/regulator/tps62360-regulator.c:351:1: error: expected ',' or ';' before 'extern'
make[2]: *** [drivers/regulator/tps62360-regulator.o] Error 1
make[1]: *** [drivers/regulator] Error 2
make: *** [drivers] Error 2Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown
14 May, 2012
2 commits
-
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown
13 May, 2012
2 commits
-
Add dt support for the pmu device tps62360 and
Add binding documentation with example.
With this patch driver will support both device-tree and
non-device tree registration.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Convert platform data member regulator_init_data to pointer type.
This will avoid the copy of entire regualator init data into
platform data member when adding dt support and it can be achieve
by simple assignment:
pdata->init_data = of_get_regulator_init_data(dev, dev->of_node);Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown
08 May, 2012
1 commit
-
Fix multiple stylistic issue like:
- The print message should be not break into multiple line.
- line gap after variable declaration and statement.
- checkpatch error.
- some typo.Some enhancement on error message printing to print error value
also along with proper text.Avoid voltage_base conversion to microvolts every time.
Put init functions in init section.
Using efficient function inplace of calling multiple function
to reduce the code size.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown
07 May, 2012
2 commits
-
Settling time is require when there is voltage output change.
Implement set_voltage_time_sel() callback which returns delay time
for voltage change to settle down to new value.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Enable cache of device register using regmap cache RBTREE.
Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown
23 Apr, 2012
1 commit
-
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
Signed-off-by: Mark Brown
10 Apr, 2012
1 commit
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
09 Apr, 2012
1 commit
-
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
03 Apr, 2012
1 commit
-
According to the datasheet[1], tps62360 is register compatible with tps62362.
tps62361B is register compatible with tps62363.
Thus this patch adds support for tps62362 and tps62363.[1] http://www.ti.com/litv/pdf/slvsau9b
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown
01 Apr, 2012
1 commit
-
The client field of struct tps62360_chip is not used after converting to regmap.
The name field of struct tps62360_chip is not used in this driver.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
12 Mar, 2012
1 commit
-
The variable 'selector' is a 'unsigned int', so it can never be less than zero.
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown
20 Jan, 2012
1 commit
-
The regulator module consists of 1 DCDC. The output voltage
is configurable and is meant for supply power to the core
voltage of Soc.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown