Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220190
b: refs/heads/master
c: 45dd3b3
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Oct 8, 2010
1 parent ddebb69 commit e737ed1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d750e375c13f4aadb1fe506f1ed8c86eb8aeaae6
refs/heads/master: 45dd3b340bdae09deddb0f0e9692da38d1eaf510
28 changes: 14 additions & 14 deletions trunk/drivers/staging/iio/light/tsl2563.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,14 +584,14 @@ static ssize_t tsl2563_calib_store(struct device *dev,
return len;
}

static IIO_DEVICE_ATTR(intensity_both_raw, S_IRUGO,
static IIO_DEVICE_ATTR(intensity0_both_raw, S_IRUGO,
tsl2563_adc_show, NULL, 0);
static IIO_DEVICE_ATTR(intensity_ir_raw, S_IRUGO,
static IIO_DEVICE_ATTR(intensity1_ir_raw, S_IRUGO,
tsl2563_adc_show, NULL, 1);
static DEVICE_ATTR(illuminance0_input, S_IRUGO, tsl2563_lux_show, NULL);
static IIO_DEVICE_ATTR(intensity_both_calibgain, S_IRUGO | S_IWUSR,
static IIO_DEVICE_ATTR(intensity0_both_calibgain, S_IRUGO | S_IWUSR,
tsl2563_calib_show, tsl2563_calib_store, 0);
static IIO_DEVICE_ATTR(intensity_ir_calibgain, S_IRUGO | S_IWUSR,
static IIO_DEVICE_ATTR(intensity1_ir_calibgain, S_IRUGO | S_IWUSR,
tsl2563_calib_show, tsl2563_calib_store, 1);

static ssize_t tsl2563_show_name(struct device *dev,
Expand All @@ -606,11 +606,11 @@ static ssize_t tsl2563_show_name(struct device *dev,
static DEVICE_ATTR(name, S_IRUGO, tsl2563_show_name, NULL);

static struct attribute *tsl2563_attributes[] = {
&iio_dev_attr_intensity_both_raw.dev_attr.attr,
&iio_dev_attr_intensity_ir_raw.dev_attr.attr,
&iio_dev_attr_intensity0_both_raw.dev_attr.attr,
&iio_dev_attr_intensity1_ir_raw.dev_attr.attr,
&dev_attr_illuminance0_input.attr,
&iio_dev_attr_intensity_both_calibgain.dev_attr.attr,
&iio_dev_attr_intensity_ir_calibgain.dev_attr.attr,
&iio_dev_attr_intensity0_both_calibgain.dev_attr.attr,
&iio_dev_attr_intensity1_ir_calibgain.dev_attr.attr,
&dev_attr_name.attr,
NULL
};
Expand Down Expand Up @@ -673,13 +673,13 @@ static ssize_t tsl2563_write_thresh(struct device *dev,
return ret < 0 ? ret : len;
}

static IIO_DEVICE_ATTR(intensity_both_thresh_high_value,
static IIO_DEVICE_ATTR(intensity0_both_raw_thresh_rising_value,
S_IRUGO | S_IWUSR,
tsl2563_read_thresh,
tsl2563_write_thresh,
TSL2563_REG_HIGHLOW);

static IIO_DEVICE_ATTR(intensity_both_thresh_low_value,
static IIO_DEVICE_ATTR(intensity0_both_raw_thresh_falling_value,
S_IRUGO | S_IWUSR,
tsl2563_read_thresh,
tsl2563_write_thresh,
Expand Down Expand Up @@ -791,16 +791,16 @@ static ssize_t tsl2563_read_interrupt_config(struct device *dev,
return (ret < 0) ? ret : len;
}

IIO_EVENT_ATTR(intensity_both_thresh_both_en,
IIO_EVENT_ATTR(intensity0_both_thresh_en,
tsl2563_read_interrupt_config,
tsl2563_write_interrupt_config,
0,
tsl2563_int_th);

static struct attribute *tsl2563_event_attributes[] = {
&iio_event_attr_intensity_both_thresh_both_en.dev_attr.attr,
&iio_dev_attr_intensity_both_thresh_high_value.dev_attr.attr,
&iio_dev_attr_intensity_both_thresh_low_value.dev_attr.attr,
&iio_event_attr_intensity0_both_thresh_en.dev_attr.attr,
&iio_dev_attr_intensity0_both_raw_thresh_rising_value.dev_attr.attr,
&iio_dev_attr_intensity0_both_raw_thresh_falling_value.dev_attr.attr,
NULL,
};

Expand Down

0 comments on commit e737ed1

Please sign in to comment.