w1: ds2760_battery: add support for sleep mode feature
authorDaniel Mack <daniel@caiaq.de>
Tue, 28 Apr 2009 08:55:02 +0000 (10:55 +0200)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Mon, 8 Jun 2009 19:25:17 +0000 (23:25 +0400)
commitcef437e3a9b6d229d4ed3730cde047007267df6d
tree6a01e75b651988c82d231bc4f6bedb49ea12173a
parent0b47b5703b1cc6c3aa89663ac70e28dadedf6ccc
w1: ds2760_battery: add support for sleep mode feature

This adds support for ds2760's sleep mode feature. With this feature
enabled, the chip enters a deep sleep mode and disconnects from the
battery when the w1 line is held down for more than 2 seconds.

This new behaviour can be switched on and off using a new module
parameter.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
Acked-by: Matt Reimer <mreimer@vpop.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/ds2760_battery.c
drivers/w1/slaves/w1_ds2760.h