From 6257f6fa00fcaeb4e1c204c1a9638f4463f757b3 Mon Sep 17 00:00:00 2001 From: Austin Zhang Date: Tue, 29 Oct 2013 16:18:07 +0800 Subject: PM: hwmon: sensor: accelerator: Added screen off notifier callback Added screen off notifier callback for accelerator, so that this sensor will be disabled once the screen is off; Otherwise, this sensor will still wake up processor frequently and spend a lot of time (so power) to handle its ISR even though the screen is off but the system is not in suspend status. Signed-off-by: Austin Zhang --- include/linux/accel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/accel.h b/include/linux/accel.h index 578025b4d8c..9e04b176120 100644 --- a/include/linux/accel.h +++ b/include/linux/accel.h @@ -39,6 +39,7 @@ unsigned int poll_inerval; unsigned int g_range; + struct notifier_block screen_notifier; }; struct accel_driver_descr { -- cgit v1.2.3