aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c-mux-gpio.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2012-04-28 09:32:06 -0400
committerWolfram Sang <w.sang@pengutronix.de>2012-05-12 08:28:18 -0400
commite7065e20d9a6a8ee4a8b31ebe71d6c00a0f45354 (patch)
tree2f219f7db3371d477733bbcf6d8f56e5bac1cf69 /include/linux/i2c-mux-gpio.h
parent353f56b5f3093b6d75e81f523a8b10748a40f278 (diff)
i2c: Rename last mux driver to standard pattern
Update the MAINTAINERS entry and all other references accordingly. Based on an original patch by Wolfram Sang. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Peter Korsgaard <peter.korsgaard@barco.com> [wsa: fixed merge conflict due to rework in i2c_add_mux_adapter()] Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'include/linux/i2c-mux-gpio.h')
-rw-r--r--include/linux/i2c-mux-gpio.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/linux/i2c-mux-gpio.h b/include/linux/i2c-mux-gpio.h
new file mode 100644
index 000000000000..a36343a37ebc
--- /dev/null
+++ b/include/linux/i2c-mux-gpio.h
@@ -0,0 +1,38 @@
1/*
2 * i2c-mux-gpio interface to platform code
3 *
4 * Peter Korsgaard <peter.korsgaard@barco.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef _LINUX_I2C_MUX_GPIO_H
12#define _LINUX_I2C_MUX_GPIO_H
13
14/* MUX has no specific idle mode */
15#define I2C_MUX_GPIO_NO_IDLE ((unsigned)-1)
16
17/**
18 * struct i2c_mux_gpio_platform_data - Platform-dependent data for i2c-mux-gpio
19 * @parent: Parent I2C bus adapter number
20 * @base_nr: Base I2C bus number to number adapters from or zero for dynamic
21 * @values: Array of bitmasks of GPIO settings (low/high) for each
22 * position
23 * @n_values: Number of multiplexer positions (busses to instantiate)
24 * @gpios: Array of GPIO numbers used to control MUX
25 * @n_gpios: Number of GPIOs used to control MUX
26 * @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used
27 */
28struct i2c_mux_gpio_platform_data {
29 int parent;
30 int base_nr;
31 const unsigned *values;
32 int n_values;
33 const unsigned *gpios;
34 int n_gpios;
35 unsigned idle;
36};
37
38#endif /* _LINUX_I2C_MUX_GPIO_H */