diff options
author | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | 2017-05-15 12:24:36 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-05-23 10:50:47 +0300 |
commit | ce9bd0a0ff106b478012dc2e4c2b10bb0138dd7a (patch) | |
tree | 12c1f851119041be093958dc2a58c5bfb9186a43 /include/linux/spi | |
parent | 5b1a7e803a9fd960b6d75a1d970519c57cfe2618 (diff) | |
download | linux-ce9bd0a0ff106b478012dc2e4c2b10bb0138dd7a.tar.xz |
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.h | 6 |
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 @@ /* FIXME driver should be able to handle IRQs... */ -struct mcp23s08_chip_info { - bool is_present; /* true if populated */ -}; - struct mcp23s08_platform_data { /* For mcp23s08, up to 4 slaves (numbered 0..3) can share one SPI * chipselect, each providing 1 gpio_chip instance with 8 gpios. @@ -12,7 +8,7 @@ struct mcp23s08_platform_data { * chipselect, each providing 1 gpio_chip (port A + port B) with * 16 gpios. */ - struct mcp23s08_chip_info chip[8]; + u32 spi_present_mask; /* "base" is the number of the first GPIO. Dynamic assignment is * not currently supported, and even if there are gaps in chip |