wireless: clean up sysfs code using %pM
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Oct 2008 13:00:54 +0000 (14:00 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Nov 2008 16:08:19 +0000 (11:08 -0500)
commit4f6d4d1e36f30ac05bc39bcbfdba09e64e0f918c
tree8a19adc28972d45ce9353b205c62303526bf1a6d
parent96dd603f3817c5289a906539cb85bddae9536868
wireless: clean up sysfs code using %pM

Remove converting the MAC address to a string by a direct byte
conversion and use %pM instead, since the code is now boilerplate
use a macro to define the show functions, and also use the shorter
__ATTR_RO macro to define the attributes.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/sysfs.c