Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354389
b: refs/heads/master
c: 999517f
h: refs/heads/master
i:
  354387: 54dedff
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Jan 31, 2013
1 parent 52ec9ba commit 9c0e70e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition 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: 872e79add7561645b130fba63aa7ca12098a9361
refs/heads/master: 999517f6742b4ca4692c041752afc4298fbbf0da
1 change: 0 additions & 1 deletion trunk/drivers/iio/kfifo_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ static inline int __iio_allocate_kfifo(struct iio_kfifo *buf,
if ((length == 0) || (bytes_per_datum == 0))
return -EINVAL;

__iio_update_buffer(&buf->buffer, bytes_per_datum, length);
return __kfifo_alloc((struct __kfifo *)&buf->kf, length,
bytes_per_datum, GFP_KERNEL);
}
Expand Down
13 changes: 0 additions & 13 deletions trunk/include/linux/iio/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,6 @@ int iio_update_buffers(struct iio_dev *indio_dev,
**/
void iio_buffer_init(struct iio_buffer *buffer);

/**
* __iio_update_buffer() - update common elements of buffers
* @buffer: buffer that is the event source
* @bytes_per_datum: size of individual datum including timestamp
* @length: number of datums in buffer
**/
static inline void __iio_update_buffer(struct iio_buffer *buffer,
int bytes_per_datum, int length)
{
buffer->bytes_per_datum = bytes_per_datum;
buffer->length = length;
}

int iio_scan_mask_query(struct iio_dev *indio_dev,
struct iio_buffer *buffer, int bit);

Expand Down

0 comments on commit 9c0e70e

Please sign in to comment.