[PATCH] bcm43xx: Add sysfs attributes for device specific tunables.
Signed-off-by: Michael Buesch <mbuesch@freenet.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
f398f02d12
commit
367f899ac3
25
drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h
Normal file
25
drivers/net/wireless/bcm43xx/bcm43xx_sysfs.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef BCM43xx_SYSFS_H_
|
||||
#define BCM43xx_SYSFS_H_
|
||||
|
||||
#include <linux/device.h>
|
||||
|
||||
|
||||
struct bcm43xx_sysfs {
|
||||
struct device_attribute attr_sprom;
|
||||
struct device_attribute attr_interfmode;
|
||||
struct device_attribute attr_preamble;
|
||||
};
|
||||
|
||||
#define devattr_to_bcm(attr, attr_name) ({ \
|
||||
struct bcm43xx_sysfs *__s; struct bcm43xx_private *__p; \
|
||||
__s = container_of((attr), struct bcm43xx_sysfs, attr_name); \
|
||||
__p = container_of(__s, struct bcm43xx_private, sysfs); \
|
||||
__p; \
|
||||
})
|
||||
|
||||
struct bcm43xx_private;
|
||||
|
||||
int bcm43xx_sysfs_register(struct bcm43xx_private *bcm);
|
||||
void bcm43xx_sysfs_unregister(struct bcm43xx_private *bcm);
|
||||
|
||||
#endif /* BCM43xx_SYSFS_H_ */
|
Reference in New Issue
Block a user