aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>2017-05-15 05:24:36 -0400
committerLinus Walleij <linus.walleij@linaro.org>2017-05-23 03:50:47 -0400
commitce9bd0a0ff106b478012dc2e4c2b10bb0138dd7a (patch)
tree12c1f851119041be093958dc2a58c5bfb9186a43 /include/linux/spi
parent5b1a7e803a9fd960b6d75a1d970519c57cfe2618 (diff)
pinctrl: mcp23s08: simplify spi_present_mask handling
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/mcp23s08.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/spi/mcp23s08.h b/include/linux/spi/mcp23s08.h
index 4af82ee63329..211f3c0ef49c 100644
--- a/include/linux/spi/mcp23s08.h
+++ b/include/linux/spi/mcp23s08.h
@@ -1,10 +1,6 @@
1 1
2/* FIXME driver should be able to handle IRQs... */ 2/* FIXME driver should be able to handle IRQs... */
3 3
4struct mcp23s08_chip_info {
5 bool is_present; /* true if populated */
6};
7
8struct mcp23s08_platform_data { 4struct mcp23s08_platform_data {
9 /* For mcp23s08, up to 4 slaves (numbered 0..3) can share one SPI 5 /* For mcp23s08, up to 4 slaves (numbered 0..3) can share one SPI
10 * chipselect, each providing 1 gpio_chip instance with 8 gpios. 6 * chipselect, each providing 1 gpio_chip instance with 8 gpios.
@@ -12,7 +8,7 @@ struct mcp23s08_platform_data {
12 * chipselect, each providing 1 gpio_chip (port A + port B) with 8 * chipselect, each providing 1 gpio_chip (port A + port B) with
13 * 16 gpios. 9 * 16 gpios.
14 */ 10 */
15 struct mcp23s08_chip_info chip[8]; 11 u32 spi_present_mask;
16 12
17 /* "base" is the number of the first GPIO. Dynamic assignment is 13 /* "base" is the number of the first GPIO. Dynamic assignment is
18 * not currently supported, and even if there are gaps in chip 14 * not currently supported, and even if there are gaps in chip