diff options
Diffstat (limited to 'backport/backport-include/linux/regulator/driver.h')
-rw-r--r-- | backport/backport-include/linux/regulator/driver.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backport/backport-include/linux/regulator/driver.h b/backport/backport-include/linux/regulator/driver.h index ce5bbdfb..f88d9bef 100644 --- a/backport/backport-include/linux/regulator/driver.h +++ b/backport/backport-include/linux/regulator/driver.h @@ -18,8 +18,8 @@ #include <linux/version.h> #include_next <linux/regulator/driver.h> -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) +#if LINUX_VERSION_IS_LESS(3,13,0) && \ + LINUX_VERSION_IS_GEQ(3,5,0) #define devm_regulator_register LINUX_BACKPORT(devm_regulator_register) struct regulator_dev * devm_regulator_register(struct device *dev, @@ -27,7 +27,7 @@ devm_regulator_register(struct device *dev, const struct regulator_config *config); #define devm_regulator_unregister LINUX_BACKPORT(devm_regulator_unregister) void devm_regulator_unregister(struct device *dev, struct regulator_dev *rdev); -#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)) && - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) */ +#endif /* LINUX_VERSION_IS_LESS(3,13,0) && + LINUX_VERSION_IS_GEQ(3,5,0) */ #endif /* __BACKPORT_LINUX_REGULATOR_DRIVER_H_ */ |