staging: iio: light: isl29028: appropriately set interrupt flag
authorPreetham Chandru R <pchandru@nvidia.com>
Thu, 31 Jan 2013 05:36:58 +0000 (10:36 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Thu, 31 Jan 2013 18:26:52 +0000 (10:26 -0800)
commit9f91433d1807ec7daa4a5672b3c2669d27ee28b2
tree42153fa420e35133470d162532b2405c3e6a4f55
parente722b2e725a3fd413fc4da578f2b45300d0bfd7e
staging: iio: light: isl29028: appropriately set interrupt flag

set is_int_enable to true only if we register for a irq.

Bug 1211260

Change-Id: I603efe721796db70d504da7999e5d7939d45d13a
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/193047
(cherry picked from commit 8b89b2b64c67d80fcfc29cd4f6a92d4527e70df9)
Reviewed-on: http://git-master/r/195844
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/staging/iio/light/isl29028.c