diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/spi/spi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index ed9489d893a4..4eaac3a5227b 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
| @@ -294,6 +294,8 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv) | |||
| 294 | * transfer_one_message are mutually exclusive; when both | 294 | * transfer_one_message are mutually exclusive; when both |
| 295 | * are set, the generic subsystem does not call your | 295 | * are set, the generic subsystem does not call your |
| 296 | * transfer_one callback. | 296 | * transfer_one callback. |
| 297 | * @handle_err: the subsystem calls the driver to handle and error that occurs | ||
| 298 | * in the generic implementation of transfer_one_message(). | ||
| 297 | * @unprepare_message: undo any work done by prepare_message(). | 299 | * @unprepare_message: undo any work done by prepare_message(). |
| 298 | * @cs_gpios: Array of GPIOs to use as chip select lines; one per CS | 300 | * @cs_gpios: Array of GPIOs to use as chip select lines; one per CS |
| 299 | * number. Any individual value may be -ENOENT for CS lines that | 301 | * number. Any individual value may be -ENOENT for CS lines that |
| @@ -448,6 +450,8 @@ struct spi_master { | |||
| 448 | void (*set_cs)(struct spi_device *spi, bool enable); | 450 | void (*set_cs)(struct spi_device *spi, bool enable); |
| 449 | int (*transfer_one)(struct spi_master *master, struct spi_device *spi, | 451 | int (*transfer_one)(struct spi_master *master, struct spi_device *spi, |
| 450 | struct spi_transfer *transfer); | 452 | struct spi_transfer *transfer); |
| 453 | void (*handle_err)(struct spi_master *master, | ||
| 454 | struct spi_message *message); | ||
| 451 | 455 | ||
| 452 | /* gpio chip select */ | 456 | /* gpio chip select */ |
| 453 | int *cs_gpios; | 457 | int *cs_gpios; |
