backports: use sysfs api backport independent from kernel version
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 26 Oct 2013 12:40:59 +0000 (14:40 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 27 Oct 2013 13:11:02 +0000 (14:11 +0100)
commita864231d8745c15ba9dc76305667f7081b59810c
treef5c20449020d0515bf38fa9429ee79868b3cda2e
parentb24ada80b6a7b69187db20d384afc7dd337569fb
backports: use sysfs api backport independent from kernel version

In struct class the new sysfs dev_groups member was added with kernel
3.11, but in other structs, like struct bus_type the new member was
added with kernel 3.12. This backport is now needed on different kernel
versions depending on the struct where is was used.
With this patch ATTRIBUTE_GROUPS() will always be used with the new API
and ATTRIBUTE_GROUPS_BACKPORT() will always be used used with the old
API and the patch has to add a KERNEL_VERSION check to add the correct
macro.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/device.h
patches/collateral-evolutions/media/0004-sysfs-api.patch
patches/collateral-evolutions/network/76-sysfs-api/net_ieee802154_wpan-class.patch
patches/collateral-evolutions/network/76-sysfs-api/net_wireless_sysfs.patch