Dmitry Eremin-Solenikov
f1300e7f62
power: collie_battery: support generating wakeup event
...
Teach collie_battery driver to communicate to the kernel that it can
generate wakeup events. Handle enabling/disabling wakeup on battery full
event in suspend/resume callbacks.
Signed-off-by: Dmitry Eremin-Solenikov <[email protected] >
Signed-off-by: Sebastian Reichel <[email protected] >
2015-01-20 13:58:32 +01:00
Andrea Adami
1ba6411497
power supply: collie_battery: Convert to use dev_pm_ops
...
This commit fixes the following warnings:
linux/drivers/power/collie_battery.c:372:2: warning: initialization from
incompatible pointer type [enabled by default]
linux/drivers/power/collie_battery.c:372:2: warning: (near initialization
for 'collie_bat_driver.suspend') [enabled by default]
Referencess:
MFD: ucb1x00-core: convert to use dev_pm_ops
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/include/linux/mfd?id=5a09b7120a965a7d7e8494d0ed509135bbce0118
MFD: mcp-core: remove legacy driver suspend/resume methods
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/include/linux/mfd?id=cf4abfcc0df2985ff6061f74e63b8353f2a1d0bc
Signed-off-by: Andrea Adami <[email protected] >
Signed-off-by: Anton Vorontsov <[email protected] >
2013-08-09 13:41:06 -07:00
Bill Pemberton
415ec69fb1
power: remove use of __devexit
...
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.
Signed-off-by: Bill Pemberton <[email protected] >
Cc: Anton Vorontsov <[email protected] >
Cc: David Woodhouse <[email protected] >
Acked-by: Mark Brown <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2012-11-28 11:43:22 -08:00
Bill Pemberton
c8afa6406e
power: remove use of __devinit
...
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <[email protected] >
Cc: Anton Vorontsov <[email protected] >
Cc: David Woodhouse <[email protected] >
Acked-by: Mark Brown <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2012-11-28 11:43:22 -08:00
Bill Pemberton
28ea73f4c6
power: 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 <[email protected] >
Cc: Anton Vorontsov <[email protected] >
Cc: David Woodhouse <[email protected] >
Acked-by: Mark Brown <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2012-11-28 11:43:22 -08:00
Tejun Heo
43829731dd
workqueue: deprecate flush[_delayed]_work_sync()
...
flush[_delayed]_work_sync() are now spurious. Mark them deprecated
and convert all users to flush[_delayed]_work().
If you're cc'd and wondering what's going on: Now all workqueues are
non-reentrant and the regular flushes guarantee that the work item is
not pending or running on any CPU on return, so there's no reason to
use the sync flushes at all and they're going away.
This patch doesn't make any functional difference.
Signed-off-by: Tejun Heo <[email protected] >
Cc: Russell King <[email protected] >
Cc: Paul Mundt <[email protected] >
Cc: Ian Campbell <[email protected] >
Cc: Jens Axboe <[email protected] >
Cc: Mattia Dongili <[email protected] >
Cc: Kent Yoder <[email protected] >
Cc: David Airlie <[email protected] >
Cc: Jiri Kosina <[email protected] >
Cc: Karsten Keil <[email protected] >
Cc: Bryan Wu <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Alasdair Kergon <[email protected] >
Cc: Mauro Carvalho Chehab <[email protected] >
Cc: Florian Tobias Schandinat <[email protected] >
Cc: David Woodhouse <[email protected] >
Cc: "David S. Miller" <[email protected] >
Cc: [email protected]
Cc: Anton Vorontsov <[email protected] >
Cc: Sangbeom Kim <[email protected] >
Cc: "James E.J. Bottomley" <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Eric Van Hensbergen <[email protected] >
Cc: Takashi Iwai <[email protected] >
Cc: Steven Whitehouse <[email protected] >
Cc: Petr Vandrovec <[email protected] >
Cc: Mark Fasheh <[email protected] >
Cc: Christoph Hellwig <[email protected] >
Cc: Avi Kivity <[email protected] >
2012-08-20 14:51:24 -07:00
Anton Vorontsov
913272b386
Merge git://git.infradead.org/users/cbou/battery-urgent
2012-01-10 20:55:11 +04:00
Jochen Friedrich
629bcb4b72
collie_battery: Get rid of irq_to_gpio usage
...
Since 9d08d5d77a , irq_to_gpio() is no
longer available but still in use by collie_battery.c. As it's just
for a debug message, just get rid of this call.
Signed-off-by: Jochen Friedrich <[email protected] >
Signed-off-by: Anton Vorontsov <[email protected] >
2011-11-25 02:20:57 +04:00
Axel Lin
389cd203d6
collie_battery: Convert to gpio_request_array() / gpio_free_array()
...
As suggested by Igor Grinberg, this change make the implementation looks
simpler.
Signed-off-by: Axel Lin <[email protected] >
Signed-off-by: Anton Vorontsov <[email protected] >
2011-11-24 23:30:22 +04:00
Tejun Heo
bc51e7ff52
power_supply: Don't use flush_scheduled_work()
...
flush_scheduled_work() is deprecated and scheduled to be removed.
In battery drivers, the work can be canceled on probe failure and
removal and should be flushed on suspend. Replace
flush_scheduled_work() usages with direct cancels and flushes.
Signed-off-by: Tejun Heo <[email protected] >
Signed-off-by: Anton Vorontsov <[email protected] >
2010-12-22 02:39:56 +03:00
Thomas Kunze
f1fce597e6
collie: add battery driver
...
This driver is based on tosa_battery.c.
2009-11-27 21:07:23 +01:00