'\" t .\" Title: i2c_add_adapter .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: I2C and SMBus Subsystem .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "I2C_ADD_ADAPTER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "I2C and SMBus Subsystem" .\" ----------------------------------------------------------------- .\" * 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" i2c_add_adapter \- declare i2c adapter, use dynamic bus number .SH "SYNOPSIS" .HP \w'int\ i2c_add_adapter('u .BI "int i2c_add_adapter(struct\ i2c_adapter\ *\ " "adapter" ");" .SH "ARGUMENTS" .PP \fIadapter\fR .RS 4 the adapter to add .RE .SH "CONTEXT" .PP can sleep .SH "DESCRIPTION" .PP This routine is used to declare an I2C adapter when its bus number doesn\*(Aqt matter or when its bus number is specified by an dt alias\&. Examples of bases when the bus number doesn\*(Aqt matter: I2C adapters dynamically added by USB links or PCI plugin cards\&. .PP When this returns zero, a new bus number was allocated and stored in adap\->nr, and the specified adapter became available for clients\&. Otherwise, a negative errno value is returned\&. .SH "COPYRIGHT" .br