From: Hauke Mehrtens Date: Fri, 2 Nov 2018 18:14:47 +0000 (+0100) Subject: i2c-gpio-custom: Adapt to moved include file X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6ca336479dd6238492e3801136adbcbe255537cb;p=openwrt%2Fstaging%2Frmilecki.git i2c-gpio-custom: Adapt to moved include file The i2c-gpio.h file was moved in kernel 4.18. Signed-off-by: Hauke Mehrtens --- diff --git a/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c b/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c index 921d290d520..f9917e52fd6 100644 --- a/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c +++ b/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c @@ -47,7 +47,12 @@ #include #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) #include +#else +#include +#endif #define DRV_NAME "i2c-gpio-custom" #define DRV_DESC "Custom GPIO-based I2C driver"