spi_add_device(9)

spi_add_device9

Add spi_device allocated with spi_alloc_device

Usage

int spi_add_device(struct spi_device * spi);

Arguments

spi

spi_device to register

Overview

Companion function to spi_alloc_device. Devices allocated with spi_alloc_device can be added onto the spi bus with this function.

Returns 0 on success; negative errno on failure

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7
  3. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.