mfd: Expose TurnOnStatus in ab8500 sysfs
authorAndrew Lynn <andrew.lynn@stericsson.com>
Tue, 11 Oct 2011 08:49:47 +0000 (10:49 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 24 Oct 2011 12:09:20 +0000 (14:09 +0200)
commitb4a310373209b87ba455f45227b5361cb746b946
tree12c96489e713f68f9f0024b48e2eae4f257d60a0
parent9b626ddd7f87f9443e9b6dfac54b5e8f52fb8f52
mfd: Expose TurnOnStatus in ab8500 sysfs

Expose TurnOnStatus (Power key, RTC alarm, Vbus detect, etc) in
sysfs. This magic value can be read by system users to determine
what caused the platform to turn on last (this) time.

Signed-off-by: Andrew Lynn <andrew.lynn@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Reviewed-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-core.c