]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: embed the ath_ops callbacks in the ath_hw struct
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Mar 2011 19:57:24 +0000 (20:57 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Mar 2011 18:15:19 +0000 (14:15 -0400)
commit3a1c2b9abfb15d46f58cdb300b3647252fd71cfc
treef9887db51eda5716a8d1a33abee9af7b9d7fb5f3
parent9a928dd8a6a4e0054aea99c3a32a8eca5443d6f6
ath9k_hw: embed the ath_ops callbacks in the ath_hw struct

With this change, loading the address to a register read/write function
costs only one pointer dereference instead of two. On MIPS this reduces
ath9k_hw binary size from 326k down to 321k.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/init.c