From 8a094bd6ab08cad4bc0ff329d08af92f4851dda3 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 2 Jan 2014 00:43:08 +0100 Subject: [PATCH] backports: fix i2c_add_mux_adapter() parameters The class parameter was added in kernel 3.7 to i2c_add_mux_adapter() and could just be ignored by older kernel versions. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/i2c-mux.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 backport/backport-include/linux/i2c-mux.h diff --git a/backport/backport-include/linux/i2c-mux.h b/backport/backport-include/linux/i2c-mux.h new file mode 100644 index 000000000000..a3a67ad615ca --- /dev/null +++ b/backport/backport-include/linux/i2c-mux.h @@ -0,0 +1,11 @@ +#ifndef __BACKPORT_LINUX_I2C_MUX_H +#define __BACKPORT_LINUX_I2C_MUX_H +#include_next +#include + +#if (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 + +#endif /* __BACKPORT_LINUX_I2C_MUX_H */ -- 2.30.2