Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317724
b: refs/heads/master
c: 07c7f79
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron committed Jun 30, 2012
1 parent 3f02af5 commit dcec1ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 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: 15a1a7530c3c411adbd9aed05f7bb43fbe9816c4
refs/heads/master: 07c7f79ee1c7e6288c614ba88005a8de6dbaadff
22 changes: 0 additions & 22 deletions trunk/drivers/staging/iio/imu/adis16400_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,25 +268,6 @@ static int adis16400_reset(struct iio_dev *indio_dev)
return ret;
}

static ssize_t adis16400_write_reset(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t len)
{
bool val;
int ret;

ret = strtobool(buf, &val);
if (ret < 0)
return ret;
if (val) {
ret = adis16400_reset(dev_to_iio_dev(dev));
if (ret < 0)
return ret;
}

return len;
}

int adis16400_set_irq(struct iio_dev *indio_dev, bool enable)
{
int ret;
Expand Down Expand Up @@ -454,8 +435,6 @@ static IIO_DEV_ATTR_SAMP_FREQ(S_IWUSR | S_IRUGO,
adis16400_read_frequency,
adis16400_write_frequency);

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

static IIO_CONST_ATTR_SAMP_FREQ_AVAIL("409 546 819 1638");

enum adis16400_chan {
Expand Down Expand Up @@ -1066,7 +1045,6 @@ static const struct iio_chan_spec adis16334_channels[] = {
static struct attribute *adis16400_attributes[] = {
&iio_dev_attr_sampling_frequency.dev_attr.attr,
&iio_const_attr_sampling_frequency_available.dev_attr.attr,
&iio_dev_attr_reset.dev_attr.attr,
NULL
};

Expand Down

0 comments on commit dcec1ae

Please sign in to comment.