diff options
Diffstat (limited to 'backport/backport-include/linux/regmap.h')
-rw-r--r-- | backport/backport-include/linux/regmap.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/backport/backport-include/linux/regmap.h b/backport/backport-include/linux/regmap.h new file mode 100644 index 00000000..fff8e461 --- /dev/null +++ b/backport/backport-include/linux/regmap.h @@ -0,0 +1,16 @@ +#ifndef __BACKPORT_LINUX_REGMAP_H +#define __BACKPORT_LINUX_REGMAP_H +#include_next <linux/regmap.h> +#include <linux/version.h> + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0) && \ + LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) +#define dev_get_regmap LINUX_BACKPORT(dev_get_regmap) +static inline +struct regmap *dev_get_regmap(struct device *dev, const char *name) +{ + return NULL; +} +#endif + +#endif /* __BACKPORT_LINUX_REGMAP_H */ |