staging: iio: light: cm3217: report valid events
authorSri Krishna chowdary <schowdary@nvidia.com>
Fri, 16 Aug 2013 13:02:28 +0000 (18:02 +0530)
committerGabby Lee <galee@nvidia.com>
Mon, 7 Oct 2013 05:34:44 +0000 (22:34 -0700)
commit13c6329f60ed8c629e14da52830bdb0debd29bee
treeed241f8a1c69f751c2d7692b44ffe8d5057dab20
parent9b8bdb4fb7dfa43dfd8c0f251ae383d15c12172b
staging: iio: light: cm3217: report valid events

1. polling delay set by user should be greater than
minimum time that an ADC conversion of luminance happens.
Else sensor will simply report zero.

2. After enabling the sensor, wait for one polling delay
before start reading the luminance values.

Bug 1350036

Change-Id: I64facd1a6ee7ef1870ce1ef90942e444b9744a3a
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
(cherry picked from commit bfa4af9fb1499f04fc56b45d31e31b4db17f2f86)
Reviewed-on: http://git-master/r/281704
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Tested-by: David Yu (Engrg-SW) <davyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
drivers/staging/iio/light/cm3217.c