Staging: batman-adv: Ommit storing struct device in sysfs functions
authorLinus Lüssing <linus.luessing@web.de>
Sun, 21 Nov 2010 23:55:54 +0000 (00:55 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Nov 2010 19:09:11 +0000 (11:09 -0800)
commit1623948f879069b33d07986aa95e3b9969322ff4
tree5863833f792e64790a20f26a2b855f0fb252ed9a
parentadd9e1722755072f40d79104db04e350b25624d9
Staging: batman-adv: Ommit storing struct device in sysfs functions

We actually do not need an extra struct device variable, therefore
replacing them with defines that directly get the bat_priv or
net_device. This further reduces the code size in bat_sysfs.c and
especially shortens some macros.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/bat_sysfs.c