misc: kxtf9: If enabled before suspend, reenable
authorKazuhiro Ondo <kazuhiro.ondo@motorola.com>
Tue, 30 Nov 2010 04:03:00 +0000 (22:03 -0600)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 3 Dec 2010 04:45:17 +0000 (20:45 -0800)
commit5b8774c73e835cfe43da5f529bb3e84ac38d1b2c
tree57ee7fb848b19dbf675b63b07c503e22f249c06a
parente9aabda06a524ee22d1e12fb60a948c0ae8c598e
misc: kxtf9: If enabled before suspend, reenable

If the sensor were enabled on suspend, reenable it on resume.
Without this change the sensor stops sending data if it were kept
open across suspend and resume.

Commit for Ken Hu <jian-wu.hu@motorola.com>

Change-Id: Ifea2c8ed30d350a5e41d73a530faa89c1e4b5f2b
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/misc/kxtf9.c