mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
enable/disable the lid sensor
Signed-off-by: flar2 <asegaert@gmail.com>
This commit is contained in:
parent
1e1ad0a211
commit
02651df2b4
1 changed files with 7 additions and 4 deletions
|
@ -93,11 +93,14 @@ static ssize_t show_lid_status(struct device *class,
|
|||
|
||||
static irqreturn_t lid_interrupt_handler(int irq, void *dev_id)
|
||||
{
|
||||
if (irq == hall_sensor_irq) {
|
||||
LID_NOTICE("LID interrupt handler...gpio: %d..\n",
|
||||
gpio_get_value(hall_sensor_gpio));
|
||||
queue_delayed_work(lid_wq, &lid_hall_sensor_work, 0);
|
||||
if (enable_lid) {
|
||||
if (irq == hall_sensor_irq) {
|
||||
LID_NOTICE("LID interrupt handler...gpio: %d..\n",
|
||||
gpio_get_value(hall_sensor_gpio));
|
||||
queue_delayed_work(lid_wq, &lid_hall_sensor_work, 0);
|
||||
}
|
||||
}
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue