License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / include / linux / spi / mcp23s08.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
e58b9e27 2struct mcp23s08_platform_data {
0b7bb77f
PK
3 /* For mcp23s08, up to 4 slaves (numbered 0..3) can share one SPI
4 * chipselect, each providing 1 gpio_chip instance with 8 gpios.
5 * For mpc23s17, up to 8 slaves (numbered 0..7) can share one SPI
6 * chipselect, each providing 1 gpio_chip (port A + port B) with
7 * 16 gpios.
8f1cc3b1 8 */
ce9bd0a0 9 u32 spi_present_mask;
e58b9e27 10
7f38c5b9
SR
11 /* "base" is the number of the first GPIO or -1 for dynamic
12 * assignment. If there are gaps in chip addressing the GPIO
13 * numbers are sequential .. so for example if only slaves 0
14 * and 3 are present, their GPIOs range from base to base+15
15 * (or base+31 for s17 variant).
8f1cc3b1 16 */
e58b9e27 17 unsigned base;
e58b9e27 18};