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, 19 Aug 2013 02:43:32 +0000 (19:43 -0700)
commitbfa4af9fb1499f04fc56b45d31e31b4db17f2f86
treebc5ef5b107c4ad8fc0642c188cb5d587ec04a217
parent3e62d1ff63ef5bfd4cceedfa6cfc0906f9809116
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>
Reviewed-on: http://git-master/r/262439
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Tested-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
drivers/staging/iio/light/cm3217.c