spi_register_driver

The interface has the following parameters.
  • Synopsis:
    int spi_register_driver(struct spi_driver *sdrv)
  • Description: The interface is used to register the driver of an SPI device.
  • Parameter:
    • sdrv: spi_driver type, includes the SPI device name, probe interface information and so on.
  • Return:
    • Success: 0.
    • Failure: Any value other than 0.