'\" t .\" Title: spi_add_device .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Serial Peripheral Interface (SPI) .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SPI_ADD_DEVICE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Serial Peripheral Interface (S" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" spi_add_device \- Add spi_device allocated with spi_alloc_device .SH "SYNOPSIS" .HP \w'int\ spi_add_device('u .BI "int spi_add_device(struct\ spi_device\ *\ " "spi" ");" .SH "ARGUMENTS" .PP \fIspi\fR .RS 4 spi_device to register .RE .SH "DESCRIPTION" .PP Companion function to spi_alloc_device\&. Devices allocated with spi_alloc_device can be added onto the spi bus with this function\&. .SH "RETURN" .PP 0 on success; negative errno on failure .SH "COPYRIGHT" .br