staging:iio:adis16400: Remove unit suffix from samplerate attribute
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 16 Jan 2013 12:48:00 +0000 (12:48 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 26 Jan 2013 10:07:48 +0000 (10:07 +0000)
To be compliant to the IIO specification we should not include the "SPS" suffix
in the "samplerate" attribute contents.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/imu/adis16400_core.c

index aa4ffcfaf2a84c212771c65cfd6017d274a3aeb3..942907276a315fb52be2939142b3990397ff1f46 100644 (file)
@@ -116,7 +116,7 @@ static ssize_t adis16400_read_frequency(struct device *dev,
        ret = st->variant->get_freq(st);
        if (ret < 0)
                return ret;
-       len = sprintf(buf, "%d SPS\n", ret);
+       len = sprintf(buf, "%d\n", ret);
        return len;
 }