staging:iio:light:isl29028: expose als's raw sysfs
Sri Krishna chowdary [Tue, 3 Sep 2013 14:54:48 +0000 (19:54 +0530)]
in_illuminance_raw sysfs is being used by user space
driver to read light intensisty in lux values.
Set bit to expose the same.

Bug 1327616
Bug 1263672

Change-Id: I193ee871480284fa496bf0c82367b773ab83de18
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/269583
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

drivers/staging/iio/light/isl29028.c

index 8bb0d03..2bc3caf 100644 (file)
@@ -2,7 +2,7 @@
  * IIO driver for the light sensor ISL29028.
  * ISL29028 is Concurrent Ambient Light and Proximity Sensor
  *
- * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2012-2013, NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -392,7 +392,8 @@ static const struct iio_chan_spec isl29028_channels[] = {
        {
                .type = IIO_LIGHT,
                .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED) |
-               BIT(IIO_CHAN_INFO_SCALE),
+               BIT(IIO_CHAN_INFO_SCALE) |
+               BIT(IIO_CHAN_INFO_RAW),
        }, {
                .type = IIO_INTENSITY,
                .info_mask_separate = BIT(IIO_CHAN_INFO_RAW),