diff options
Diffstat (limited to 'backport-include/linux/property.h')
-rw-r--r-- | backport-include/linux/property.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backport-include/linux/property.h b/backport-include/linux/property.h new file mode 100644 index 0000000..a0d7bed --- /dev/null +++ b/backport-include/linux/property.h @@ -0,0 +1,15 @@ +#ifndef __BACKPORT_LINUX_PROPERTY_H_ +#define __BACKPORT_LINUX_PROPERTY_H_ +#include <linux/version.h> +#if LINUX_VERSION_IS_GEQ(3,18,17) +#include_next <linux/property.h> +#endif + +#if LINUX_VERSION_IS_LESS(4,3,0) + +#define device_get_mac_address LINUX_BACKPORT(device_get_mac_address) +void *device_get_mac_address(struct device *dev, char *addr, int alen); + +#endif /* < 4.3 */ + +#endif /* __BACKPORT_LINUX_PROPERTY_H_ */ |