rt2x00: rt2x00queue: add priv_size field to struct data_queue
authorGabor Juhos <juhosg@openwrt.org>
Tue, 4 Jun 2013 11:40:38 +0000 (13:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 18:59:33 +0000 (14:59 -0400)
commit568f7a438f6d5f0f0909c94e66b7c5c8b96ebf7a
treef330758eea81a096684c146c5796af43de8db9b0
parent057c1dd6cd5041e3b6a6fb65708ac5a4d9c12b36
rt2x00: rt2x00queue: add priv_size field to struct data_queue

Add a new field into struct data_queue and store
the size of the per-queue_entry private data in
that. Additionally, use the new field in the
rt2x00queue_alloc_entries function to compute
the size of the queue entries for a given queue.

The patch does not change the current behaviour
but makes it possible to remove the queue_desc
parameter of the rt2x00queue_alloc_entries function.
That will be done by a subsequent patch.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00queue.c
drivers/net/wireless/rt2x00/rt2x00queue.h