Re: [PATCH 01/10] headers: add linux/bcm47xx_nvram.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/22/2015 12:07 AM, Hauke Mehrtens wrote:
> This is used by the brcmfmac driver since mainline commit 4e70f214.
> 
> Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
> ---
>  backport/backport-include/linux/bcm47xx_nvram.h | 27 +++++++++++++++++++++++++
>  1 file changed, 27 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 0000000..0e50fcf
> --- /dev/null
> +++ b/backport/backport-include/linux/bcm47xx_nvram.h
> @@ -0,0 +1,27 @@
> +#ifndef __BACKPORTS_BCM47XX_NVRAM_H
> +#define __BACKPORTS_BCM47XX_NVRAM_H
> +#include <linux/version.h>
> +
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
> +#include_next <linux/bcm47xx_nvram.h>
> +#else
> +#include <linux/types.h>
> +#include <linux/kernel.h>
> +#endif
> +
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
> +
> +#ifndef CONFIG_BCM47XX_NVRAM

I removed this ifndef so it will also compile on bcm47 devices.
OpenWrt will take care that it will also work with older kernel versions
there.

> +static inline char *bcm47xx_nvram_get_contents(size_t *val_len)
> +{
> +	return NULL;
> +}
> +
> +static inline void bcm47xx_nvram_release_contents(char *nvram)
> +{
> +}
> +#endif
> +
> +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) */
> +
> +#endif /* __BACKPORTS_BCM47XX_NVRAM_H */
> 

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux