13 Aug, 2010
1 commit
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6: (22 commits)
regulator: Remove default DEBUG define from TPS6586x
regulator: tps6507x - add missing platform_set_drvdata in tps6507x_pmic_probe
regulator: tps6586x - add regulator_unregister() in tps6586x_regulator_remove()
mfd: max8998 - fix incorrect kfree(i2c) in i2c_driver probe callback handler
regulator: lp3971 - remove unnecessary ret value checking in lp3971_i2c_write()
regulator: max8660 - fix a memory leak in max8660_remove()
regulator: max1586 - fix a memory leak in max1586_pmic_remove()
regulator: Default GPIO controlled WM8994 regulators to disabled
regulator: lp3971 - remove unnecessary ret value checking in lp3971_i2c_write()
max8998: fix off-by-one value range checking
regulator: tps6586x: fix millivolt return values and SM2 table
regulator: tps6586x: add dependancy on MFD_TPS6585x
regulator: add TPS6586X regulator driver
regulator: MAX8998: set_voltage bugfix. ramp_up delay and min/max voltage
regulator: add support for regulators on the ab8500 MFD
ab8500-mfd: add regulator support to ab8500 mfd device
tps65023: Allow registering similar TPS65021
drivers: regulators: depend on MFD_MAX8998
drivers: regulator: add Maxim 8998 driver
ISL6271A voltage regulator support.
...
12 Aug, 2010
33 commits
-
The i2c_client received in probe() should not be kfree()'d.
Signed-off-by: Axel Lin
Acked-by: Mark Brown
Signed-off-by: Samuel Ortiz -
The i2c_client received in probe() should not be kfree()'d.
Signed-off-by: Axel Lin
Acked-by: Mark Brown
Signed-off-by: Samuel Ortiz -
The i2c_client received in probe() should not be kfree()'d.
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
Add mfd core driver for TPS6586x PMICs family.
The driver provides I/O access for the sub-device drivers and performs
regstration of the sub-devices based on the platform requirements.
In addition it implements GPIOlib interface for the chip GPIOs.TODO:
- add interrupt support
- add platform data for PWM, backlight leds and chargerSigned-off-by: Mike Rapoport
Signed-off-by: Mike Rapoport
Signed-off-by: Samuel Ortiz -
This patch is originally done by Carlos Eduardo Aguiar. Original fix is
commit 3305829b2816072b9c8ed01374b205ae4de74027 in
git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.gitAuthor modified the fix for mainline version of menelaus.
Signed-off-by: Jarkko Nikula
Cc: Carlos Eduardo Aguiar
Signed-off-by: Samuel Ortiz -
We are modifying register value instead of return value.
This fix is originally done by Carlos Eduardo Aguiar. Original fix is
commit bb4e91722e29efe31587d2cc664b6def645aecd9 in
git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.gitAuthor modified the fix for mainline version of menelaus.
Signed-off-by: Jarkko Nikula
Cc: Carlos Eduardo Aguiar
Signed-off-by: Samuel Ortiz -
Signed-off-by: David S. Miller
Signed-off-by: Samuel Ortiz -
This patch includes below fixes:
1. fix wm8350_create_cache error path
make sure wm8350->reg_cache is freed in error path.
2. fix wm8350_device_init error path
no need to kfree(wm8350->reg_cache) in the case of goto out.Signed-off-by: Axel Lin
Acked-by: Mark Brown
Signed-off-by: Samuel Ortiz -
wm8994_device_init() will return 0 in the case of kzalloc fail
in current implementation.
This patch fixes the return value.Signed-off-by: Axel Lin
Acked-by: Mark Brown
Signed-off-by: Samuel Ortiz -
In the case of goto err2, what we want is to call
platform_device_del() instead of platform_device_unregister().
Otherwise, we call platform_device_put() twice.Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
This patch includes below fixes:
1. add a missing iounmap in tc6387xb_probe() error path
2. fix resource reclaim in tc6387xb_remove()Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
This patch corrects the error handling path.
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
This adds all remaining definitions that are used by the core driver
to the .c file.Signed-off-by: Uwe Kleine-König
Signed-off-by: Samuel Ortiz -
This is needed for the mc13783-adc driver to decide if a touch screen is
connected. If so some channels are not available as generic hwmon inputs.Signed-off-by: Uwe Kleine-König
Signed-off-by: Samuel Ortiz -
If kmalloc() fails exit with -ENOMEM.
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
If mfd_add_devices() fail, we need to relese allocated resources.
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
The WM8321 is a PMIC for low power, high performance applications. From a
software point of view the device is identical to the WM8320, all the
differences between the two devices are visible only in hardware.Signed-off-by: Mark Brown
Signed-off-by: Samuel Ortiz -
Some STMPE devices support entering sleep mode automatically on a
specified timeout of inactivity on the I2C bus with the host system.Acked-by: Linus Walleij
Acked-by: Rabin Vincent
Signed-off-by: Sundar R Iyer
Signed-off-by: Samuel Ortiz -
TWL6030 supports PWM (Pulse Width Modulator) which is used
to control charging LED. PWM allows for controlling brightness.
This patch implements the APIs required by leds-pwm driver.Signed-off-by: Hemanth V
Signed-off-by: Samuel Ortiz -
This patch adds a MFD driver for the JZ4740 ADC unit. The driver is used to
demultiplex IRQs and synchronize access to shared registers between the
battery, hwmon and (future) touchscreen driver.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Samuel Ortiz -
Add support for the STMPE family of I/O Expanders from
STMicroelectronics. These devices include upto 24 gpios and a varying
selection of blocks, including PWM, keypad, and touchscreen controllers.
This patch adds the MFD core.[l.fu@pengutronix.de: fix stmpe811 enable hook]
[l.fu@pengutronix.de: add touchscreen platform data]
Acked-by: Luotao Fu
Acked-by: Linus Walleij
Signed-off-by: Rabin Vincent
Signed-off-by: Samuel Ortiz -
This patch includes below fixes to properly free clk32k clock source:
1. remove a redundant clk_put in t7l66xb_probe error path
2. add missing clk_disable(t7l66xb->clk32k) and clk_put(t7l66xb->clk32k)
to properly free the clock source.Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
For people to be able to intellingibly decide if they want to enable MFD
drivers or not, we have to give them a much better description of what they
are. -
These are now exported via an ops table rather than referenced
directly and so should be staticised.Signed-off-by: Mark Brown
Acked-by: Linus Walleij
Signed-off-by: Samuel Ortiz -
Error handling code following a kmalloc should free the allocated data.
The semantic match that finds the problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)//
@r exists@
local idexpression x;
statement S;
expression E;
identifier f,f1,l;
position p1,p2;
expression *ptr != NULL;
@@x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
...
if (x == NULL) S
}
(
x->f1 = E
|
(x->f1 == NULL || ...)
|
f(...,x->f1,...)
)
...>
(
return \(0\|\|ptr\);
|
return@p2 ...;
)@script:python@
p1 << r.p1;
p2 << r.p2;
@@print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
//Signed-off-by: Julia Lawall
Signed-off-by: Samuel Ortiz -
platform_device_add_resources may fail, thus add error checking for it.
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz -
Use !x rather than IS_ERR(x) to test the result of kzalloc.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)//
@@
expression x,E;
@@x = \(kmalloc\|kzalloc\|kcalloc\)(...)
... when != x = E
- IS_ERR(x)
+ !x
//Signed-off-by: Julia Lawall
Signed-off-by: Samuel Ortiz -
The registers on the AB8500 are only 8 bits wide, so the content
of the remaining bits is undefined. Let's mask off the undefined
stuff when returning a register in an SPI read.Acked-by: Rabin Vincent
Signed-off-by: Linus Walleij
Signed-off-by: Samuel Ortiz -
The original code had a compile warning:
drivers/mfd/88pm860x-core.c:431: warning: ‘ret’ may be used
uninitialized in this function
It seems like the warning is valid if either pdata or pdata->touch is
NULL.This patch checks pdata and pdata->touch at the beginning of the
function. That means everything can be pulled in one indent level.
Now all the statements fit within the 80 character limit.Also at that point the "use_gpadc" variable isn't needed and removing
it simplifies the logic.Signed-off-by: Dan Carpenter
Acked-by: Haojian Zhuang
Signed-off-by: Samuel Ortiz -
In current implementation, there is a memory leak if ab3100_otp_read fail.
And in the case of ab3100_otp_init_debugfs fail, it does not properly remove
sysfs entries.
This patch properly handle above failure cases.Signed-off-by: Axel Lin
Acked-by: Linus Walleij
Signed-off-by: Samuel Ortiz -
Fix typo error in LED resource of 88pm860x.
Signed-off-by: Haojian Zhuang
Signed-off-by: Samuel Ortiz -
Enable onkey feature in max8925 driver.
Signed-off-by: Haojian Zhuang
Signed-off-by: Samuel Ortiz
11 Aug, 2010
3 commits
-
The i2c_client received in probe() should not be kfree()'d.
Signed-off-by: Axel Lin
Signed-off-by: Samuel Ortiz
Signed-off-by: Liam Girdwood -
Acked-by: Linus Walleij
Acked-By: Mattias Wallin
Acked-By: Bengt JONSSON
Signed-off-by: Sundar R Iyer
Acked-by: Mark Brown
Acked-by: Samuel Ortiz
Signed-off-by: Liam Girdwood -
Acked-by: Mark Brown
This patch adds voltage regulator driver for Maxim 8998 chip. This chip
is used on Samsung Aquila and GONI boards and provides following
functionalities:
- 4 BUCK voltage converters, 17 LDO power regulators and 5 other power
controllers
- battery chargerThis patch adds basic driver for voltage regulators and MAX 8998 MFD core.
Signed-off-by: Kyungmin Park
Signed-off-by: Marek Szyprowski
Acked-by: Samuel Ortiz
Acked-by: Mark Brown
Signed-off-by: Liam Girdwood
03 Jun, 2010
1 commit
-
I2C drivers can use the clientdata-pointer to point to private data. As I2C
devices are not really unregistered, but merely detached from their driver, it
used to be the drivers obligation to clear this pointer during remove() or a
failed probe(). As a couple of drivers forgot to do this, it was agreed that it
was cleaner if the i2c-core does this clearance when appropriate, as there is
no guarantee for the lifetime of the clientdata-pointer after remove() anyhow.
This feature was added to the core with commit
e4a7b9b04de15f6b63da5ccdd373ffa3057a3681 to fix the faulty drivers.As there is no need anymore to clear the clientdata-pointer, remove all current
occurrences in the drivers to simplify the code and prevent confusion.Signed-off-by: Wolfram Sang
Acked-by: Mark Brown
Acked-by: Greg Kroah-Hartman
Acked-by: Richard Purdie
Acked-by: Dmitry Torokhov
Signed-off-by: Jean Delvare
28 May, 2010
2 commits
-
Fix the names of twl5031 specific sih modules to match
the documentation.Signed-off-by: Ilkka Koskinen
Signed-off-by: Samuel Ortiz -
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.Signed-off-by: Tobias Klauser
Signed-off-by: Samuel Ortiz