misc: cap_prox: add fail-safe threshold checks
authormakarand.karvekar <makarand.karvekar@motorola.com>
Fri, 14 Jan 2011 23:13:31 +0000 (17:13 -0600)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 14 Jan 2011 23:24:45 +0000 (15:24 -0800)
commit4efb08969e884f4bcb8a409dc9a3f8d4132727f3
treed4bac1e9225ad178c7590dee49a5fbe7e5bd968d
parentdbfdd7ed28d1b2fbc101b15f9d8dbe1b5aa3f8a6
misc: cap_prox: add fail-safe threshold checks

if either of the sensors are in failure mode,
keep device in body proximity detect.

Change-Id: I4e460ac30e3612863a995e73b7869aa619ea5eb6
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
drivers/misc/cap_prox.c
include/linux/cap_prox.h