提交 b68d58a8 编写于 作者: M Manuel Stahl 提交者: Greg Kroah-Hartman

staging: iio: sca3000 fix sca3000_[show,store]_ring_bpse

Signed-off-by: NManuel Stahl <manuel.stahl@iis.fraunhofer.de>
Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3285aae1
...@@ -126,8 +126,8 @@ static ssize_t sca3000_show_ring_bpse(struct device *dev, ...@@ -126,8 +126,8 @@ static ssize_t sca3000_show_ring_bpse(struct device *dev,
{ {
int len = 0, ret; int len = 0, ret;
u8 *rx; u8 *rx;
struct iio_ring_buffer *r = dev_get_drvdata(dev); struct iio_dev *indio_dev = dev_get_drvdata(dev);
struct sca3000_state *st = r->indio_dev->dev_data; struct sca3000_state *st = indio_dev->dev_data;
mutex_lock(&st->lock); mutex_lock(&st->lock);
ret = sca3000_read_data(st, SCA3000_REG_ADDR_MODE, &rx, 1); ret = sca3000_read_data(st, SCA3000_REG_ADDR_MODE, &rx, 1);
...@@ -153,8 +153,8 @@ static ssize_t sca3000_store_ring_bpse(struct device *dev, ...@@ -153,8 +153,8 @@ static ssize_t sca3000_store_ring_bpse(struct device *dev,
const char *buf, const char *buf,
size_t len) size_t len)
{ {
struct iio_ring_buffer *r = dev_get_drvdata(dev); struct iio_dev *indio_dev = dev_get_drvdata(dev);
struct sca3000_state *st = r->indio_dev->dev_data; struct sca3000_state *st = indio_dev->dev_data;
int ret; int ret;
u8 *rx; u8 *rx;
long val; long val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册