diff options
Diffstat (limited to 'drivers/staging/iio/light/light.h')
-rw-r--r-- | drivers/staging/iio/light/light.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/staging/iio/light/light.h b/drivers/staging/iio/light/light.h new file mode 100644 index 00000000000..f00f827689c --- /dev/null +++ b/drivers/staging/iio/light/light.h @@ -0,0 +1,12 @@ +#include "../sysfs.h" + +/* Light to digital sensor attributes */ + +#define IIO_DEV_ATTR_LIGHT_INFRARED(_num, _show, _addr) \ + IIO_DEVICE_ATTR(light_infrared##_num, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_LIGHT_BROAD(_num, _show, _addr) \ + IIO_DEVICE_ATTR(light_broadspectrum##_num, S_IRUGO, _show, NULL, _addr) + +#define IIO_DEV_ATTR_LIGHT_VISIBLE(_num, _show, _addr) \ + IIO_DEVICE_ATTR(light_visible##_num, S_IRUGO, _show, NULL, _addr) |