Skip to content

Commit d92dffe

Browse files
committed
Use DECLARE_KFIFO_PTR helper
1 parent a3fc62e commit d92dffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static struct class *simrupt_class;
3838
static struct cdev simrupt_cdev;
3939

4040
/* Data are stored into a kfifo buffer before passing them to the userspace */
41-
static struct kfifo rx_fifo;
41+
static DECLARE_KFIFO_PTR(rx_fifo, unsigned char);
4242

4343
/* NOTE: the usage of kfifo is safe (no need for extra locking), until there is
4444
* only one concurrent reader and one concurrent writer. Writes are serialized

0 commit comments

Comments
 (0)