Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317723
b: refs/heads/master
c: 15a1a75
h: refs/heads/master
i:
  317721: fac48f7
  317719: 92b743b
v: v3
  • Loading branch information
Jonathan Cameron committed Jun 30, 2012
1 parent 6c7a8e7 commit 3f02af5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 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: 13d947db1c8e4e5c2114e809beef97ddf41b7006
refs/heads/master: 15a1a7530c3c411adbd9aed05f7bb43fbe9816c4
19 changes: 0 additions & 19 deletions trunk/drivers/staging/iio/gyro/adis16260_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,22 +233,6 @@ static int adis16260_reset(struct iio_dev *indio_dev)
return ret;
}

static ssize_t adis16260_write_reset(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t len)
{
struct iio_dev *indio_dev = dev_to_iio_dev(dev);
if (len < 1)
return -EINVAL;
switch (buf[0]) {
case '1':
case 'y':
case 'Y':
return adis16260_reset(indio_dev);
}
return -EINVAL;
}

int adis16260_set_irq(struct iio_dev *indio_dev, bool enable)
{
int ret;
Expand Down Expand Up @@ -375,8 +359,6 @@ static IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO,
adis16260_read_frequency,
adis16260_write_frequency);

static IIO_DEVICE_ATTR(reset, S_IWUSR, NULL, adis16260_write_reset, 0);

static IIO_DEVICE_ATTR(sampling_frequency_available,
S_IRUGO, adis16260_read_frequency_available, NULL, 0);

Expand Down Expand Up @@ -604,7 +586,6 @@ static int adis16260_write_raw(struct iio_dev *indio_dev,
static struct attribute *adis16260_attributes[] = {
&iio_dev_attr_sampling_frequency.dev_attr.attr,
&iio_dev_attr_sampling_frequency_available.dev_attr.attr,
&iio_dev_attr_reset.dev_attr.attr,
NULL
};

Expand Down

0 comments on commit 3f02af5

Please sign in to comment.