提交 42651b5c 编写于 作者: J Jan Kiszka 提交者: David S. Miller

CAPI: Rename datahandle_queue -> ackqueue_entry

This struct is describing a queue entry, not the queue itself.
Signed-off-by: NJan Kiszka <jan.kiszka@web.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a11ef7be
...@@ -76,7 +76,7 @@ struct capidev; ...@@ -76,7 +76,7 @@ struct capidev;
struct capincci; struct capincci;
struct capiminor; struct capiminor;
struct datahandle_queue { struct ackqueue_entry {
struct list_head list; struct list_head list;
u16 datahandle; u16 datahandle;
}; };
...@@ -156,7 +156,7 @@ static struct tty_driver *capinc_tty_driver; ...@@ -156,7 +156,7 @@ static struct tty_driver *capinc_tty_driver;
static int capiminor_add_ack(struct capiminor *mp, u16 datahandle) static int capiminor_add_ack(struct capiminor *mp, u16 datahandle)
{ {
struct datahandle_queue *n; struct ackqueue_entry *n;
unsigned long flags; unsigned long flags;
n = kmalloc(sizeof(*n), GFP_ATOMIC); n = kmalloc(sizeof(*n), GFP_ATOMIC);
...@@ -175,7 +175,7 @@ static int capiminor_add_ack(struct capiminor *mp, u16 datahandle) ...@@ -175,7 +175,7 @@ static int capiminor_add_ack(struct capiminor *mp, u16 datahandle)
static int capiminor_del_ack(struct capiminor *mp, u16 datahandle) static int capiminor_del_ack(struct capiminor *mp, u16 datahandle)
{ {
struct datahandle_queue *p, *tmp; struct ackqueue_entry *p, *tmp;
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&mp->ackqlock, flags); spin_lock_irqsave(&mp->ackqlock, flags);
...@@ -194,7 +194,7 @@ static int capiminor_del_ack(struct capiminor *mp, u16 datahandle) ...@@ -194,7 +194,7 @@ static int capiminor_del_ack(struct capiminor *mp, u16 datahandle)
static void capiminor_del_all_ack(struct capiminor *mp) static void capiminor_del_all_ack(struct capiminor *mp)
{ {
struct datahandle_queue *p, *tmp; struct ackqueue_entry *p, *tmp;
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&mp->ackqlock, flags); spin_lock_irqsave(&mp->ackqlock, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册