diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/spi/spi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index ba0dee9d05a3..199b04245187 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
| @@ -372,6 +372,9 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv) | |||
| 372 | * @dma_rx: DMA receive channel | 372 | * @dma_rx: DMA receive channel |
| 373 | * @dummy_rx: dummy receive buffer for full-duplex devices | 373 | * @dummy_rx: dummy receive buffer for full-duplex devices |
| 374 | * @dummy_tx: dummy transmit buffer for full-duplex devices | 374 | * @dummy_tx: dummy transmit buffer for full-duplex devices |
| 375 | * @fw_translate_cs: If the boot firmware uses different numbering scheme | ||
| 376 | * what Linux expects, this optional hook can be used to translate | ||
| 377 | * between the two. | ||
| 375 | * | 378 | * |
| 376 | * Each SPI master controller can communicate with one or more @spi_device | 379 | * Each SPI master controller can communicate with one or more @spi_device |
| 377 | * children. These make a small bus, sharing MOSI, MISO and SCK signals | 380 | * children. These make a small bus, sharing MOSI, MISO and SCK signals |
| @@ -542,6 +545,8 @@ struct spi_master { | |||
| 542 | /* dummy data for full duplex devices */ | 545 | /* dummy data for full duplex devices */ |
| 543 | void *dummy_rx; | 546 | void *dummy_rx; |
| 544 | void *dummy_tx; | 547 | void *dummy_tx; |
| 548 | |||
| 549 | int (*fw_translate_cs)(struct spi_master *master, unsigned cs); | ||
| 545 | }; | 550 | }; |
| 546 | 551 | ||
| 547 | static inline void *spi_master_get_devdata(struct spi_master *master) | 552 | static inline void *spi_master_get_devdata(struct spi_master *master) |
