06 Jan, 2012
1 commit
-
wait_for_completion_interruptible_timeout() may return negative value.
In this case, checking if (t > 0) will return true if t is unsigned.Signed-off-by: Axel Lin
Acked-by: Lars-Peter Clausen
Signed-off-by: Anton Vorontsov
04 Jan, 2012
1 commit
-
This patch converts the drivers in drivers/power/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.Cc: Mike Rapoport
Cc: Lars-Peter Clausen
Cc: Nithish Mahalingam
Cc: MyungJoo Ham
Cc: Haojian Zhuang
Cc: Balaji Rao
Cc: Mark Brown
Signed-off-by: Axel Lin
Acked-by: Clifton Barnes
Signed-off-by: Anton Vorontsov
23 Mar, 2011
2 commits
-
mfd_get_cell returns a const, so change the jz4740 clients to store
a const mfd cell. This silences type mismatch warnings.Signed-off-by: Andres Salomon
Acked-by: Anton Vorontsov
Signed-off-by: Samuel Ortiz -
No need to explicitly set the cell's platform_data/data_size.
Modify clients to use mfd_get_cell helper function instead of
accessing platform_data directly.Signed-off-by: Andres Salomon
Acked-by: Jean Delvare
Signed-off-by: Samuel Ortiz
22 Dec, 2010
1 commit
-
During test-build (with disabled 'depends on') I found that
jz4740-battery driver lacks linux/io.h, which makes build break
like this (on x86):CC [M] drivers/power/isp1704_charger.o
jz4740-battery.c: In function 'jz_battery_read_voltage':
jz4740-battery.c:84: error: implicit declaration of function 'readw’
jz4740-battery.c: In function 'jz_battery_probe':
jz4740-battery.c:284: error: implicit declaration of function 'ioremap_nocache’
jz4740-battery.c:285: warning: assignment makes pointer from integer without a cast
jz4740-battery.c:372: error: implicit declaration of function 'iounmap'
make[2]: *** [drivers/power/jz4740-battery.o] Error 1This patch fixes the issues, and thus makes it easier to build-test
the driver for me.Signed-off-by: Anton Vorontsov
18 Nov, 2010
2 commits
-
Currently platform_data is dereferenced without checking whether it
is actually set, which can lead to kernel crashes.
This patch adds a check which will abort the drivers probe function
gracefully if no platform_data is supplied.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Anton Vorontsov -
We can not handle more then one ADC request at a time to the battery.
The patch adds a mutex around the ADC read code to ensure this.Signed-off-by: Lars-Peter Clausen
Cc: stable@kernel.org
Signed-off-by: Anton Vorontsov
28 Sep, 2010
1 commit
-
Signed-off-by: Axel Lin
Acked-By: Lars-Peter Clausen
Signed-off-by: Anton Vorontsov
05 Aug, 2010
1 commit
-
Add support for the battery voltage measurement part of the JZ4740 ADC unit.
Signed-off-by: Lars-Peter Clausen
Acked-by: Anton Vorontsov
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1416/
Signed-off-by: Ralf Baechle