Skip to content
Permalink
Browse files

i2c-gpio-custom: Adapt to moved include file

The i2c-gpio.h file was moved in kernel 4.18.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  • Loading branch information...
hauke committed Nov 2, 2018
1 parent a116b8e commit 6ca336479dd6238492e3801136adbcbe255537cb
Showing with 5 additions and 0 deletions.
  1. +5 −0 package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c
@@ -47,7 +47,12 @@
#include <linux/init.h>
#include <linux/platform_device.h>

#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)
#include <linux/i2c-gpio.h>
#else
#include <linux/platform_data/i2c-gpio.h>
#endif

#define DRV_NAME "i2c-gpio-custom"
#define DRV_DESC "Custom GPIO-based I2C driver"

0 comments on commit 6ca3364

Please sign in to comment.
You can’t perform that action at this time.