]> git.baikalelectronics.ru Git - kernel.git/commit
ssb: extif: add methods for watchdog driver
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 5 Dec 2012 17:46:07 +0000 (18:46 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Dec 2012 19:58:58 +0000 (14:58 -0500)
commit5877f45c9f1f2f322524297b7d81ba4f026fa8f2
tree84e02c5cd758f6d52d595414ccc162279a19037a
parentb93c54ee036b04b8cd04f447e7da680de4d7d411
ssb: extif: add methods for watchdog driver

The watchdog driver wants to set the watchdog timeout in ms and not in
ticks, add a method converting ms to ticks before setting the watchdog
register. Return the ticks or millisecond the timer was set to in case
the provided value was bigger than the max allowed value.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/driver_extif.c
drivers/ssb/ssb_private.h
include/linux/ssb/ssb_driver_extif.h