mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 22:36:48 +07:00
87e715deb8
Instead of creating attributes one by one, define attribute_group array and attach it to bus->dev_groups, so that all needed attributes are created automatically when a new device is registered on the bus. Also switch to using standard DEVICE_ATTR_RO() macros. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 lines
227 B
C
9 lines
227 B
C
|
|
#ifdef CONFIG_ZORRO_NAMES
|
|
extern void zorro_name_device(struct zorro_dev *z);
|
|
#else
|
|
static inline void zorro_name_device(struct zorro_dev *dev) { }
|
|
#endif
|
|
|
|
extern const struct attribute_group *zorro_device_attribute_groups[];
|