From: Hauke Mehrtens Date: Sun, 15 Jun 2014 12:40:30 +0000 (+0200) Subject: backports: add i2c_add_mux_adapter() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=87e11587f114bed7fa2a83b6ef11076e25d6e473;p=openwrt%2Fstaging%2Fblogic.git backports: add i2c_add_mux_adapter() This adds i2c_add_mux_adapter() also for kernel < 3.5. This is needed for some newly activated media driver. Signed-off-by: Hauke Mehrtens --- diff --git a/backport/backport-include/linux/i2c-mux.h b/backport/backport-include/linux/i2c-mux.h index a3a67ad615ca..37db84d46e5a 100644 --- a/backport/backport-include/linux/i2c-mux.h +++ b/backport/backport-include/linux/i2c-mux.h @@ -3,7 +3,10 @@ #include_next #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) +#define i2c_add_mux_adapter(parent, mux_dev, mux_priv, force_nr, chan_id, class, select, deselect) \ + i2c_add_mux_adapter(parent, mux_priv, force_nr, chan_id, select, deselect) +#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)) #define i2c_add_mux_adapter(parent, mux_dev, mux_priv, force_nr, chan_id, class, select, deselect) \ i2c_add_mux_adapter(parent, mux_dev, mux_priv, force_nr, chan_id, select, deselect) #endif