From 467460e014c409f182fec91ead49e12055d6f042 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 21 Sep 2015 00:02:45 +0200 Subject: headers: add linux/bcm47xx_nvram.h This is used by the brcmfmac driver since mainline commit 4e70f214. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/bcm47xx_nvram.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 backport/backport-include/linux/bcm47xx_nvram.h diff --git a/backport/backport-include/linux/bcm47xx_nvram.h b/backport/backport-include/linux/bcm47xx_nvram.h new file mode 100644 index 00000000..ec835f1a --- /dev/null +++ b/backport/backport-include/linux/bcm47xx_nvram.h @@ -0,0 +1,25 @@ +#ifndef __BACKPORTS_BCM47XX_NVRAM_H +#define __BACKPORTS_BCM47XX_NVRAM_H +#include + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) +#include_next +#else +#include +#include +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) +#define bcm47xx_nvram_get_contents LINUX_BACKPORT(bcm47xx_nvram_get_contents) +static inline char *bcm47xx_nvram_get_contents(size_t *val_len) +{ + return NULL; +} + +#define bcm47xx_nvram_release_contents LINUX_BACKPORT(bcm47xx_nvram_release_contents) +static inline void bcm47xx_nvram_release_contents(char *nvram) +{ +} +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) */ + +#endif /* __BACKPORTS_BCM47XX_NVRAM_H */ -- cgit v1.2.3