nsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}(hhparenthuba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget"/translations/zh_CN/driver-api/i2cmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}(hhhh2ubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/zh_TW/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}(hhhhFubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/it_IT/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}(hhhhZubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/ja_JP/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}(hhhhnubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/ko_KR/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}(hhhhubah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/sp_SP/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h"I\ :sup:`2`\ C and SMBus Subsystemh](hI }(hI\ hhhhhNhNubh superscript)}(h:sup:`2`h]h2}(hhhhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubh C and SMBus Subsystem}(h\ C and SMBus SubsystemhhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhhh` representing each I2C bus segment it manages. On each I2C bus segment will be I2C devices represented by a :c:type:`struct i2c_client `. Those devices will be bound to a :c:type:`struct i2c_driver `, which should follow the standard Linux driver model. There are functions to perform various I2C protocol operations; at this writing all such functions are usable only from task context.h](hXWThe Linux I2C programming interfaces support the master side of bus interactions and the slave side. The programming interface is structured around two kinds of driver, and two kinds of device. An I2C “Adapter Driver” abstracts the controller hardware; it binds to a physical device (perhaps a PCI device or platform_device) and exposes a }(hXSThe Linux I2C programming interfaces support the master side of bus interactions and the slave side. The programming interface is structured around two kinds of driver, and two kinds of device. An I2C "Adapter Driver" abstracts the controller hardware; it binds to a physical device (perhaps a PCI device or platform_device) and exposes a hhhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]hliteral)}(hhh]hstruct i2c_adapter}(hhhjhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]refdocdriver-api/i2c refdomainj reftypetype refexplicitrefwarn reftarget i2c_adapteruh1hhhhKhhubhl representing each I2C bus segment it manages. On each I2C bus segment will be I2C devices represented by a }(hl representing each I2C bus segment it manages. On each I2C bus segment will be I2C devices represented by a hhhhhNhNubh)}(h(:c:type:`struct i2c_client `h]h)}(hj&h]hstruct i2c_client}(hhhj(hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj i2c_clientuh1hhhhKhhubh#. Those devices will be bound to a }(h#. Those devices will be bound to a hhhhhNhNubh)}(h(:c:type:`struct i2c_driver `h]h)}(hjJh]hstruct i2c_driver}(hhhjLhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj i2c_driveruh1hhhhKhhubh, which should follow the standard Linux driver model. There are functions to perform various I2C protocol operations; at this writing all such functions are usable only from task context.}(h, which should follow the standard Linux driver model. There are functions to perform various I2C protocol operations; at this writing all such functions are usable only from task context.hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hX.The System Management Bus (SMBus) is a sibling protocol. Most SMBus systems are also I2C conformant. The electrical constraints are tighter for SMBus, and it standardizes particular protocol messages and idioms. Controllers that support I2C can also support most SMBus operations, but SMBus controllers don't support all the protocol options that an I2C controller will. There are functions to perform various SMBus protocol operations, either using I2C primitives or by issuing SMBus commands to i2c_adapter devices which don't support those I2C operations.h]hX2The System Management Bus (SMBus) is a sibling protocol. Most SMBus systems are also I2C conformant. The electrical constraints are tighter for SMBus, and it standardizes particular protocol messages and idioms. Controllers that support I2C can also support most SMBus operations, but SMBus controllers don’t support all the protocol options that an I2C controller will. There are functions to perform various SMBus protocol operations, either using I2C primitives or by issuing SMBus commands to i2c_adapter devices which don’t support those I2C operations.}(hjthjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlei2c_master_recv (C function)c.i2c_master_recvhNtauh1jhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(hKint i2c_master_recv (const struct i2c_client *client, char *buf, int count)h]hdesc_signature_line)}(hJint i2c_master_recv(const struct i2c_client *client, char *buf, int count)h](hdesc_sig_keyword_type)}(hinth]hint}(hhhjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKGubhdesc_sig_space)}(h h]h }(hhhjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKGubh desc_name)}(hi2c_master_recvh]h desc_sig_name)}(hi2c_master_recvh]hi2c_master_recv}(hhhjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jhjhhhjhKGubhdesc_parameterlist)}(h7(const struct i2c_client *client, char *buf, int count)h](hdesc_parameter)}(hconst struct i2c_client *clienth](hdesc_sig_keyword)}(hconsth]hconst}(hhhjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstructh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainj reftype identifier reftargetj2modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jK ASTIdentifier)}jFjsbc.i2c_master_recvasbuh1hhjubj)}(h h]h }(hhhjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(h*h]h*}(hhhjhhhhNhNubah}(h]h ]pah"]h$]h&]uh1jfhjubj)}(hclienth]hclient}(hhhjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char *bufh](j)}(hcharh]hchar}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubj)}(hbufh]hbuf}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](j)}(hinth]hint}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKGubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKGubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multilineuh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKMhjhhubh desc_content)}(hhh]h)}(h1issue a single I2C message in master receive modeh]h1issue a single I2C message in master receive mode}(hj#hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKGubeh}(h]h ](j functioneh"]h$]h&]domainj objtypej9desctypej9noindexuh1jhhhhhNhNubh container)}(hX!**Parameters** ``const struct i2c_client *client`` Handle to slave device ``char *buf`` Where to store data read from slave ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 **Description** Returns negative errno, or else the number of bytes read.h](h)}(h**Parameters**h]hstrong)}(hjIh]h Parameters}(hhhjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjGubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKJhjCubhdefinition_list)}(hhh](hdefinition_list_item)}(h;``const struct i2c_client *client`` Handle to slave device h](hterm)}(h#``const struct i2c_client *client``h]h)}(hjph]hconst struct i2c_client *client}(hhhjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKGhjhubh definition)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jfhjhKGhjcubjg)}(h2``char *buf`` Where to store data read from slave h](jm)}(h ``char *buf``h]h)}(hjh]h char *buf}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKHhjubj)}(hhh]h)}(h#Where to store data read from slaveh]h#Where to store data read from slave}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKHhjcubjg)}(hQ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 h](jm)}(h ``int count``h]h)}(hjh]h int count}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKIhjubj)}(hhh]h)}(hBHow many bytes to read, must be less than 64k since msg.len is u16h]hBHow many bytes to read, must be less than 64k since msg.len is u16}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKIhjcubeh}(h]h ]h"]h$]h&]uh1jahjCubh)}(h**Description**h]jL)}(hjh]h Description}(hhhj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKKhjCubh)}(h9Returns negative errno, or else the number of bytes read.h]h9Returns negative errno, or else the number of bytes read.}(hj7hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKKhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$i2c_master_recv_dmasafe (C function)c.i2c_master_recv_dmasafehNtauh1jhhhhhNhNubj)}(hhh](j)}(hSint i2c_master_recv_dmasafe (const struct i2c_client *client, char *buf, int count)h]j)}(hRint i2c_master_recv_dmasafe(const struct i2c_client *client, char *buf, int count)h](j)}(hinth]hint}(hhhjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKUubj)}(h h]h }(hhhjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhKUubj)}(hi2c_master_recv_dmasafeh]j)}(hi2c_master_recv_dmasafeh]hi2c_master_recv_dmasafe}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj`hhhjrhKUubj)}(h7(const struct i2c_client *client, char *buf, int count)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]jS)}jFjsbc.i2c_master_recv_dmasafeasbuh1hhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubj)}(hclienth]hclient}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char *bufh](j)}(hcharh]hchar}(hhhj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hhhj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjg)}(hjjh]h*}(hhhjJhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj*ubj)}(hbufh]hbuf}(hhhjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](j)}(hinth]hint}(hhhjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hhhj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hcounth]hcount}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj`hhhjrhKUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhjrhKUubah}(h]jWah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhK\hjYhhubj)}(hhh]h)}(hIissue a single I2C message in master receive mode using a DMA safe bufferh]hIissue a single I2C message in master receive mode using a DMA safe buffer}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKThjhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhKUubeh}(h]h ](j functioneh"]h$]h&]j=j j>jj?jj@uh1jhhhhhNhNubjB)}(hX?**Parameters** ``const struct i2c_client *client`` Handle to slave device ``char *buf`` Where to store data read from slave, must be safe to use with DMA ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 **Description** Returns negative errno, or else the number of bytes read.h](h)}(h**Parameters**h]jL)}(hjh]h Parameters}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKXhjubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKVhjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKVhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj hKVhjubjg)}(hP``char *buf`` Where to store data read from slave, must be safe to use with DMA h](jm)}(h ``char *buf``h]h)}(hj1h]h char *buf}(hhhj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKWhj+ubj)}(hhh]h)}(hAWhere to store data read from slave, must be safe to use with DMAh]hAWhere to store data read from slave, must be safe to use with DMA}(hjLhjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKWhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jfhjFhKWhjubjg)}(hQ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 h](jm)}(h ``int count``h]h)}(hjjh]h int count}(hhhjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKXhjdubj)}(hhh]h)}(hBHow many bytes to read, must be less than 64k since msg.len is u16h]hBHow many bytes to read, must be less than 64k since msg.len is u16}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKXhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jfhjhKXhjubeh}(h]h ]h"]h$]h&]uh1jahjubh)}(h**Description**h]jL)}(hjh]h Description}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKZhjubh)}(h9Returns negative errno, or else the number of bytes read.h]h9Returns negative errno, or else the number of bytes read.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKZhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_master_send (C function)c.i2c_master_sendhNtauh1jhhhhhNhNubj)}(hhh](j)}(hQint i2c_master_send (const struct i2c_client *client, const char *buf, int count)h]j)}(hPint i2c_master_send(const struct i2c_client *client, const char *buf, int count)h](j)}(hinth]hint}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKeubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKeubj)}(hi2c_master_sendh]j)}(hi2c_master_sendh]hi2c_master_send}(hhhj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKeubj)}(h=(const struct i2c_client *client, const char *buf, int count)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hhhj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hjh]hstruct}(hhhjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hhhjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjbmodnameN classnameNjJjM)}jP]jS)}jFj sbc.i2c_master_sendasbuh1hhj#ubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj#ubj)}(hclienth]hclient}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *bufh](j)}(hjh]hconst}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubj)}(hbufh]hbuf}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](j)}(hinth]hint}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hcounth]hcount}(hhhj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKeubah}(h]jah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKkhjhhubj)}(hhh]h)}(h2issue a single I2C message in master transmit modeh]h2issue a single I2C message in master transmit mode}(hjZhjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKdhjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKeubeh}(h]h ](j functioneh"]h$]h&]j=j j>jpj?jpj@uh1jhhhhhNhNubjB)}(hX.**Parameters** ``const struct i2c_client *client`` Handle to slave device ``const char *buf`` Data that will be written to the slave ``int count`` How many bytes to write, must be less than 64k since msg.len is u16 **Description** Returns negative errno, or else the number of bytes written.h](h)}(h**Parameters**h]jL)}(hjzh]h Parameters}(hhhj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjxubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhjtubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKehjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKehjubjg)}(h;``const char *buf`` Data that will be written to the slave h](jm)}(h``const char *buf``h]h)}(hjh]hconst char *buf}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKfhjubj)}(hhh]h)}(h&Data that will be written to the slaveh]h&Data that will be written to the slave}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKfhjubjg)}(hR``int count`` How many bytes to write, must be less than 64k since msg.len is u16 h](jm)}(h ``int count``h]h)}(hj h]h int count}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKghj ubj)}(hhh]h)}(hCHow many bytes to write, must be less than 64k since msg.len is u16h]hCHow many bytes to write, must be less than 64k since msg.len is u16}(hj& hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKghj! ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jfhj hKghjubeh}(h]h ]h"]h$]h&]uh1jahjtubh)}(h**Description**h]jL)}(hjF h]h Description}(hhhjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjD ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKihjtubh)}(hj j?j j@uh1jhhhhhNhNubjB)}(hXL**Parameters** ``const struct i2c_client *client`` Handle to slave device ``const char *buf`` Data that will be written to the slave, must be safe to use with DMA ``int count`` How many bytes to write, must be less than 64k since msg.len is u16 **Description** Returns negative errno, or else the number of bytes written.h](h)}(h**Parameters**h]jL)}(hj h]h Parameters}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKvhj ubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hj: h]hconst struct i2c_client *client}(hhhj< hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8 ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKthj4 ubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjU hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO hKthjP ubah}(h]h ]h"]h$]h&]uh1jhj4 ubeh}(h]h ]h"]h$]h&]uh1jfhjO hKthj1 ubjg)}(hY``const char *buf`` Data that will be written to the slave, must be safe to use with DMA h](jm)}(h``const char *buf``h]h)}(hjs h]hconst char *buf}(hhhju hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKuhjm ubj)}(hhh]h)}(hDData that will be written to the slave, must be safe to use with DMAh]hDData that will be written to the slave, must be safe to use with DMA}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKuhj ubah}(h]h ]h"]h$]h&]uh1jhjm ubeh}(h]h ]h"]h$]h&]uh1jfhj hKuhj1 ubjg)}(hR``int count`` How many bytes to write, must be less than 64k since msg.len is u16 h](jm)}(h ``int count``h]h)}(hj h]h int count}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKvhj ubj)}(hhh]h)}(hCHow many bytes to write, must be less than 64k since msg.len is u16h]hCHow many bytes to write, must be less than 64k since msg.len is u16}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKvhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jfhj hKvhj1 ubeh}(h]h ]h"]h$]h&]uh1jahj ubh)}(h**Description**h]jL)}(hj h]h Description}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKxhj ubh)}(hj j?j j@uh1jhhhhhNhNubjB)}(hX**Definition**:: struct i2c_device_identity { u16 manufacturer_id; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS 0; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_1 1; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_2 2; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_3 3; #define I2C_DEVICE_ID_RAMTRON_INTERNATIONAL 4; #define I2C_DEVICE_ID_ANALOG_DEVICES 5; #define I2C_DEVICE_ID_STMICROELECTRONICS 6; #define I2C_DEVICE_ID_ON_SEMICONDUCTOR 7; #define I2C_DEVICE_ID_SPRINTEK_CORPORATION 8; #define I2C_DEVICE_ID_ESPROS_PHOTONICS_AG 9; #define I2C_DEVICE_ID_FUJITSU_SEMICONDUCTOR 10; #define I2C_DEVICE_ID_FLIR 11; #define I2C_DEVICE_ID_O2MICRO 12; #define I2C_DEVICE_ID_ATMEL 13; #define I2C_DEVICE_ID_NONE 0xffff; u16 part_id; u8 die_revision; }; **Members** ``manufacturer_id`` 0 - 4095, database maintained by NXP ``part_id`` 0 - 511, according to manufacturer ``die_revision`` 0 - 7, according to manufacturerh](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj ubh:}(h:hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj ubh literal_block)}(hXstruct i2c_device_identity { u16 manufacturer_id; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS 0; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_1 1; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_2 2; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_3 3; #define I2C_DEVICE_ID_RAMTRON_INTERNATIONAL 4; #define I2C_DEVICE_ID_ANALOG_DEVICES 5; #define I2C_DEVICE_ID_STMICROELECTRONICS 6; #define I2C_DEVICE_ID_ON_SEMICONDUCTOR 7; #define I2C_DEVICE_ID_SPRINTEK_CORPORATION 8; #define I2C_DEVICE_ID_ESPROS_PHOTONICS_AG 9; #define I2C_DEVICE_ID_FUJITSU_SEMICONDUCTOR 10; #define I2C_DEVICE_ID_FLIR 11; #define I2C_DEVICE_ID_O2MICRO 12; #define I2C_DEVICE_ID_ATMEL 13; #define I2C_DEVICE_ID_NONE 0xffff; u16 part_id; u8 die_revision; };h]hXstruct i2c_device_identity { u16 manufacturer_id; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS 0; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_1 1; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_2 2; #define I2C_DEVICE_ID_NXP_SEMICONDUCTORS_3 3; #define I2C_DEVICE_ID_RAMTRON_INTERNATIONAL 4; #define I2C_DEVICE_ID_ANALOG_DEVICES 5; #define I2C_DEVICE_ID_STMICROELECTRONICS 6; #define I2C_DEVICE_ID_ON_SEMICONDUCTOR 7; #define I2C_DEVICE_ID_SPRINTEK_CORPORATION 8; #define I2C_DEVICE_ID_ESPROS_PHOTONICS_AG 9; #define I2C_DEVICE_ID_FUJITSU_SEMICONDUCTOR 10; #define I2C_DEVICE_ID_FLIR 11; #define I2C_DEVICE_ID_O2MICRO 12; #define I2C_DEVICE_ID_ATMEL 13; #define I2C_DEVICE_ID_NONE 0xffff; u16 part_id; u8 die_revision; };}(hhhj ubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj ubh)}(h **Members**h]jL)}(hj h]hMembers}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj ubjb)}(hhh](jg)}(h9``manufacturer_id`` 0 - 4095, database maintained by NXP h](jm)}(h``manufacturer_id``h]h)}(hj h]hmanufacturer_id}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj ubj)}(hhh]h)}(h$0 - 4095, database maintained by NXPh]h$0 - 4095, database maintained by NXP}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jfhj hKhj ubjg)}(h/``part_id`` 0 - 511, according to manufacturer h](jm)}(h ``part_id``h]h)}(hj h]hpart_id}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj ubj)}(hhh]h)}(h"0 - 511, according to manufacturerh]h"0 - 511, according to manufacturer}(hj3 hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj- hKhj. ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jfhj- hKhj ubjg)}(h1``die_revision`` 0 - 7, according to manufacturerh](jm)}(h``die_revision``h]h)}(hjQ h]h die_revision}(hhhjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjK ubj)}(hhh]h)}(h 0 - 7, according to manufacturerh]h 0 - 7, according to manufacturer}(hjl hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjg ubah}(h]h ]h"]h$]h&]uh1jhjK ubeh}(h]h ]h"]h$]h&]uh1jfhjf hKhj ubeh}(h]h ]h"]h$]h&]uh1jahj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_driver_flags (C enum)c.i2c_driver_flagshNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_driver_flagsh]j)}(henum i2c_driver_flagsh](j)}(henumh]henum}(hhhj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKubj)}(h h]h }(hhhj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKubj)}(hi2c_driver_flagsh]j)}(hj h]hi2c_driver_flags}(hhhj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj hhubj)}(hhh]h)}(hFlags for an I2C device driverh]hFlags for an I2C device driver}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](j enumeh"]h$]h&]j=j j>jj?jj@uh1jhhhhhNhNubjB)}(h[**Constants** ``I2C_DRV_ACPI_WAIVE_D0_PROBE`` Don't put the device in D0 state for probeh](h)}(h **Constants**h]jL)}(hjh]h Constants}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj ubjb)}(hhh]jg)}(hJ``I2C_DRV_ACPI_WAIVE_D0_PROBE`` Don't put the device in D0 state for probeh](jm)}(h``I2C_DRV_ACPI_WAIVE_D0_PROBE``h]h)}(hj0h]hI2C_DRV_ACPI_WAIVE_D0_PROBE}(hhhj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj*ubj)}(hhh]h)}(h*Don't put the device in D0 state for probeh]h,Don’t put the device in D0 state for probe}(hjKhjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jfhjEhKhj'ubah}(h]h ]h"]h$]h&]uh1jahj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_driver (C struct) c.i2c_driverhNtauh1jhhhhhNhNubj)}(hhh](j)}(h i2c_driverh]j)}(hstruct i2c_driverh](j)}(hjh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(h i2c_driverh]j)}(hjh]h i2c_driver}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]j}ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjhhubj)}(hhh]h)}(hrepresent an I2C device driverh]hrepresent an I2C device driver}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j structeh"]h$]h&]j=j j>jj?jj@uh1jhhhhhNhNubjB)}(hXJ**Definition**:: struct i2c_driver { unsigned int class; int (*probe)(struct i2c_client *client); void (*remove)(struct i2c_client *client); void (*shutdown)(struct i2c_client *client); void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol, unsigned int data); int (*command)(struct i2c_client *client, unsigned int cmd, void *arg); struct device_driver driver; const struct i2c_device_id *id_table; int (*detect)(struct i2c_client *client, struct i2c_board_info *info); const unsigned short *address_list; struct list_head clients; u32 flags; }; **Members** ``class`` What kind of i2c device we instantiate (for detect) ``probe`` Callback for device binding ``remove`` Callback for device unbinding ``shutdown`` Callback for device shutdown ``alert`` Alert callback, for example for the SMBus alert protocol ``command`` Callback for bus-wide signaling (optional) ``driver`` Device driver model driver ``id_table`` List of I2C devices supported by this driver ``detect`` Callback for device detection ``address_list`` The I2C addresses to probe (for detect) ``clients`` List of detected clients we created (for i2c-core use only) ``flags`` A bitmask of flags defined in :c:type:`enum i2c_driver_flags `h](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubh:}(hj hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj )}(hXUstruct i2c_driver { unsigned int class; int (*probe)(struct i2c_client *client); void (*remove)(struct i2c_client *client); void (*shutdown)(struct i2c_client *client); void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol, unsigned int data); int (*command)(struct i2c_client *client, unsigned int cmd, void *arg); struct device_driver driver; const struct i2c_device_id *id_table; int (*detect)(struct i2c_client *client, struct i2c_board_info *info); const unsigned short *address_list; struct list_head clients; u32 flags; };h]hXUstruct i2c_driver { unsigned int class; int (*probe)(struct i2c_client *client); void (*remove)(struct i2c_client *client); void (*shutdown)(struct i2c_client *client); void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol, unsigned int data); int (*command)(struct i2c_client *client, unsigned int cmd, void *arg); struct device_driver driver; const struct i2c_device_id *id_table; int (*detect)(struct i2c_client *client, struct i2c_board_info *info); const unsigned short *address_list; struct list_head clients; u32 flags; };}(hhhj ubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubh)}(h **Members**h]jL)}(hjh]hMembers}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubjb)}(hhh](jg)}(h>``class`` What kind of i2c device we instantiate (for detect) h](jm)}(h ``class``h]h)}(hj:h]hclass}(hhhj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj4ubj)}(hhh]h)}(h3What kind of i2c device we instantiate (for detect)h]h3What kind of i2c device we instantiate (for detect)}(hjUhjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jfhjOhKhj1ubjg)}(h&``probe`` Callback for device binding h](jm)}(h ``probe``h]h)}(hjsh]hprobe}(hhhjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjmubj)}(hhh]h)}(hCallback for device bindingh]hCallback for device binding}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj1ubjg)}(h)``remove`` Callback for device unbinding h](jm)}(h ``remove``h]h)}(hjh]hremove}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hCallback for device unbindingh]hCallback for device unbinding}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj1ubjg)}(h*``shutdown`` Callback for device shutdown h](jm)}(h ``shutdown``h]h)}(hjh]hshutdown}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hCallback for device shutdownh]hCallback for device shutdown}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj1ubjg)}(hC``alert`` Alert callback, for example for the SMBus alert protocol h](jm)}(h ``alert``h]h)}(hjh]halert}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(h8Alert callback, for example for the SMBus alert protocolh]h8Alert callback, for example for the SMBus alert protocol}(hj9hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj3hKhj1ubjg)}(h7``command`` Callback for bus-wide signaling (optional) h](jm)}(h ``command``h]h)}(hjWh]hcommand}(hhhjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjQubj)}(hhh]h)}(h*Callback for bus-wide signaling (optional)h]h*Callback for bus-wide signaling (optional)}(hjrhjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jfhjlhKhj1ubjg)}(h&``driver`` Device driver model driver h](jm)}(h ``driver``h]h)}(hjh]hdriver}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hDevice driver model driverh]hDevice driver model driver}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj1ubjg)}(h:``id_table`` List of I2C devices supported by this driver h](jm)}(h ``id_table``h]h)}(hjh]hid_table}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(h,List of I2C devices supported by this driverh]h,List of I2C devices supported by this driver}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj1ubjg)}(h)``detect`` Callback for device detection h](jm)}(h ``detect``h]h)}(hjh]hdetect}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hCallback for device detectionh]hCallback for device detection}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj1ubjg)}(h9``address_list`` The I2C addresses to probe (for detect) h](jm)}(h``address_list``h]h)}(hj;h]h address_list}(hhhj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj5ubj)}(hhh]h)}(h'The I2C addresses to probe (for detect)h]h'The I2C addresses to probe (for detect)}(hjVhjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jfhjPhKhj1ubjg)}(hH``clients`` List of detected clients we created (for i2c-core use only) h](jm)}(h ``clients``h]h)}(hjth]hclients}(hhhjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjnubj)}(hhh]h)}(h;List of detected clients we created (for i2c-core use only)h]h;List of detected clients we created (for i2c-core use only)}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj1ubjg)}(hZ``flags`` A bitmask of flags defined in :c:type:`enum i2c_driver_flags `h](jm)}(h ``flags``h]h)}(hjh]hflags}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hPA bitmask of flags defined in :c:type:`enum i2c_driver_flags `h](hA bitmask of flags defined in }(hA bitmask of flags defined in hjhhhNhNubh)}(h2:c:type:`enum i2c_driver_flags `h]h)}(hjh]henum i2c_driver_flags}(hhhjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarn c:parent_keyjM)}jP]sbji2c_driver_flagsuh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj1ubeh}(h]h ]h"]h$]h&]uh1jahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubh)}(h**Description**h]jL)}(hjh]h Description}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhhhubh)}(hThe driver.owner field should be set to the module owner of this driver. The driver.name field should be set to the name of this driver.h]hThe driver.owner field should be set to the module owner of this driver. The driver.name field should be set to the name of this driver.}(hj,hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhhhubh)}(hXZFor automatic device detection, both **detect** and **address_list** must be defined. **class** should also be set, otherwise only devices forced with module parameters will be created. The detect function must fill at least the name field of the i2c_board_info structure it is handed upon successful detection, and possibly also the flags field.h](h%For automatic device detection, both }(h%For automatic device detection, both hj9hhhNhNubjL)}(h **detect**h]hdetect}(hhhjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj9ubh and }(h and hj9hhhNhNubjL)}(h**address_list**h]h address_list}(hhhjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj9ubh must be defined. }(h must be defined. hj9hhhNhNubjL)}(h **class**h]hclass}(hhhjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj9ubh should also be set, otherwise only devices forced with module parameters will be created. The detect function must fill at least the name field of the i2c_board_info structure it is handed upon successful detection, and possibly also the flags field.}(h should also be set, otherwise only devices forced with module parameters will be created. The detect function must fill at least the name field of the i2c_board_info structure it is handed upon successful detection, and possibly also the flags field.hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhhhubh)}(hXIf **detect** is missing, the driver will still work fine for enumerated devices. Detected devices simply won't be supported. This is expected for the many I2C/SMBus devices which can't be detected reliably, and the ones which can always be enumerated in practice. h](hIf }(hIf hjhhhNhNubjL)}(h **detect**h]hdetect}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubh is missing, the driver will still work fine for enumerated devices. Detected devices simply won’t be supported. This is expected for the many I2C/SMBus devices which can’t be detected reliably, and the ones which can always be enumerated in practice.}(h is missing, the driver will still work fine for enumerated devices. Detected devices simply won't be supported. This is expected for the many I2C/SMBus devices which can't be detected reliably, and the ones which can always be enumerated in practice.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXThe i2c_client structure which is handed to the **detect** callback is not a real i2c_client. It is initialized just enough so that you can call i2c_smbus_read_byte_data and friends on it. Don't do anything else with it. In particular, calling dev_dbg and friends on it is not allowed.h](h0The i2c_client structure which is handed to the }(h0The i2c_client structure which is handed to the hjhhhNhNubjL)}(h **detect**h]hdetect}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubh callback is not a real i2c_client. It is initialized just enough so that you can call i2c_smbus_read_byte_data and friends on it. Don’t do anything else with it. In particular, calling dev_dbg and friends on it is not allowed.}(h callback is not a real i2c_client. It is initialized just enough so that you can call i2c_smbus_read_byte_data and friends on it. Don't do anything else with it. In particular, calling dev_dbg and friends on it is not allowed.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_client (C struct) c.i2c_clienthNtauh1jhhhhhNhNubj)}(hhh](j)}(h i2c_clienth]j)}(hstruct i2c_clienth](j)}(hjh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM7ubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM7ubj)}(h i2c_clienth]j)}(hjh]h i2c_client}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM7ubah}(h]jah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjhhubj)}(hhh]h)}(hrepresent an I2C slave deviceh]hrepresent an I2C slave device}(hj&hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM6hj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](j structeh"]h$]h&]j=j j>j<j?j<j@uh1jhhhhhNhNubjB)}(hX**Definition**:: struct i2c_client { unsigned short flags; #define I2C_CLIENT_PEC 0x04 ; #define I2C_CLIENT_TEN 0x10 ; #define I2C_CLIENT_SLAVE 0x20 ; #define I2C_CLIENT_HOST_NOTIFY 0x40 ; #define I2C_CLIENT_WAKE 0x80 ; #define I2C_CLIENT_SCCB 0x9000 ; unsigned short addr; char name[I2C_NAME_SIZE]; struct i2c_adapter *adapter; struct device dev; int init_irq; int irq; struct list_head detected; #if IS_ENABLED(CONFIG_I2C_SLAVE); i2c_slave_cb_t slave_cb; #endif; void *devres_group_id; }; **Members** ``flags`` see I2C_CLIENT_* for possible flags ``addr`` Address used on the I2C bus connected to the parent adapter. ``name`` Indicates the type of the device, usually a chip name that's generic enough to hide second-sourcing and compatible revisions. ``adapter`` manages the bus segment hosting this I2C device ``dev`` Driver model device node for the slave. ``init_irq`` IRQ that was set at initialization ``irq`` indicates the IRQ generated by this device (if any) ``detected`` member of an i2c_driver.clients list or i2c-core's userspace_devices list ``slave_cb`` Callback when I2C slave mode of an adapter is used. The adapter calls it to pass on slave events to the slave driver. ``devres_group_id`` id of the devres group that will be created for resources acquired when probing this device.h](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjDubh:}(hj hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM:hj@ubj )}(hX;struct i2c_client { unsigned short flags; #define I2C_CLIENT_PEC 0x04 ; #define I2C_CLIENT_TEN 0x10 ; #define I2C_CLIENT_SLAVE 0x20 ; #define I2C_CLIENT_HOST_NOTIFY 0x40 ; #define I2C_CLIENT_WAKE 0x80 ; #define I2C_CLIENT_SCCB 0x9000 ; unsigned short addr; char name[I2C_NAME_SIZE]; struct i2c_adapter *adapter; struct device dev; int init_irq; int irq; struct list_head detected; #if IS_ENABLED(CONFIG_I2C_SLAVE); i2c_slave_cb_t slave_cb; #endif; void *devres_group_id; };h]hX;struct i2c_client { unsigned short flags; #define I2C_CLIENT_PEC 0x04 ; #define I2C_CLIENT_TEN 0x10 ; #define I2C_CLIENT_SLAVE 0x20 ; #define I2C_CLIENT_HOST_NOTIFY 0x40 ; #define I2C_CLIENT_WAKE 0x80 ; #define I2C_CLIENT_SCCB 0x9000 ; unsigned short addr; char name[I2C_NAME_SIZE]; struct i2c_adapter *adapter; struct device dev; int init_irq; int irq; struct list_head detected; #if IS_ENABLED(CONFIG_I2C_SLAVE); i2c_slave_cb_t slave_cb; #endif; void *devres_group_id; };}(hhhjaubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM<hj@ubh)}(h **Members**h]jL)}(hjrh]hMembers}(hhhjthhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjpubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMQhj@ubjb)}(hhh](jg)}(h.``flags`` see I2C_CLIENT_* for possible flags h](jm)}(h ``flags``h]h)}(hjh]hflags}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM8hjubj)}(hhh]h)}(h#see I2C_CLIENT_* for possible flagsh]h#see I2C_CLIENT_* for possible flags}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhM8hjubjg)}(hF``addr`` Address used on the I2C bus connected to the parent adapter. h](jm)}(h``addr``h]h)}(hjh]haddr}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM9hjubj)}(hhh]h)}(h
hjubj)}(hhh]h)}(h"IRQ that was set at initializationh]h"IRQ that was set at initialization}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhM>hjubjg)}(h<``irq`` indicates the IRQ generated by this device (if any) h](jm)}(h``irq``h]h)}(hjh]hirq}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM?hjubj)}(hhh]h)}(h3indicates the IRQ generated by this device (if any)h]h3indicates the IRQ generated by this device (if any)}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhM?hjubjg)}(hW``detected`` member of an i2c_driver.clients list or i2c-core's userspace_devices list h](jm)}(h ``detected``h]h)}(hj!h]hdetected}(hhhj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMAhjubj)}(hhh]h)}(hImember of an i2c_driver.clients list or i2c-core's userspace_devices listh]hKmember of an i2c_driver.clients list or i2c-core’s userspace_devices list}(hj<hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM@hj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj6hMAhjubjg)}(h``slave_cb`` Callback when I2C slave mode of an adapter is used. The adapter calls it to pass on slave events to the slave driver. h](jm)}(h ``slave_cb``h]h)}(hj[h]hslave_cb}(hhhj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMChjUubj)}(hhh]h)}(huCallback when I2C slave mode of an adapter is used. The adapter calls it to pass on slave events to the slave driver.h]huCallback when I2C slave mode of an adapter is used. The adapter calls it to pass on slave events to the slave driver.}(hjvhjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMBhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jfhjphMChjubjg)}(hp``devres_group_id`` id of the devres group that will be created for resources acquired when probing this device.h](jm)}(h``devres_group_id``h]h)}(hjh]hdevres_group_id}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMDhjubj)}(hhh]h)}(h\id of the devres group that will be created for resources acquired when probing this device.h]h\id of the devres group that will be created for resources acquired when probing this device.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMDhjubeh}(h]h ]h"]h$]h&]uh1jahj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubh)}(h**Description**h]jL)}(hjh]h Description}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMHhhhhubh)}(hAn i2c_client identifies a single device (i.e. chip) connected to an i2c bus. The behaviour exposed to Linux is defined by the driver managing the device.h]hAn i2c_client identifies a single device (i.e. chip) connected to an i2c bus. The behaviour exposed to Linux is defined by the driver managing the device.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMFhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_board_info (C struct)c.i2c_board_infohNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_board_infoh]j)}(hstruct i2c_board_infoh](j)}(hjh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubj)}(h h]h }(hhhj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMubj)}(hi2c_board_infoh]j)}(hjh]hi2c_board_info}(hhhj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj"hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hMubah}(h]jah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMMhj hhubj)}(hhh]h)}(htemplate for device creationh]htemplate for device creation}(hjZhjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjUhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMubeh}(h]h ](j structeh"]h$]h&]j=j j>jpj?jpj@uh1jhhhhhNhNubjB)}(hX**Definition**:: struct i2c_board_info { char type[I2C_NAME_SIZE]; unsigned short flags; unsigned short addr; const char *dev_name; void *platform_data; struct device_node *of_node; struct fwnode_handle *fwnode; const struct software_node *swnode; const struct resource *resources; unsigned int num_resources; int irq; }; **Members** ``type`` chip type, to initialize i2c_client.name ``flags`` to initialize i2c_client.flags ``addr`` stored in i2c_client.addr ``dev_name`` Overrides the default - dev_name if set ``platform_data`` stored in i2c_client.dev.platform_data ``of_node`` pointer to OpenFirmware device node ``fwnode`` device node supplied by the platform firmware ``swnode`` software node for the device ``resources`` resources associated with the device ``num_resources`` number of resources in the **resources** array ``irq`` stored in i2c_client.irqh](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjxubh:}(hj hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjtubj )}(hXfstruct i2c_board_info { char type[I2C_NAME_SIZE]; unsigned short flags; unsigned short addr; const char *dev_name; void *platform_data; struct device_node *of_node; struct fwnode_handle *fwnode; const struct software_node *swnode; const struct resource *resources; unsigned int num_resources; int irq; };h]hXfstruct i2c_board_info { char type[I2C_NAME_SIZE]; unsigned short flags; unsigned short addr; const char *dev_name; void *platform_data; struct device_node *of_node; struct fwnode_handle *fwnode; const struct software_node *swnode; const struct resource *resources; unsigned int num_resources; int irq; };}(hhhjubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjtubh)}(h **Members**h]jL)}(hjh]hMembers}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjtubjb)}(hhh](jg)}(h2``type`` chip type, to initialize i2c_client.name h](jm)}(h``type``h]h)}(hjh]htype}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h(chip type, to initialize i2c_client.nameh]h(chip type, to initialize i2c_client.name}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(h)``flags`` to initialize i2c_client.flags h](jm)}(h ``flags``h]h)}(hjh]hflags}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hto initialize i2c_client.flagsh]hto initialize i2c_client.flags}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(h#``addr`` stored in i2c_client.addr h](jm)}(h``addr``h]h)}(hj7h]haddr}(hhhj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj1ubj)}(hhh]h)}(hstored in i2c_client.addrh]hstored in i2c_client.addr}(hjRhjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jfhjLhMhjubjg)}(hB``dev_name`` Overrides the default - dev_name if set h](jm)}(h ``dev_name``h]h)}(hjph]hdev_name}(hhhjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjjubj)}(hhh]h)}(h4Overrides the default - dev_name if seth]h4Overrides the default - dev_name if set}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(h9``platform_data`` stored in i2c_client.dev.platform_data h](jm)}(h``platform_data``h]h)}(hjh]h platform_data}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h&stored in i2c_client.dev.platform_datah]h&stored in i2c_client.dev.platform_data}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(h0``of_node`` pointer to OpenFirmware device node h](jm)}(h ``of_node``h]h)}(hjh]hof_node}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h#pointer to OpenFirmware device nodeh]h#pointer to OpenFirmware device node}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(h9``fwnode`` device node supplied by the platform firmware h](jm)}(h ``fwnode``h]h)}(hjh]hfwnode}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h-device node supplied by the platform firmwareh]h-device node supplied by the platform firmware}(hj6hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj0hMhjubjg)}(h(``swnode`` software node for the device h](jm)}(h ``swnode``h]h)}(hjTh]hswnode}(hhhjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjNubj)}(hhh]h)}(hsoftware node for the deviceh]hsoftware node for the device}(hjohjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jfhjihMhjubjg)}(h3``resources`` resources associated with the device h](jm)}(h ``resources``h]h)}(hjh]h resources}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h$resources associated with the deviceh]h$resources associated with the device}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(hA``num_resources`` number of resources in the **resources** array h](jm)}(h``num_resources``h]h)}(hjh]h num_resources}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h.number of resources in the **resources** arrayh](hnumber of resources in the }(hnumber of resources in the hjhhhNhNubjL)}(h **resources**h]h resources}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubh array}(h arrayhjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(h ``irq`` stored in i2c_client.irqh](jm)}(h``irq``h]h)}(hjh]hirq}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj ubj)}(hhh]h)}(hstored in i2c_client.irqh]hstored in i2c_client.irq}(hj.hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jfhj(hMhjubeh}(h]h ]h"]h$]h&]uh1jahjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubh)}(h**Description**h]jL)}(hjVh]h Description}(hhhjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjTubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXI2C doesn't actually support hardware probing, although controllers and devices may be able to use I2C_SMBUS_QUICK to tell whether or not there's a device at a given address. Drivers commonly need more information than that, such as chip type, configuration, associated IRQ, and so on.h]hX"I2C doesn’t actually support hardware probing, although controllers and devices may be able to use I2C_SMBUS_QUICK to tell whether or not there’s a device at a given address. Drivers commonly need more information than that, such as chip type, configuration, associated IRQ, and so on.}(hjnhjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXwi2c_board_info is used to build tables of information listing I2C devices that are present. This information is used to grow the driver model tree. For mainboards this is done statically using i2c_register_board_info(); bus numbers identify adapters that aren't yet available. For add-on boards, i2c_new_client_device() does this dynamically with the adapter already known.h]hXyi2c_board_info is used to build tables of information listing I2C devices that are present. This information is used to grow the driver model tree. For mainboards this is done statically using i2c_register_board_info(); bus numbers identify adapters that aren’t yet available. For add-on boards, i2c_new_client_device() does this dynamically with the adapter already known.}(hj}hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jI2C_BOARD_INFO (C macro)c.I2C_BOARD_INFOhNtauh1jhhhhhNhNubj)}(hhh](j)}(hI2C_BOARD_INFOh]j)}(hI2C_BOARD_INFOh]j)}(hI2C_BOARD_INFOh]j)}(hjh]hI2C_BOARD_INFO}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j macroeh"]h$]h&]j=j j>jj?jj@uh1jhhhhhNhNubh)}(h'``I2C_BOARD_INFO (dev_type, dev_addr)``h]h)}(hjh]h#I2C_BOARD_INFO (dev_type, dev_addr)}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh block_quote)}(hhh]h)}(h0macro used to list an i2c device and its addressh]h0macro used to list an i2c device and its address}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubah}(h]h ]h"]h$]h&]uh1jhhhhhNhNubjB)}(hXl**Parameters** ``dev_type`` identifies the device type ``dev_addr`` the device's address on the bus. **Description** This macro initializes essential fields of a struct i2c_board_info, declaring what has been provided on a particular board. Optional fields (such as associated irq, or device-specific platform_data) are provided using conventional syntax.h](h)}(h**Parameters**h]jL)}(hjh]h Parameters}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj ubjb)}(hhh](jg)}(h(``dev_type`` identifies the device type h](jm)}(h ``dev_type``h]h)}(hj/h]hdev_type}(hhhj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj)ubj)}(hhh]h)}(hidentifies the device typeh]hidentifies the device type}(hjJhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jfhjDhMhj&ubjg)}(h.``dev_addr`` the device's address on the bus. h](jm)}(h ``dev_addr``h]h)}(hjhh]hdev_addr}(hhhjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjbubj)}(hhh]h)}(h the device's address on the bus.h]h"the device’s address on the bus.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jfhj}hMhj&ubeh}(h]h ]h"]h$]h&]uh1jahj ubh)}(h**Description**h]jL)}(hjh]h Description}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj ubh)}(hThis macro initializes essential fields of a struct i2c_board_info, declaring what has been provided on a particular board. Optional fields (such as associated irq, or device-specific platform_data) are provided using conventional syntax.h]hThis macro initializes essential fields of a struct i2c_board_info, declaring what has been provided on a particular board. Optional fields (such as associated irq, or device-specific platform_data) are provided using conventional syntax.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_algorithm (C struct)c.i2c_algorithmhNtauh1jhhhhhNhNubj)}(hhh](j)}(h i2c_algorithmh]j)}(hstruct i2c_algorithmh](j)}(hjh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h i2c_algorithmh]j)}(hjh]h i2c_algorithm}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjhhubj)}(hhh]h)}(hrepresent I2C transfer methodh]hrepresent I2C transfer method}(hj-hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j structeh"]h$]h&]j=j j>jCj?jCj@uh1jhhhhhNhNubjB)}(hX**Definition**:: struct i2c_algorithm { int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*smbus_xfer)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); int (*smbus_xfer_atomic)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); u32 (*functionality)(struct i2c_adapter *adap); #if IS_ENABLED(CONFIG_I2C_SLAVE); int (*reg_slave)(struct i2c_client *client); int (*unreg_slave)(struct i2c_client *client); #endif; }; **Members** ``master_xfer`` Issue a set of i2c transactions to the given I2C adapter defined by the msgs array, with num messages available to transfer via the adapter specified by adap. ``master_xfer_atomic`` same as **master_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. ``smbus_xfer`` Issue smbus transactions to the given I2C adapter. If this is not present, then the bus layer will try and convert the SMBus calls into I2C transfers instead. ``smbus_xfer_atomic`` same as **smbus_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. ``functionality`` Return the flags that this algorithm/adapter pair supports from the ``I2C_FUNC_*`` flags. ``reg_slave`` Register given client to I2C slave mode of this adapter ``unreg_slave`` Unregister given client from I2C slave mode of this adapterh](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjKubh:}(hj hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjGubj )}(hXstruct i2c_algorithm { int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*smbus_xfer)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); int (*smbus_xfer_atomic)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); u32 (*functionality)(struct i2c_adapter *adap); #if IS_ENABLED(CONFIG_I2C_SLAVE); int (*reg_slave)(struct i2c_client *client); int (*unreg_slave)(struct i2c_client *client); #endif; };h]hXstruct i2c_algorithm { int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*smbus_xfer)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); int (*smbus_xfer_atomic)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); u32 (*functionality)(struct i2c_adapter *adap); #if IS_ENABLED(CONFIG_I2C_SLAVE); int (*reg_slave)(struct i2c_client *client); int (*unreg_slave)(struct i2c_client *client); #endif; };}(hhhjhubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjGubh)}(h **Members**h]jL)}(hjyh]hMembers}(hhhj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjwubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjGubjb)}(hhh](jg)}(h``master_xfer`` Issue a set of i2c transactions to the given I2C adapter defined by the msgs array, with num messages available to transfer via the adapter specified by adap. h](jm)}(h``master_xfer``h]h)}(hjh]h master_xfer}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hIssue a set of i2c transactions to the given I2C adapter defined by the msgs array, with num messages available to transfer via the adapter specified by adap.h]hIssue a set of i2c transactions to the given I2C adapter defined by the msgs array, with num messages available to transfer via the adapter specified by adap.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(h``master_xfer_atomic`` same as **master_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. h](jm)}(h``master_xfer_atomic``h]h)}(hjh]hmaster_xfer_atomic}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjubj)}(hhh]h)}(hzsame as **master_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.h](hsame as }(hsame as hjhhhNhNubjL)}(h**master_xfer**h]h master_xfer}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubhc. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.}(hc. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhM hjubjg)}(h``smbus_xfer`` Issue smbus transactions to the given I2C adapter. If this is not present, then the bus layer will try and convert the SMBus calls into I2C transfers instead. h](jm)}(h``smbus_xfer``h]h)}(hj h]h smbus_xfer}(hhhj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjubj)}(hhh]h)}(hIssue smbus transactions to the given I2C adapter. If this is not present, then the bus layer will try and convert the SMBus calls into I2C transfers instead.h]hIssue smbus transactions to the given I2C adapter. If this is not present, then the bus layer will try and convert the SMBus calls into I2C transfers instead.}(hj;hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj5hM hjubjg)}(h``smbus_xfer_atomic`` same as **smbus_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. h](jm)}(h``smbus_xfer_atomic``h]h)}(hjZh]hsmbus_xfer_atomic}(hhhj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjTubj)}(hhh]h)}(hysame as **smbus_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.h](hsame as }(hsame as hjshhhNhNubjL)}(h**smbus_xfer**h]h smbus_xfer}(hhhj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjsubhc. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.}(hc. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jfhjohMhjubjg)}(hl``functionality`` Return the flags that this algorithm/adapter pair supports from the ``I2C_FUNC_*`` flags. h](jm)}(h``functionality``h]h)}(hjh]h functionality}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hYReturn the flags that this algorithm/adapter pair supports from the ``I2C_FUNC_*`` flags.h](hDReturn the flags that this algorithm/adapter pair supports from the }(hDReturn the flags that this algorithm/adapter pair supports from the hjhhhNhNubh)}(h``I2C_FUNC_*``h]h I2C_FUNC_*}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh flags.}(h flags.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(hF``reg_slave`` Register given client to I2C slave mode of this adapter h](jm)}(h ``reg_slave``h]h)}(hjh]h reg_slave}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h7Register given client to I2C slave mode of this adapterh]h7Register given client to I2C slave mode of this adapter}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj hMhjubjg)}(hK``unreg_slave`` Unregister given client from I2C slave mode of this adapterh](jm)}(h``unreg_slave``h]h)}(hj/h]h unreg_slave}(hhhj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj)ubj)}(hhh]h)}(h;Unregister given client from I2C slave mode of this adapterh]h;Unregister given client from I2C slave mode of this adapter}(hjJhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jfhjDhMhjubeh}(h]h ]h"]h$]h&]uh1jahjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubh)}(h**Description**h]jL)}(hjrh]h Description}(hhhjthhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjpubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXThe following structs are for those who like to implement new bus drivers: i2c_algorithm is the interface to a class of hardware solutions which can be addressed using the same bus algorithms - i.e. bit-banging or the PCF8584 to name two of the most common.h]hXThe following structs are for those who like to implement new bus drivers: i2c_algorithm is the interface to a class of hardware solutions which can be addressed using the same bus algorithms - i.e. bit-banging or the PCF8584 to name two of the most common.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXThe return codes from the ``master_xfer{_atomic}`` fields should indicate the type of error code that occurred during the transfer, as documented in the Kernel Documentation file Documentation/i2c/fault-codes.rst. Otherwise, the number of messages executed should be returned.h](hThe return codes from the }(hThe return codes from the hjhhhNhNubh)}(h``master_xfer{_atomic}``h]hmaster_xfer{_atomic}}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh fields should indicate the type of error code that occurred during the transfer, as documented in the Kernel Documentation file Documentation/i2c/fault-codes.rst. Otherwise, the number of messages executed should be returned.}(h fields should indicate the type of error code that occurred during the transfer, as documented in the Kernel Documentation file Documentation/i2c/fault-codes.rst. Otherwise, the number of messages executed should be returned.hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_lock_operations (C struct)c.i2c_lock_operationshNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_lock_operationsh]j)}(hstruct i2c_lock_operationsh](j)}(hjh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM=ubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM=ubj)}(hi2c_lock_operationsh]j)}(hjh]hi2c_lock_operations}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM=ubah}(h]jah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjhhubj)}(hhh]h)}(h represent I2C locking operationsh]h represent I2C locking operations}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM<hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM=ubeh}(h]h ](j structeh"]h$]h&]j=j j>j.j?j.j@uh1jhhhhhNhNubjB)}(hX**Definition**:: struct i2c_lock_operations { void (*lock_bus)(struct i2c_adapter *adapter, unsigned int flags); int (*trylock_bus)(struct i2c_adapter *adapter, unsigned int flags); void (*unlock_bus)(struct i2c_adapter *adapter, unsigned int flags); }; **Members** ``lock_bus`` Get exclusive access to an I2C bus segment ``trylock_bus`` Try to get exclusive access to an I2C bus segment ``unlock_bus`` Release exclusive access to an I2C bus segmenth](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj6ubh:}(hj hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM@hj2ubj )}(hstruct i2c_lock_operations { void (*lock_bus)(struct i2c_adapter *adapter, unsigned int flags); int (*trylock_bus)(struct i2c_adapter *adapter, unsigned int flags); void (*unlock_bus)(struct i2c_adapter *adapter, unsigned int flags); };h]hstruct i2c_lock_operations { void (*lock_bus)(struct i2c_adapter *adapter, unsigned int flags); int (*trylock_bus)(struct i2c_adapter *adapter, unsigned int flags); void (*unlock_bus)(struct i2c_adapter *adapter, unsigned int flags); };}(hhhjSubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMBhj2ubh)}(h **Members**h]jL)}(hjdh]hMembers}(hhhjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjbubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMHhj2ubjb)}(hhh](jg)}(h8``lock_bus`` Get exclusive access to an I2C bus segment h](jm)}(h ``lock_bus``h]h)}(hjh]hlock_bus}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM>hj}ubj)}(hhh]h)}(h*Get exclusive access to an I2C bus segmenth]h*Get exclusive access to an I2C bus segment}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jfhjhM>hjzubjg)}(hB``trylock_bus`` Try to get exclusive access to an I2C bus segment h](jm)}(h``trylock_bus``h]h)}(hjh]h trylock_bus}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM?hjubj)}(hhh]h)}(h1Try to get exclusive access to an I2C bus segmenth]h1Try to get exclusive access to an I2C bus segment}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhM?hjzubjg)}(h=``unlock_bus`` Release exclusive access to an I2C bus segmenth](jm)}(h``unlock_bus``h]h)}(hjh]h unlock_bus}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM?hjubj)}(hhh]h)}(h.Release exclusive access to an I2C bus segmenth]h.Release exclusive access to an I2C bus segment}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM@hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj hM?hjzubeh}(h]h ]h"]h$]h&]uh1jahj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubh)}(h**Description**h]jL)}(hj8h]h Description}(hhhj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj6ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMChhhhubh)}(hCThe main operations are wrapped by i2c_lock_bus and i2c_unlock_bus.h]hCThe main operations are wrapped by i2c_lock_bus and i2c_unlock_bus.}(hjPhjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMAhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_timings (C struct) c.i2c_timingshNtauh1jhhhhhNhNubj)}(hhh](j)}(h i2c_timingsh]j)}(hstruct i2c_timingsh](j)}(hjh]hstruct}(hhhjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMKubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMKubj)}(h i2c_timingsh]j)}(hjph]h i2c_timings}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjrhhhjhMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMKubah}(h]jiah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMFhjkhhubj)}(hhh]h)}(hI2C timing informationh]hI2C timing information}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMKubeh}(h]h ](j structeh"]h$]h&]j=j j>jj?jj@uh1jhhhhhNhNubjB)}(hX**Definition**:: struct i2c_timings { u32 bus_freq_hz; u32 scl_rise_ns; u32 scl_fall_ns; u32 scl_int_delay_ns; u32 sda_fall_ns; u32 sda_hold_ns; u32 digital_filter_width_ns; u32 analog_filter_cutoff_freq_hz; }; **Members** ``bus_freq_hz`` the bus frequency in Hz ``scl_rise_ns`` time SCL signal takes to rise in ns; t(r) in the I2C specification ``scl_fall_ns`` time SCL signal takes to fall in ns; t(f) in the I2C specification ``scl_int_delay_ns`` time IP core additionally needs to setup SCL in ns ``sda_fall_ns`` time SDA signal takes to fall in ns; t(f) in the I2C specification ``sda_hold_ns`` time IP core additionally needs to hold SDA in ns ``digital_filter_width_ns`` width in ns of spikes on i2c lines that the IP core digital filter can filter out ``analog_filter_cutoff_freq_hz`` threshold frequency for the low pass IP core analog filterh](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubh:}(hj hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMNhjubj )}(hstruct i2c_timings { u32 bus_freq_hz; u32 scl_rise_ns; u32 scl_fall_ns; u32 scl_int_delay_ns; u32 sda_fall_ns; u32 sda_hold_ns; u32 digital_filter_width_ns; u32 analog_filter_cutoff_freq_hz; };h]hstruct i2c_timings { u32 bus_freq_hz; u32 scl_rise_ns; u32 scl_fall_ns; u32 scl_int_delay_ns; u32 sda_fall_ns; u32 sda_hold_ns; u32 digital_filter_width_ns; u32 analog_filter_cutoff_freq_hz; };}(hhhjubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMPhjubh)}(h **Members**h]jL)}(hj h]hMembers}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM[hjubjb)}(hhh](jg)}(h(``bus_freq_hz`` the bus frequency in Hz h](jm)}(h``bus_freq_hz``h]h)}(hj& h]h bus_freq_hz}(hhhj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMLhj ubj)}(hhh]h)}(hthe bus frequency in Hzh]hthe bus frequency in Hz}(hjA hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj; hMLhj< ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jfhj; hMLhj ubjg)}(hS``scl_rise_ns`` time SCL signal takes to rise in ns; t(r) in the I2C specification h](jm)}(h``scl_rise_ns``h]h)}(hj_ h]h scl_rise_ns}(hhhja hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj] ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMMhjY ubj)}(hhh]h)}(hBtime SCL signal takes to rise in ns; t(r) in the I2C specificationh]hBtime SCL signal takes to rise in ns; t(r) in the I2C specification}(hjz hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt hMMhju ubah}(h]h ]h"]h$]h&]uh1jhjY ubeh}(h]h ]h"]h$]h&]uh1jfhjt hMMhj ubjg)}(hS``scl_fall_ns`` time SCL signal takes to fall in ns; t(f) in the I2C specification h](jm)}(h``scl_fall_ns``h]h)}(hj h]h scl_fall_ns}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMNhj ubj)}(hhh]h)}(hBtime SCL signal takes to fall in ns; t(f) in the I2C specificationh]hBtime SCL signal takes to fall in ns; t(f) in the I2C specification}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMNhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jfhj hMNhj ubjg)}(hH``scl_int_delay_ns`` time IP core additionally needs to setup SCL in ns h](jm)}(h``scl_int_delay_ns``h]h)}(hj h]hscl_int_delay_ns}(hhhj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMOhj ubj)}(hhh]h)}(h2time IP core additionally needs to setup SCL in nsh]h2time IP core additionally needs to setup SCL in ns}(hj hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMOhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jfhj hMOhj ubjg)}(hS``sda_fall_ns`` time SDA signal takes to fall in ns; t(f) in the I2C specification h](jm)}(h``sda_fall_ns``h]h)}(hj !h]h sda_fall_ns}(hhhj !hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMPhj!ubj)}(hhh]h)}(hBtime SDA signal takes to fall in ns; t(f) in the I2C specificationh]hBtime SDA signal takes to fall in ns; t(f) in the I2C specification}(hj%!hj#!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMPhj !ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jfhj!hMPhj ubjg)}(hB``sda_hold_ns`` time IP core additionally needs to hold SDA in ns h](jm)}(h``sda_hold_ns``h]h)}(hjC!h]h sda_hold_ns}(hhhjE!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA!ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMQhj=!ubj)}(hhh]h)}(h1time IP core additionally needs to hold SDA in nsh]h1time IP core additionally needs to hold SDA in ns}(hj^!hj\!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX!hMQhjY!ubah}(h]h ]h"]h$]h&]uh1jhj=!ubeh}(h]h ]h"]h$]h&]uh1jfhjX!hMQhj ubjg)}(hn``digital_filter_width_ns`` width in ns of spikes on i2c lines that the IP core digital filter can filter out h](jm)}(h``digital_filter_width_ns``h]h)}(hj|!h]hdigital_filter_width_ns}(hhhj~!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz!ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMShjv!ubj)}(hhh]h)}(hQwidth in ns of spikes on i2c lines that the IP core digital filter can filter outh]hQwidth in ns of spikes on i2c lines that the IP core digital filter can filter out}(hj!hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMRhj!ubah}(h]h ]h"]h$]h&]uh1jhjv!ubeh}(h]h ]h"]h$]h&]uh1jfhj!hMShj ubjg)}(h[``analog_filter_cutoff_freq_hz`` threshold frequency for the low pass IP core analog filterh](jm)}(h ``analog_filter_cutoff_freq_hz``h]h)}(hj!h]hanalog_filter_cutoff_freq_hz}(hhhj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMThj!ubj)}(hhh]h)}(h:threshold frequency for the low pass IP core analog filterh]h:threshold frequency for the low pass IP core analog filter}(hj!hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMThj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jfhj!hMThj ubeh}(h]h ]h"]h$]h&]uh1jahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j i2c_bus_recovery_info (C struct)c.i2c_bus_recovery_infohNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_bus_recovery_infoh]j)}(hstruct i2c_bus_recovery_infoh](j)}(hjh]hstruct}(hhhj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj "hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMcubj)}(h h]h }(hhhj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj "hhhj"hMcubj)}(hi2c_bus_recovery_infoh]j)}(hj "h]hi2c_bus_recovery_info}(hhhj/"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+"ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj "hhhj"hMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj"hMcubah}(h]j"ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM[hj"hhubj)}(hhh]h)}(hI2C bus recovery informationh]hI2C bus recovery information}(hjT"hjR"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMbhjO"hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj"hMcubeh}(h]h ](j structeh"]h$]h&]j=j j>jj"j?jj"j@uh1jhhhhhNhNubjB)}(hX **Definition**:: struct i2c_bus_recovery_info { int (*recover_bus)(struct i2c_adapter *adap); int (*get_scl)(struct i2c_adapter *adap); void (*set_scl)(struct i2c_adapter *adap, int val); int (*get_sda)(struct i2c_adapter *adap); void (*set_sda)(struct i2c_adapter *adap, int val); int (*get_bus_free)(struct i2c_adapter *adap); void (*prepare_recovery)(struct i2c_adapter *adap); void (*unprepare_recovery)(struct i2c_adapter *adap); struct gpio_desc *scl_gpiod; struct gpio_desc *sda_gpiod; struct pinctrl *pinctrl; struct pinctrl_state *pins_default; struct pinctrl_state *pins_gpio; }; **Members** ``recover_bus`` Recover routine. Either pass driver's recover_bus() routine, or i2c_generic_scl_recovery(). ``get_scl`` This gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. ``set_scl`` This sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. ``get_sda`` This gets current value of SDA line. This or set_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery. ``set_sda`` This sets/clears the SDA line. This or get_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery. ``get_bus_free`` Returns the bus free state as seen from the IP core in case it has a more complex internal logic than just reading SDA. Optional. ``prepare_recovery`` This will be called before starting recovery. Platform may configure padmux here for SDA/SCL line or something else they want. ``unprepare_recovery`` This will be called after completing recovery. Platform may configure padmux here for SDA/SCL line or something else they want. ``scl_gpiod`` gpiod of the SCL line. Only required for GPIO recovery. ``sda_gpiod`` gpiod of the SDA line. Only required for GPIO recovery. ``pinctrl`` pinctrl used by GPIO recovery to change the state of the I2C pins. Optional. ``pins_default`` default pinctrl state of SCL/SDA lines, when they are assigned to the I2C bus. Optional. Populated internally for GPIO recovery, if state with the name PINCTRL_STATE_DEFAULT is found and pinctrl is valid. ``pins_gpio`` recovery pinctrl state of SCL/SDA lines, when they are used as GPIOs. Optional. Populated internally for GPIO recovery, if this state is called "gpio" or "recovery" and pinctrl is valid.h](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhjv"hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjr"ubh:}(hj hjr"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMfhjn"ubj )}(hXpstruct i2c_bus_recovery_info { int (*recover_bus)(struct i2c_adapter *adap); int (*get_scl)(struct i2c_adapter *adap); void (*set_scl)(struct i2c_adapter *adap, int val); int (*get_sda)(struct i2c_adapter *adap); void (*set_sda)(struct i2c_adapter *adap, int val); int (*get_bus_free)(struct i2c_adapter *adap); void (*prepare_recovery)(struct i2c_adapter *adap); void (*unprepare_recovery)(struct i2c_adapter *adap); struct gpio_desc *scl_gpiod; struct gpio_desc *sda_gpiod; struct pinctrl *pinctrl; struct pinctrl_state *pins_default; struct pinctrl_state *pins_gpio; };h]hXpstruct i2c_bus_recovery_info { int (*recover_bus)(struct i2c_adapter *adap); int (*get_scl)(struct i2c_adapter *adap); void (*set_scl)(struct i2c_adapter *adap, int val); int (*get_sda)(struct i2c_adapter *adap); void (*set_sda)(struct i2c_adapter *adap, int val); int (*get_bus_free)(struct i2c_adapter *adap); void (*prepare_recovery)(struct i2c_adapter *adap); void (*unprepare_recovery)(struct i2c_adapter *adap); struct gpio_desc *scl_gpiod; struct gpio_desc *sda_gpiod; struct pinctrl *pinctrl; struct pinctrl_state *pins_default; struct pinctrl_state *pins_gpio; };}(hhhj"ubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhjn"ubh)}(h **Members**h]jL)}(hj"h]hMembers}(hhhj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMxhjn"ubjb)}(hhh](jg)}(hl``recover_bus`` Recover routine. Either pass driver's recover_bus() routine, or i2c_generic_scl_recovery(). h](jm)}(h``recover_bus``h]h)}(hj"h]h recover_bus}(hhhj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMehj"ubj)}(hhh]h)}(h[Recover routine. Either pass driver's recover_bus() routine, or i2c_generic_scl_recovery().h]h]Recover routine. Either pass driver’s recover_bus() routine, or i2c_generic_scl_recovery().}(hj"hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMdhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jfhj"hMehj"ubjg)}(h``get_scl`` This gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. h](jm)}(h ``get_scl``h]h)}(hj"h]hget_scl}(hhhj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMghj"ubj)}(hhh]h)}(hxThis gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery.h]hxThis gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery.}(hj#hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMfhj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jfhj#hMghj"ubjg)}(h``set_scl`` This sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. h](jm)}(h ``set_scl``h]h)}(hj3#h]hset_scl}(hhhj5#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1#ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMihj-#ubj)}(hhh]h)}(hrThis sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery.h]hrThis sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery.}(hjN#hjL#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhjI#ubah}(h]h ]h"]h$]h&]uh1jhj-#ubeh}(h]h ]h"]h$]h&]uh1jfhjH#hMihj"ubjg)}(h``get_sda`` This gets current value of SDA line. This or set_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery. h](jm)}(h ``get_sda``h]h)}(hjm#h]hget_sda}(hhhjo#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk#ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMlhjg#ubj)}(hhh]h)}(hThis gets current value of SDA line. This or set_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery.h]hThis gets current value of SDA line. This or set_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery.}(hj#hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMjhj#ubah}(h]h ]h"]h$]h&]uh1jhjg#ubeh}(h]h ]h"]h$]h&]uh1jfhj#hMlhj"ubjg)}(h``set_sda`` This sets/clears the SDA line. This or get_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery. h](jm)}(h ``set_sda``h]h)}(hj#h]hset_sda}(hhhj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMohj#ubj)}(hhh]h)}(hThis sets/clears the SDA line. This or get_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery.h]hThis sets/clears the SDA line. This or get_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery.}(hj#hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMmhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jfhj#hMohj"ubjg)}(h``get_bus_free`` Returns the bus free state as seen from the IP core in case it has a more complex internal logic than just reading SDA. Optional. h](jm)}(h``get_bus_free``h]h)}(hj#h]h get_bus_free}(hhhj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMqhj#ubj)}(hhh]h)}(hReturns the bus free state as seen from the IP core in case it has a more complex internal logic than just reading SDA. Optional.h]hReturns the bus free state as seen from the IP core in case it has a more complex internal logic than just reading SDA. Optional.}(hj#hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMphj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jfhj#hMqhj"ubjg)}(h``prepare_recovery`` This will be called before starting recovery. Platform may configure padmux here for SDA/SCL line or something else they want. h](jm)}(h``prepare_recovery``h]h)}(hj$h]hprepare_recovery}(hhhj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMshj$ubj)}(hhh]h)}(h~This will be called before starting recovery. Platform may configure padmux here for SDA/SCL line or something else they want.h]h~This will be called before starting recovery. Platform may configure padmux here for SDA/SCL line or something else they want.}(hj6$hj4$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMrhj1$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jfhj0$hMshj"ubjg)}(h``unprepare_recovery`` This will be called after completing recovery. Platform may configure padmux here for SDA/SCL line or something else they want. h](jm)}(h``unprepare_recovery``h]h)}(hjU$h]hunprepare_recovery}(hhhjW$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS$ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMuhjO$ubj)}(hhh]h)}(hThis will be called after completing recovery. Platform may configure padmux here for SDA/SCL line or something else they want.h]hThis will be called after completing recovery. Platform may configure padmux here for SDA/SCL line or something else they want.}(hjp$hjn$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMthjk$ubah}(h]h ]h"]h$]h&]uh1jhjO$ubeh}(h]h ]h"]h$]h&]uh1jfhjj$hMuhj"ubjg)}(hF``scl_gpiod`` gpiod of the SCL line. Only required for GPIO recovery. h](jm)}(h ``scl_gpiod``h]h)}(hj$h]h scl_gpiod}(hhhj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMvhj$ubj)}(hhh]h)}(h7gpiod of the SCL line. Only required for GPIO recovery.h]h7gpiod of the SCL line. Only required for GPIO recovery.}(hj$hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMvhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jfhj$hMvhj"ubjg)}(hF``sda_gpiod`` gpiod of the SDA line. Only required for GPIO recovery. h](jm)}(h ``sda_gpiod``h]h)}(hj$h]h sda_gpiod}(hhhj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMwhj$ubj)}(hhh]h)}(h7gpiod of the SDA line. Only required for GPIO recovery.h]h7gpiod of the SDA line. Only required for GPIO recovery.}(hj$hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMwhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jfhj$hMwhj"ubjg)}(hY``pinctrl`` pinctrl used by GPIO recovery to change the state of the I2C pins. Optional. h](jm)}(h ``pinctrl``h]h)}(hj%h]hpinctrl}(hhhj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMyhj$ubj)}(hhh]h)}(hLpinctrl used by GPIO recovery to change the state of the I2C pins. Optional.h]hLpinctrl used by GPIO recovery to change the state of the I2C pins. Optional.}(hj%hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMxhj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jfhj%hMyhj"ubjg)}(h``pins_default`` default pinctrl state of SCL/SDA lines, when they are assigned to the I2C bus. Optional. Populated internally for GPIO recovery, if state with the name PINCTRL_STATE_DEFAULT is found and pinctrl is valid. h](jm)}(h``pins_default``h]h)}(hj;%h]h pins_default}(hhhj=%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9%ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM|hj5%ubj)}(hhh]h)}(hdefault pinctrl state of SCL/SDA lines, when they are assigned to the I2C bus. Optional. Populated internally for GPIO recovery, if state with the name PINCTRL_STATE_DEFAULT is found and pinctrl is valid.h]hdefault pinctrl state of SCL/SDA lines, when they are assigned to the I2C bus. Optional. Populated internally for GPIO recovery, if state with the name PINCTRL_STATE_DEFAULT is found and pinctrl is valid.}(hjV%hjT%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMzhjQ%ubah}(h]h ]h"]h$]h&]uh1jhj5%ubeh}(h]h ]h"]h$]h&]uh1jfhjP%hM|hj"ubjg)}(h``pins_gpio`` recovery pinctrl state of SCL/SDA lines, when they are used as GPIOs. Optional. Populated internally for GPIO recovery, if this state is called "gpio" or "recovery" and pinctrl is valid.h](jm)}(h ``pins_gpio``h]h)}(hju%h]h pins_gpio}(hhhjw%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs%ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM~hjo%ubj)}(hhh]h)}(hrecovery pinctrl state of SCL/SDA lines, when they are used as GPIOs. Optional. Populated internally for GPIO recovery, if this state is called "gpio" or "recovery" and pinctrl is valid.h]hrecovery pinctrl state of SCL/SDA lines, when they are used as GPIOs. Optional. Populated internally for GPIO recovery, if this state is called “gpio” or “recovery” and pinctrl is valid.}(hj%hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM}hj%ubah}(h]h ]h"]h$]h&]uh1jhjo%ubeh}(h]h ]h"]h$]h&]uh1jfhj%hM~hj"ubeh}(h]h ]h"]h$]h&]uh1jahjn"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_adapter_quirks (C struct)c.i2c_adapter_quirkshNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_adapter_quirksh]j)}(hstruct i2c_adapter_quirksh](j)}(hjh]hstruct}(hhhj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubj)}(h h]h }(hhhj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hMubj)}(hi2c_adapter_quirksh]j)}(hj%h]hi2c_adapter_quirks}(hhhj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj%hhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj%hMubah}(h]j%ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj%hhubj)}(hhh]h)}(h describe flaws of an i2c adapterh]h describe flaws of an i2c adapter}(hj&hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hMubeh}(h]h ](j structeh"]h$]h&]j=j j>j*&j?j*&j@uh1jhhhhhNhNubjB)}(hXd**Definition**:: struct i2c_adapter_quirks { u64 flags; int max_num_msgs; u16 max_write_len; u16 max_read_len; u16 max_comb_1st_msg_len; u16 max_comb_2nd_msg_len; }; **Members** ``flags`` see I2C_AQ_* for possible flags and read below ``max_num_msgs`` maximum number of messages per transfer ``max_write_len`` maximum length of a write message ``max_read_len`` maximum length of a read message ``max_comb_1st_msg_len`` maximum length of the first msg in a combined message ``max_comb_2nd_msg_len`` maximum length of the second msg in a combined messageh](h)}(h**Definition**::h](jL)}(h**Definition**h]h Definition}(hhhj6&hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj2&ubh:}(hj hj2&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj.&ubj )}(hstruct i2c_adapter_quirks { u64 flags; int max_num_msgs; u16 max_write_len; u16 max_read_len; u16 max_comb_1st_msg_len; u16 max_comb_2nd_msg_len; };h]hstruct i2c_adapter_quirks { u64 flags; int max_num_msgs; u16 max_write_len; u16 max_read_len; u16 max_comb_1st_msg_len; u16 max_comb_2nd_msg_len; };}(hhhjO&ubah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj.&ubh)}(h **Members**h]jL)}(hj`&h]hMembers}(hhhjb&hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj^&ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj.&ubjb)}(hhh](jg)}(h9``flags`` see I2C_AQ_* for possible flags and read below h](jm)}(h ``flags``h]h)}(hj&h]hflags}(hhhj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}&ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjy&ubj)}(hhh]h)}(h.see I2C_AQ_* for possible flags and read belowh]h.see I2C_AQ_* for possible flags and read below}(hj&hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhjy&ubeh}(h]h ]h"]h$]h&]uh1jfhj&hMhjv&ubjg)}(h9``max_num_msgs`` maximum number of messages per transfer h](jm)}(h``max_num_msgs``h]h)}(hj&h]h max_num_msgs}(hhhj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj&ubj)}(hhh]h)}(h'maximum number of messages per transferh]h'maximum number of messages per transfer}(hj&hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jfhj&hMhjv&ubjg)}(h4``max_write_len`` maximum length of a write message h](jm)}(h``max_write_len``h]h)}(hj&h]h max_write_len}(hhhj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj&ubj)}(hhh]h)}(h!maximum length of a write messageh]h!maximum length of a write message}(hj 'hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jfhj'hMhjv&ubjg)}(h2``max_read_len`` maximum length of a read message h](jm)}(h``max_read_len``h]h)}(hj*'h]h max_read_len}(hhhj,'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj('ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj$'ubj)}(hhh]h)}(h maximum length of a read messageh]h maximum length of a read message}(hjE'hjC'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?'hMhj@'ubah}(h]h ]h"]h$]h&]uh1jhj$'ubeh}(h]h ]h"]h$]h&]uh1jfhj?'hMhjv&ubjg)}(hO``max_comb_1st_msg_len`` maximum length of the first msg in a combined message h](jm)}(h``max_comb_1st_msg_len``h]h)}(hjc'h]hmax_comb_1st_msg_len}(hhhje'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja'ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj]'ubj)}(hhh]h)}(h5maximum length of the first msg in a combined messageh]h5maximum length of the first msg in a combined message}(hj~'hj|'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx'hMhjy'ubah}(h]h ]h"]h$]h&]uh1jhj]'ubeh}(h]h ]h"]h$]h&]uh1jfhjx'hMhjv&ubjg)}(hO``max_comb_2nd_msg_len`` maximum length of the second msg in a combined messageh](jm)}(h``max_comb_2nd_msg_len``h]h)}(hj'h]hmax_comb_2nd_msg_len}(hhhj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj'ubj)}(hhh]h)}(h6maximum length of the second msg in a combined messageh]h6maximum length of the second msg in a combined message}(hj'hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jfhj'hMhjv&ubeh}(h]h ]h"]h$]h&]uh1jahj.&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubh)}(h**Description**h]jL)}(hj'h]h Description}(hhhj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj'ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXNote about combined messages: Some I2C controllers can only send one message per transfer, plus something called combined message or write-then-read. This is (usually) a small write message followed by a read message and barely enough to access register based devices like EEPROMs. There is a flag to support this mode. It implies max_num_msg = 2 and does the length checks with max_comb_*_len because combined message mode usually has its own limitations. Because of HW implementations, some controllers can actually do write-then-anything or other variants. To support that, write-then-read has been broken out into smaller bits like write-first and read-second which can be combined as needed.h]hXNote about combined messages: Some I2C controllers can only send one message per transfer, plus something called combined message or write-then-read. This is (usually) a small write message followed by a read message and barely enough to access register based devices like EEPROMs. There is a flag to support this mode. It implies max_num_msg = 2 and does the length checks with max_comb_*_len because combined message mode usually has its own limitations. Because of HW implementations, some controllers can actually do write-then-anything or other variants. To support that, write-then-read has been broken out into smaller bits like write-first and read-second which can be combined as needed.}(hj'hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_lock_bus (C function)c.i2c_lock_bushNtauh1jhhhhhNhNubj)}(hhh](j)}(hCvoid i2c_lock_bus (struct i2c_adapter *adapter, unsigned int flags)h]j)}(hBvoid i2c_lock_bus(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hvoidh]hvoid}(hhhj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubj)}(h h]h }(hhhj,(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj+(hMubj)}(h i2c_lock_bush]j)}(h i2c_lock_bush]h i2c_lock_bus}(hhhj>(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:(ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj(hhhj+(hMubj)}(h1(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhjZ(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV(ubj)}(h h]h }(hhhjg(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV(ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjx(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju(ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjz(modnameN classnameNjJjM)}jP]jS)}jFj@(sbc.i2c_lock_busasbuh1hhjV(ubj)}(h h]h }(hhhj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV(ubjg)}(hjjh]h*}(hhhj(hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjV(ubj)}(hadapterh]hadapter}(hhhj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjR(ubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hhhj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hhhj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hinth]hint}(hhhj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hhhj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hflagsh]hflags}(hhhj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjR(ubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj+(hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj+(hMubah}(h]j(ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj(hhubj)}(hhh]h)}(h*Get exclusive access to an I2C bus segmenth]h*Get exclusive access to an I2C bus segment}(hj1)hj/)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj,)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj+(hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>jG)j?jG)j@uh1jhhhhhNhNubjB)}(h**Parameters** ``struct i2c_adapter *adapter`` Target I2C bus segment ``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter treeh](h)}(h**Parameters**h]jL)}(hjQ)h]h Parameters}(hhhjS)hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjO)ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjK)ubjb)}(hhh](jg)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hjp)h]hstruct i2c_adapter *adapter}(hhhjr)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn)ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjj)ubj)}(hhh]h)}(hTarget I2C bus segmenth]hTarget I2C bus segment}(hj)hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhjj)ubeh}(h]h ]h"]h$]h&]uh1jfhj)hMhjg)ubjg)}(h``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter treeh](jm)}(h``unsigned int flags``h]h)}(hj)h]hunsigned int flags}(hhhj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj)ubj)}(hhh]h)}(hmI2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter treeh]hmI2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter tree}(hj)hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jfhj)hMhjg)ubeh}(h]h ]h"]h$]h&]uh1jahjK)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_trylock_bus (C function)c.i2c_trylock_bushNtauh1jhhhhhNhNubj)}(hhh](j)}(hEint i2c_trylock_bus (struct i2c_adapter *adapter, unsigned int flags)h]j)}(hDint i2c_trylock_bus(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hinth]hint}(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubj)}(h h]h }(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj*hMubj)}(hi2c_trylock_bush]j)}(hi2c_trylock_bush]hi2c_trylock_bus}(hhhj#*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj)hhhj*hMubj)}(h1(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhj?*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;*ubj)}(h h]h }(hhhjL*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;*ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj]*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ*ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj_*modnameN classnameNjJjM)}jP]jS)}jFj%*sbc.i2c_trylock_busasbuh1hhj;*ubj)}(h h]h }(hhhj}*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;*ubjg)}(hjjh]h*}(hhhj*hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj;*ubj)}(hadapterh]hadapter}(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7*ubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hinth]hint}(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hflagsh]hflags}(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7*ubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj*hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj*hMubah}(h]j)ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM#hj)hhubj)}(hhh]h)}(h1Try to get exclusive access to an I2C bus segmenth]h1Try to get exclusive access to an I2C bus segment}(hj+hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj*hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>j,+j?j,+j@uh1jhhhhhNhNubjB)}(hX'**Parameters** ``struct i2c_adapter *adapter`` Target I2C bus segment ``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter, I2C_LOCK_SEGMENT tries to lock only this branch in the adapter tree **Return** true if the I2C bus segment is locked, false otherwiseh](h)}(h**Parameters**h]jL)}(hj6+h]h Parameters}(hhhj8+hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj4+ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hj0+ubjb)}(hhh](jg)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hjU+h]hstruct i2c_adapter *adapter}(hhhjW+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS+ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjO+ubj)}(hhh]h)}(hTarget I2C bus segmenth]hTarget I2C bus segment}(hjp+hjn+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj+hMhjk+ubah}(h]h ]h"]h$]h&]uh1jhjO+ubeh}(h]h ]h"]h$]h&]uh1jfhjj+hMhjL+ubjg)}(h``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter, I2C_LOCK_SEGMENT tries to lock only this branch in the adapter tree h](jm)}(h``unsigned int flags``h]h)}(hj+h]hunsigned int flags}(hhhj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj+ubj)}(hhh]h)}(h~I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter, I2C_LOCK_SEGMENT tries to lock only this branch in the adapter treeh]h~I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter, I2C_LOCK_SEGMENT tries to lock only this branch in the adapter tree}(hj+hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jfhj+hMhjL+ubeh}(h]h ]h"]h$]h&]uh1jahj0+ubh)}(h **Return**h]jL)}(hj+h]hReturn}(hhhj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj+ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM!hj0+ubh)}(h6true if the I2C bus segment is locked, false otherwiseh]h6true if the I2C bus segment is locked, false otherwise}(hj+hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM!hj0+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_unlock_bus (C function)c.i2c_unlock_bushNtauh1jhhhhhNhNubj)}(hhh](j)}(hEvoid i2c_unlock_bus (struct i2c_adapter *adapter, unsigned int flags)h]j)}(hDvoid i2c_unlock_bus(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hvoidh]hvoid}(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ,hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM+ubj)}(h h]h }(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ,hhhj,hM+ubj)}(hi2c_unlock_bush]j)}(hi2c_unlock_bush]hi2c_unlock_bus}(hhhj0,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,,ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj ,hhhj,hM+ubj)}(h1(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhjL,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH,ubj)}(h h]h }(hhhjY,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH,ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg,ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjl,modnameN classnameNjJjM)}jP]jS)}jFj2,sbc.i2c_unlock_busasbuh1hhjH,ubj)}(h h]h }(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH,ubjg)}(hjjh]h*}(hhhj,hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjH,ubj)}(hadapterh]hadapter}(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD,ubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hinth]hint}(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hflagsh]hflags}(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD,ubeh}(h]h ]h"]h$]h&]jjuh1jhj ,hhhj,hM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hM+ubah}(h]j,ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM/hj,hhubj)}(hhh]h)}(h.Release exclusive access to an I2C bus segmenth]h.Release exclusive access to an I2C bus segment}(hj#-hj!-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM*hj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hM+ubeh}(h]h ](j functioneh"]h$]h&]j=j j>j9-j?j9-j@uh1jhhhhhNhNubjB)}(h**Parameters** ``struct i2c_adapter *adapter`` Target I2C bus segment ``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter treeh](h)}(h**Parameters**h]jL)}(hjC-h]h Parameters}(hhhjE-hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjA-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM.hj=-ubjb)}(hhh](jg)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hjb-h]hstruct i2c_adapter *adapter}(hhhjd-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`-ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM+hj\-ubj)}(hhh]h)}(hTarget I2C bus segmenth]hTarget I2C bus segment}(hj}-hj{-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw-hM+hjx-ubah}(h]h ]h"]h$]h&]uh1jhj\-ubeh}(h]h ]h"]h$]h&]uh1jfhjw-hM+hjY-ubjg)}(h``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter treeh](jm)}(h``unsigned int flags``h]h)}(hj-h]hunsigned int flags}(hhhj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM,hj-ubj)}(hhh]h)}(hqI2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter treeh]hqI2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter tree}(hj-hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM,hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jfhj-hM,hjY-ubeh}(h]h ]h"]h$]h&]uh1jahj=-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_mark_adapter_suspended (C function)c.i2c_mark_adapter_suspendedhNtauh1jhhhhhNhNubj)}(hhh](j)}(h:void i2c_mark_adapter_suspended (struct i2c_adapter *adap)h]j)}(h9void i2c_mark_adapter_suspended(struct i2c_adapter *adap)h](j)}(hvoidh]hvoid}(hhhj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM7ubj)}(h h]h }(hhhj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj.hM7ubj)}(hi2c_mark_adapter_suspendedh]j)}(hi2c_mark_adapter_suspendedh]hi2c_mark_adapter_suspended}(hhhj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj-hhhj.hM7ubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hhhj1.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-.ubj)}(h h]h }(hhhj>.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-.ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjO.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL.ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjQ.modnameN classnameNjJjM)}jP]jS)}jFj.sbc.i2c_mark_adapter_suspendedasbuh1hhj-.ubj)}(h h]h }(hhhjo.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-.ubjg)}(hjjh]h*}(hhhj}.hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj-.ubj)}(hadaph]hadap}(hhhj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj).ubah}(h]h ]h"]h$]h&]jjuh1jhj-hhhj.hM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj.hM7ubah}(h]j-ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM?hj-hhubj)}(hhh]h)}(h1Report suspended state of the adapter to the coreh]h1Report suspended state of the adapter to the core}(hj.hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM6hj.hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj.hM7ubeh}(h]h ](j functioneh"]h$]h&]j=j j>j.j?j.j@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_adapter *adap`` Adapter to mark as suspended **Description** When using this helper to mark an adapter as suspended, the core will reject further transfers to this adapter. The usage of this helper is optional but recommended for devices having distinct handlers for system suspend and runtime suspend. More complex devices are free to implement custom solutions to reject transfers when suspended.h](h)}(h**Parameters**h]jL)}(hj.h]h Parameters}(hhhj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj.ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM:hj.ubjb)}(hhh]jg)}(h:``struct i2c_adapter *adap`` Adapter to mark as suspended h](jm)}(h``struct i2c_adapter *adap``h]h)}(hj.h]hstruct i2c_adapter *adap}(hhhj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM7hj.ubj)}(hhh]h)}(hAdapter to mark as suspendedh]hAdapter to mark as suspended}(hj/hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj /hM7hj /ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jfhj /hM7hj.ubah}(h]h ]h"]h$]h&]uh1jahj.ubh)}(h**Description**h]jL)}(hj1/h]h Description}(hhhj3/hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj//ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM9hj.ubh)}(hXQWhen using this helper to mark an adapter as suspended, the core will reject further transfers to this adapter. The usage of this helper is optional but recommended for devices having distinct handlers for system suspend and runtime suspend. More complex devices are free to implement custom solutions to reject transfers when suspended.h]hXQWhen using this helper to mark an adapter as suspended, the core will reject further transfers to this adapter. The usage of this helper is optional but recommended for devices having distinct handlers for system suspend and runtime suspend. More complex devices are free to implement custom solutions to reject transfers when suspended.}(hjI/hjG/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM9hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_mark_adapter_resumed (C function)c.i2c_mark_adapter_resumedhNtauh1jhhhhhNhNubj)}(hhh](j)}(h8void i2c_mark_adapter_resumed (struct i2c_adapter *adap)h]j)}(h7void i2c_mark_adapter_resumed(struct i2c_adapter *adap)h](j)}(hvoidh]hvoid}(hhhjv/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr/hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMHubj)}(h h]h }(hhhj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr/hhhj/hMHubj)}(hi2c_mark_adapter_resumedh]j)}(hi2c_mark_adapter_resumedh]hi2c_mark_adapter_resumed}(hhhj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjr/hhhj/hMHubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hhhj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hhhj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj/modnameN classnameNjJjM)}jP]jS)}jFj/sbc.i2c_mark_adapter_resumedasbuh1hhj/ubj)}(h h]h }(hhhj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjg)}(hjjh]h*}(hhhj/hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj/ubj)}(hadaph]hadap}(hhhj 0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubah}(h]h ]h"]h$]h&]jjuh1jhjr/hhhj/hMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjn/hhhj/hMHubah}(h]ji/ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMNhjk/hhubj)}(hhh]h)}(h/Report resumed state of the adapter to the coreh]h/Report resumed state of the adapter to the core}(hj90hj70hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMGhj40hhubah}(h]h ]h"]h$]h&]uh1jhjk/hhhj/hMHubeh}(h]h ](j functioneh"]h$]h&]j=j j>jO0j?jO0j@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_adapter *adap`` Adapter to mark as resumed **Description** When using this helper to mark an adapter as resumed, the core will allow further transfers to this adapter. See also further notes to **i2c_mark_adapter_suspended\(\)**.h](h)}(h**Parameters**h]jL)}(hjY0h]h Parameters}(hhhj[0hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjW0ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMKhjS0ubjb)}(hhh]jg)}(h8``struct i2c_adapter *adap`` Adapter to mark as resumed h](jm)}(h``struct i2c_adapter *adap``h]h)}(hjx0h]hstruct i2c_adapter *adap}(hhhjz0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv0ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMHhjr0ubj)}(hhh]h)}(hAdapter to mark as resumedh]hAdapter to mark as resumed}(hj0hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMHhj0ubah}(h]h ]h"]h$]h&]uh1jhjr0ubeh}(h]h ]h"]h$]h&]uh1jfhj0hMHhjo0ubah}(h]h ]h"]h$]h&]uh1jahjS0ubh)}(h**Description**h]jL)}(hj0h]h Description}(hhhj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj0ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMJhjS0ubh)}(hWhen using this helper to mark an adapter as resumed, the core will allow further transfers to this adapter. See also further notes to **i2c_mark_adapter_suspended\(\)**.h](hWhen using this helper to mark an adapter as resumed, the core will allow further transfers to this adapter. See also further notes to }(hWhen using this helper to mark an adapter as resumed, the core will allow further transfers to this adapter. See also further notes to hj0hhhNhNubjL)}(h"**i2c_mark_adapter_suspended\(\)**h]hi2c_mark_adapter_suspended()}(hhhj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj0ubh.}(h.hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMJhjS0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_check_quirks (C function)c.i2c_check_quirkshNtauh1jhhhhhNhNubj)}(hhh](j)}(hj-2j?j-2j@uh1jhhhhhNhNubjB)}(h**Parameters** ``struct i2c_adapter *adap`` i2c adapter ``u64 quirks`` quirk flags **Return** true if the adapter has all the specified quirk flags, false if noth](h)}(h**Parameters**h]jL)}(hj72h]h Parameters}(hhhj92hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj52ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj12ubjb)}(hhh](jg)}(h)``struct i2c_adapter *adap`` i2c adapter h](jm)}(h``struct i2c_adapter *adap``h]h)}(hjV2h]hstruct i2c_adapter *adap}(hhhjX2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT2ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjP2ubj)}(hhh]h)}(h i2c adapterh]h i2c adapter}(hjq2hjo2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk2hMhjl2ubah}(h]h ]h"]h$]h&]uh1jhjP2ubeh}(h]h ]h"]h$]h&]uh1jfhjk2hMhjM2ubjg)}(h``u64 quirks`` quirk flags h](jm)}(h``u64 quirks``h]h)}(hj2h]h u64 quirks}(hhhj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj2ubj)}(hhh]h)}(h quirk flagsh]h quirk flags}(hj2hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jfhj2hMhjM2ubeh}(h]h ]h"]h$]h&]uh1jahj12ubh)}(h **Return**h]jL)}(hj2h]hReturn}(hhhj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj2ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj12ubh)}(hCtrue if the adapter has all the specified quirk flags, false if noth]hCtrue if the adapter has all the specified quirk flags, false if not}(hj2hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj12ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jmodule_i2c_driver (C macro)c.module_i2c_driverhNtauh1jhhhhhNhNubj)}(hhh](j)}(hmodule_i2c_driverh]j)}(hmodule_i2c_driverh]j)}(hmodule_i2c_driverh]j)}(hj 3h]hmodule_i2c_driver}(hhhj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj 3hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj&3hMubah}(h]j3ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3hhhj&3hMubeh}(h]h ](j macroeh"]h$]h&]j=j j>j@3j?j@3j@uh1jhhhhhNhNubh)}(h$``module_i2c_driver (__i2c_driver)``h]h)}(hjF3h]h module_i2c_driver (__i2c_driver)}(hhhjH3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD3ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubj)}(hhh]h)}(h1Helper macro for registering a modular I2C driverh]h1Helper macro for registering a modular I2C driver}(hja3hj_3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj\3ubah}(h]h ]h"]h$]h&]uh1jhhhhhNhNubjB)}(hX!**Parameters** ``__i2c_driver`` i2c_driver struct **Description** Helper macro for I2C drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit()h](h)}(h**Parameters**h]jL)}(hjz3h]h Parameters}(hhhj|3hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjx3ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjt3ubjb)}(hhh]jg)}(h#``__i2c_driver`` i2c_driver struct h](jm)}(h``__i2c_driver``h]h)}(hj3h]h __i2c_driver}(hhhj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj3ubj)}(hhh]h)}(hi2c_driver structh]hi2c_driver struct}(hj3hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jfhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jahjt3ubh)}(h**Description**h]jL)}(hj3h]h Description}(hhhj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj3ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjt3ubh)}(hHelper macro for I2C drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit()h]hHelper macro for I2C drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit()}(hj3hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjt3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jbuiltin_i2c_driver (C macro)c.builtin_i2c_driverhNtauh1jhhhhhNhNubj)}(hhh](j)}(hbuiltin_i2c_driverh]j)}(hbuiltin_i2c_driverh]j)}(hbuiltin_i2c_driverh]j)}(hj4h]hbuiltin_i2c_driver}(hhhj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj4hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj04hMubah}(h]j 4ah ](jjeh"]h$]h&]juh1jhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj4hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj4hhhj04hMubeh}(h]h ](j macroeh"]h$]h&]j=j j>jJ4j?jJ4j@uh1jhhhhhNhNubh)}(h%``builtin_i2c_driver (__i2c_driver)``h]h)}(hjP4h]h!builtin_i2c_driver (__i2c_driver)}(hhhjR4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN4ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubj)}(hhh]h)}(h1Helper macro for registering a builtin I2C driverh]h1Helper macro for registering a builtin I2C driver}(hjk4hji4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjf4ubah}(h]h ]h"]h$]h&]uh1jhhhhhNhNubjB)}(hX**Parameters** ``__i2c_driver`` i2c_driver struct **Description** Helper macro for I2C drivers which do not do anything special in their init. This eliminates a lot of boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall().h](h)}(h**Parameters**h]jL)}(hj4h]h Parameters}(hhhj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj4ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj~4ubjb)}(hhh]jg)}(h#``__i2c_driver`` i2c_driver struct h](jm)}(h``__i2c_driver``h]h)}(hj4h]h __i2c_driver}(hhhj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1jlhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj4ubj)}(hhh]h)}(hi2c_driver structh]hi2c_driver struct}(hj4hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jfhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jahj~4ubh)}(h**Description**h]jL)}(hj4h]h Description}(hhhj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj4ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj~4ubh)}(hHelper macro for I2C drivers which do not do anything special in their init. This eliminates a lot of boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall().h]hHelper macro for I2C drivers which do not do anything special in their init. This eliminates a lot of boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall().}(hj4hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj~4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$i2c_register_board_info (C function)c.i2c_register_board_infohNtauh1jhhhhhNhNubj)}(hhh](j)}(hYint i2c_register_board_info (int busnum, struct i2c_board_info const *info, unsigned len)h]j)}(hXint i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned len)h](j)}(hinth]hint}(hhhj#5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chKubj)}(h h]h }(hhhj25hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhj15hKubj)}(hi2c_register_board_infoh]j)}(hi2c_register_board_infoh]hi2c_register_board_info}(hhhjD5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@5ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj5hhhj15hKubj)}(h=(int busnum, struct i2c_board_info const *info, unsigned len)h](j)}(h int busnumh](j)}(hinth]hint}(hhhj`5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\5ubj)}(h h]h }(hhhjn5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\5ubj)}(hbusnumh]hbusnum}(hhhj|5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjX5ubj)}(h!struct i2c_board_info const *infoh](j)}(hjh]hstruct}(hhhj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hhhj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j)}(hi2c_board_infoh]hi2c_board_info}(hhhj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj5modnameN classnameNjJjM)}jP]jS)}jFjF5sbc.i2c_register_board_infoasbuh1hhj5ubj)}(h h]h }(hhhj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hjh]hconst}(hhhj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hhhj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjg)}(hjjh]h*}(hhhj5hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj5ubj)}(hinfoh]hinfo}(hhhj 6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjX5ubj)}(h unsigned lenh](j)}(hunsignedh]hunsigned}(hhhj"6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hhhj06hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hlenh]hlen}(hhhj>6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjX5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj15hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj15hKubah}(h]j5ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK3hj5hhubj)}(hhh]h)}(hstatically declare I2C devicesh]hstatically declare I2C devices}(hjk6hji6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chKhjf6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj15hKubeh}(h]h ](j functioneh"]h$]h&]j=j j>j6j?j6j@uh1jhhhhhNhNubjB)}(hXF**Parameters** ``int busnum`` identifies the bus to which these devices belong ``struct i2c_board_info const *info`` vector of i2c device descriptors ``unsigned len`` how many descriptors in the vector; may be zero to reserve the specified bus number. **Description** Systems using the Linux I2C driver stack can declare tables of board info while they initialize. This should be done in board-specific init code near arch_initcall() time, or equivalent, before any I2C adapter driver is registered. For example, mainboard init code could define several devices, as could the init code for each daughtercard in a board stack. The I2C devices will be created later, after the adapter for the relevant bus has been registered. After that moment, standard driver model tools are used to bind "new style" I2C drivers to the devices. The bus number for any device declared using this routine is not available for dynamic allocation. The board info passed can safely be __initdata, but be careful of embedded pointers (for platform_data, functions, etc) since that won't be copied.h](h)}(h**Parameters**h]jL)}(hj6h]h Parameters}(hhhj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj6ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK"hj6ubjb)}(hhh](jg)}(h@``int busnum`` identifies the bus to which these devices belong h](jm)}(h``int busnum``h]h)}(hj6h]h int busnum}(hhhj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chKhj6ubj)}(hhh]h)}(h0identifies the bus to which these devices belongh]h0identifies the bus to which these devices belong}(hj6hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jfhj6hKhj6ubjg)}(hG``struct i2c_board_info const *info`` vector of i2c device descriptors h](jm)}(h%``struct i2c_board_info const *info``h]h)}(hj6h]h!struct i2c_board_info const *info}(hhhj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK hj6ubj)}(hhh]h)}(h vector of i2c device descriptorsh]h vector of i2c device descriptors}(hj6hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hK hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jfhj6hK hj6ubjg)}(hf``unsigned len`` how many descriptors in the vector; may be zero to reserve the specified bus number. h](jm)}(h``unsigned len``h]h)}(hj7h]h unsigned len}(hhhj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK"hj7ubj)}(hhh]h)}(hThow many descriptors in the vector; may be zero to reserve the specified bus number.h]hThow many descriptors in the vector; may be zero to reserve the specified bus number.}(hj77hj57hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK!hj27ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jfhj17hK"hj6ubeh}(h]h ]h"]h$]h&]uh1jahj6ubh)}(h**Description**h]jL)}(hjX7h]h Description}(hhhjZ7hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjV7ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK$hj6ubh)}(hXgSystems using the Linux I2C driver stack can declare tables of board info while they initialize. This should be done in board-specific init code near arch_initcall() time, or equivalent, before any I2C adapter driver is registered. For example, mainboard init code could define several devices, as could the init code for each daughtercard in a board stack.h]hXgSystems using the Linux I2C driver stack can declare tables of board info while they initialize. This should be done in board-specific init code near arch_initcall() time, or equivalent, before any I2C adapter driver is registered. For example, mainboard init code could define several devices, as could the init code for each daughtercard in a board stack.}(hjp7hjn7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK$hj6ubh)}(hX/The I2C devices will be created later, after the adapter for the relevant bus has been registered. After that moment, standard driver model tools are used to bind "new style" I2C drivers to the devices. The bus number for any device declared using this routine is not available for dynamic allocation.h]hX3The I2C devices will be created later, after the adapter for the relevant bus has been registered. After that moment, standard driver model tools are used to bind “new style” I2C drivers to the devices. The bus number for any device declared using this routine is not available for dynamic allocation.}(hj7hj}7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK*hj6ubh)}(hThe board info passed can safely be __initdata, but be careful of embedded pointers (for platform_data, functions, etc) since that won't be copied.h]hThe board info passed can safely be __initdata, but be careful of embedded pointers (for platform_data, functions, etc) since that won’t be copied.}(hj7hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK0hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_verify_client (C function)c.i2c_verify_clienthNtauh1jhhhhhNhNubj)}(hhh](j)}(h:struct i2c_client * i2c_verify_client (struct device *dev)h]j)}(h8struct i2c_client *i2c_verify_client(struct device *dev)h](j)}(hjh]hstruct}(hhhj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj7modnameN classnameNjJjM)}jP]jS)}jFi2c_verify_clientsbc.i2c_verify_clientasbuh1hhj7hhhj7hMubj)}(h h]h }(hhhj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hMubjg)}(hjjh]h*}(hhhj 8hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj7hhhj7hMubj)}(hi2c_verify_clienth]j)}(hj7h]hi2c_verify_client}(hhhj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj7hhhj7hMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hjh]hstruct}(hhhj58hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj18ubj)}(h h]h }(hhhjB8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj18ubh)}(hhh]j)}(hdeviceh]hdevice}(hhhjS8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP8ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjU8modnameN classnameNjJjM)}jP]j7c.i2c_verify_clientasbuh1hhj18ubj)}(h h]h }(hhhjq8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj18ubjg)}(hjjh]h*}(hhhj8hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj18ubj)}(hdevh]hdev}(hhhj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj18ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-8ubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj7hhubj)}(hhh]h)}(h'return parameter as i2c_client, or NULLh]h'return parameter as i2c_client, or NULL}(hj8hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>j8j?j8j@uh1jhhhhhNhNubjB)}(hXt**Parameters** ``struct device *dev`` device, probably from some driver model iterator **Description** When traversing the driver model tree, perhaps using driver model iterators like **device_for_each_child\(\)**, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_client.h](h)}(h**Parameters**h]jL)}(hj8h]h Parameters}(hhhj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj8ubjb)}(hhh]jg)}(hH``struct device *dev`` device, probably from some driver model iterator h](jm)}(h``struct device *dev``h]h)}(hj8h]hstruct device *dev}(hhhj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj8ubj)}(hhh]h)}(h0device, probably from some driver model iteratorh]h0device, probably from some driver model iterator}(hj9hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jfhj 9hMhj8ubah}(h]h ]h"]h$]h&]uh1jahj8ubh)}(h**Description**h]jL)}(hj39h]h Description}(hhhj59hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj19ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj8ubh)}(hXWhen traversing the driver model tree, perhaps using driver model iterators like **device_for_each_child\(\)**, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_client.h](hQWhen traversing the driver model tree, perhaps using driver model iterators like }(hQWhen traversing the driver model tree, perhaps using driver model iterators like hjI9hhhNhNubjL)}(h**device_for_each_child\(\)**h]hdevice_for_each_child()}(hhhjR9hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjI9ubh, you can’t assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_client.}(h, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_client.hjI9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"i2c_new_client_device (C function)c.i2c_new_client_devicehNtauh1jhhhhhNhNubj)}(hhh](j)}(hgstruct i2c_client * i2c_new_client_device (struct i2c_adapter *adap, struct i2c_board_info const *info)h]j)}(hestruct i2c_client *i2c_new_client_device(struct i2c_adapter *adap, struct i2c_board_info const *info)h](j)}(hjh]hstruct}(hhhj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj9modnameN classnameNjJjM)}jP]jS)}jFi2c_new_client_devicesbc.i2c_new_client_deviceasbuh1hhj9hhhj9hMubj)}(h h]h }(hhhj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubjg)}(hjjh]h*}(hhhj9hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj9hhhj9hMubj)}(hi2c_new_client_deviceh]j)}(hj9h]hi2c_new_client_device}(hhhj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj9hhhj9hMubj)}(h=(struct i2c_adapter *adap, struct i2c_board_info const *info)h](j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hhhj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hhhj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj$:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!:ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj&:modnameN classnameNjJjM)}jP]j9c.i2c_new_client_deviceasbuh1hhj:ubj)}(h h]h }(hhhjB:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjg)}(hjjh]h*}(hhhjP:hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj:ubj)}(hadaph]hadap}(hhhj]:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(h!struct i2c_board_info const *infoh](j)}(hjh]hstruct}(hhhjv:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr:ubj)}(h h]h }(hhhj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr:ubh)}(hhh]j)}(hi2c_board_infoh]hi2c_board_info}(hhhj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj:modnameN classnameNjJjM)}jP]j9c.i2c_new_client_deviceasbuh1hhjr:ubj)}(h h]h }(hhhj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr:ubj)}(hjh]hconst}(hhhj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr:ubj)}(h h]h }(hhhj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr:ubjg)}(hjjh]h*}(hhhj:hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjr:ubj)}(hinfoh]hinfo}(hhhj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj9hMubah}(h]j9ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj9hhubj)}(hhh]h)}(hinstantiate an i2c deviceh]hinstantiate an i2c device}(hj;hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>j+;j?j+;j@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_adapter *adap`` the adapter managing the device ``struct i2c_board_info const *info`` describes one I2C device; bus_num is ignored **Context** can sleep **Description** Create an i2c device. Binding is handled through driver model probe()/remove() methods. A driver may be bound to this device when we return from this function, or any later moment (e.g. maybe hotplugging will load the driver module). This call is not appropriate for use by mainboard initialization logic, which usually runs during an arch_initcall() long before any i2c_adapter could exist. This returns the new i2c client, which may be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h](h)}(h**Parameters**h]jL)}(hj5;h]h Parameters}(hhhj7;hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj3;ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj/;ubjb)}(hhh](jg)}(h=``struct i2c_adapter *adap`` the adapter managing the device h](jm)}(h``struct i2c_adapter *adap``h]h)}(hjT;h]hstruct i2c_adapter *adap}(hhhjV;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR;ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjN;ubj)}(hhh]h)}(hthe adapter managing the deviceh]hthe adapter managing the device}(hjo;hjm;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji;hMhjj;ubah}(h]h ]h"]h$]h&]uh1jhjN;ubeh}(h]h ]h"]h$]h&]uh1jfhji;hMhjK;ubjg)}(hS``struct i2c_board_info const *info`` describes one I2C device; bus_num is ignored h](jm)}(h%``struct i2c_board_info const *info``h]h)}(hj;h]h!struct i2c_board_info const *info}(hhhj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj;ubj)}(hhh]h)}(h,describes one I2C device; bus_num is ignoredh]h,describes one I2C device; bus_num is ignored}(hj;hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jfhj;hMhjK;ubeh}(h]h ]h"]h$]h&]uh1jahj/;ubh)}(h **Context**h]jL)}(hj;h]hContext}(hhhj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj;ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj/;ubh)}(h can sleeph]h can sleep}(hj;hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj/;ubh)}(h**Description**h]jL)}(hj;h]h Description}(hhhj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj;ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj/;ubh)}(hXCreate an i2c device. Binding is handled through driver model probe()/remove() methods. A driver may be bound to this device when we return from this function, or any later moment (e.g. maybe hotplugging will load the driver module). This call is not appropriate for use by mainboard initialization logic, which usually runs during an arch_initcall() long before any i2c_adapter could exist.h]hXCreate an i2c device. Binding is handled through driver model probe()/remove() methods. A driver may be bound to this device when we return from this function, or any later moment (e.g. maybe hotplugging will load the driver module). This call is not appropriate for use by mainboard initialization logic, which usually runs during an arch_initcall() long before any i2c_adapter could exist.}(hj<hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj/;ubh)}(hThis returns the new i2c client, which may be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h]hThis returns the new i2c client, which may be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.}(hj<hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj/;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"i2c_unregister_device (C function)c.i2c_unregister_devicehNtauh1jhhhhhNhNubj)}(hhh](j)}(h6void i2c_unregister_device (struct i2c_client *client)h]j)}(h5void i2c_unregister_device(struct i2c_client *client)h](j)}(hvoidh]hvoid}(hhhjC<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?<hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhjR<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?<hhhjQ<hMubj)}(hi2c_unregister_deviceh]j)}(hi2c_unregister_deviceh]hi2c_unregister_device}(hhhjd<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`<ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj?<hhhjQ<hMubj)}(h(struct i2c_client *client)h]j)}(hstruct i2c_client *clienth](j)}(hjh]hstruct}(hhhj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|<ubj)}(h h]h }(hhhj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|<ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj<modnameN classnameNjJjM)}jP]jS)}jFjf<sbc.i2c_unregister_deviceasbuh1hhj|<ubj)}(h h]h }(hhhj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|<ubjg)}(hjjh]h*}(hhhj<hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj|<ubj)}(hclienth]hclient}(hhhj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx<ubah}(h]h ]h"]h$]h&]jjuh1jhj?<hhhjQ<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;<hhhjQ<hMubah}(h]j6<ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj8<hhubj)}(hhh]h)}(h$reverse effect of i2c_new_*_device()h]h$reverse effect of i2c_new_*_device()}(hj=hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhj8<hhhjQ<hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>j=j?j=j@uh1jhhhhhNhNubjB)}(hn**Parameters** ``struct i2c_client *client`` value returned from i2c_new_*_device() **Context** can sleeph](h)}(h**Parameters**h]jL)}(hj&=h]h Parameters}(hhhj(=hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj$=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj =ubjb)}(hhh]jg)}(hE``struct i2c_client *client`` value returned from i2c_new_*_device() h](jm)}(h``struct i2c_client *client``h]h)}(hjE=h]hstruct i2c_client *client}(hhhjG=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC=ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj?=ubj)}(hhh]h)}(h&value returned from i2c_new_*_device()h]h&value returned from i2c_new_*_device()}(hj`=hj^=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ=hMhj[=ubah}(h]h ]h"]h$]h&]uh1jhj?=ubeh}(h]h ]h"]h$]h&]uh1jfhjZ=hMhj<=ubah}(h]h ]h"]h$]h&]uh1jahj =ubh)}(h **Context**h]jL)}(hj=h]hContext}(hhhj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj~=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj =ubh)}(h can sleeph]h can sleep}(hj=hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj =ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_find_device_by_fwnode (C function)c.i2c_find_device_by_fwnodehNtauh1jhhhhhNhNubj)}(hhh](j)}(hLstruct i2c_client * i2c_find_device_by_fwnode (struct fwnode_handle *fwnode)h]j)}(hJstruct i2c_client *i2c_find_device_by_fwnode(struct fwnode_handle *fwnode)h](j)}(hjh]hstruct}(hhhj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj=modnameN classnameNjJjM)}jP]jS)}jFi2c_find_device_by_fwnodesbc.i2c_find_device_by_fwnodeasbuh1hhj=hhhj=hMubj)}(h h]h }(hhhj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubjg)}(hjjh]h*}(hhhj>hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj=hhhj=hMubj)}(hi2c_find_device_by_fwnodeh]j)}(hj>h]hi2c_find_device_by_fwnode}(hhhj$>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj >ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj=hhhj=hMubj)}(h(struct fwnode_handle *fwnode)h]j)}(hstruct fwnode_handle *fwnodeh](j)}(hjh]hstruct}(hhhj?>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;>ubj)}(h h]h }(hhhjL>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;>ubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hhhj]>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ>ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj_>modnameN classnameNjJjM)}jP]j>c.i2c_find_device_by_fwnodeasbuh1hhj;>ubj)}(h h]h }(hhhj{>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;>ubjg)}(hjjh]h*}(hhhj>hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj;>ubj)}(hfwnodeh]hfwnode}(hhhj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7>ubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhj=hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj=hMubah}(h]j=ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj=hhubj)}(hhh]h)}(h!find an i2c_client for the fwnodeh]h!find an i2c_client for the fwnode}(hj>hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>j>j?j>j@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_client ` **Description** Look up and return the :c:type:`struct i2c_client ` corresponding to the **fwnode**. If no client can be found, or **fwnode** is NULL, this returns NULL. The user must call put_device(:c:type:`client->dev `) once done with the i2c client.h](h)}(h**Parameters**h]jL)}(hj>h]h Parameters}(hhhj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj>ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj>ubjb)}(hhh]jg)}(h``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_client ` h](jm)}(h ``struct fwnode_handle *fwnode``h]h)}(hj?h]hstruct fwnode_handle *fwnode}(hhhj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj>ubj)}(hhh]h)}(hl:c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_client `h](h)}(h.:c:type:`struct fwnode_handle `h]h)}(hj!?h]hstruct fwnode_handle}(hhhj#?hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj fwnode_handleuh1hhj?hMhj?ubh corresponding to the }(h corresponding to the hj?hhhNhNubh)}(h(:c:type:`struct i2c_client `h]h)}(hjE?h]hstruct i2c_client}(hhhjG?hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjC?ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj i2c_clientuh1hhj?hMhj?ubeh}(h]h ]h"]h$]h&]uh1hhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jfhj?hMhj>ubah}(h]h ]h"]h$]h&]uh1jahj>ubh)}(h**Description**h]jL)}(hj|?h]h Description}(hhhj~?hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjz?ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj>ubh)}(hLook up and return the :c:type:`struct i2c_client ` corresponding to the **fwnode**. If no client can be found, or **fwnode** is NULL, this returns NULL.h](hLook up and return the }(hLook up and return the hj?hhhNhNubh)}(h(:c:type:`struct i2c_client `h]h)}(hj?h]hstruct i2c_client}(hhhj?hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj i2c_clientuh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj?ubh corresponding to the }(h corresponding to the hj?hhhNhNubjL)}(h **fwnode**h]hfwnode}(hhhj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj?ubh . If no client can be found, or }(h . If no client can be found, or hj?hhhNhNubjL)}(h **fwnode**h]hfwnode}(hhhj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj?ubh is NULL, this returns NULL.}(h is NULL, this returns NULL.hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?hMhj>ubh)}(h\The user must call put_device(:c:type:`client->dev `) once done with the i2c client.h](hThe user must call put_device(}(hThe user must call put_device(hj?hhhNhNubh)}(h:c:type:`client->dev `h]h)}(hj?h]h client->dev}(hhhj?hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjclientuh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj?ubh ) once done with the i2c client.}(h ) once done with the i2c client.hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_new_dummy_device (C function)c.i2c_new_dummy_devicehNtauh1jhhhhhNhNubj)}(hhh](j)}(hSstruct i2c_client * i2c_new_dummy_device (struct i2c_adapter *adapter, u16 address)h]j)}(hQstruct i2c_client *i2c_new_dummy_device(struct i2c_adapter *adapter, u16 address)h](j)}(hjh]hstruct}(hhhj@@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<@hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM>ubj)}(h h]h }(hhhjN@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<@hhhjM@hM>ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj_@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\@ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetja@modnameN classnameNjJjM)}jP]jS)}jFi2c_new_dummy_devicesbc.i2c_new_dummy_deviceasbuh1hhj<@hhhjM@hM>ubj)}(h h]h }(hhhj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<@hhhjM@hM>ubjg)}(hjjh]h*}(hhhj@hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj<@hhhjM@hM>ubj)}(hi2c_new_dummy_deviceh]j)}(hj}@h]hi2c_new_dummy_device}(hhhj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj<@hhhjM@hM>ubj)}(h*(struct i2c_adapter *adapter, u16 address)h](j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hhhj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj@modnameN classnameNjJjM)}jP]j{@c.i2c_new_dummy_deviceasbuh1hhj@ubj)}(h h]h }(hhhj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjg)}(hjjh]h*}(hhhjAhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj@ubj)}(hadapterh]hadapter}(hhhjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h u16 addressh](h)}(hhh]j)}(hu16h]hu16}(hhhj-AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Aubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj/AmodnameN classnameNjJjM)}jP]j{@c.i2c_new_dummy_deviceasbuh1hhj&Aubj)}(h h]h }(hhhjKAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Aubj)}(haddressh]haddress}(hhhjYAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhj<@hhhjM@hM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8@hhhjM@hM>ubah}(h]j3@ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMNhj5@hhubj)}(hhh]h)}(h/return a new i2c device bound to a dummy driverh]h/return a new i2c device bound to a dummy driver}(hjAhjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM=hjAhhubah}(h]h ]h"]h$]h&]uh1jhj5@hhhjM@hM>ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jAj?jAj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_adapter *adapter`` the adapter managing the device ``u16 address`` seven bit address to be used **Context** can sleep **Description** This returns an I2C client bound to the "dummy" driver, intended for use with devices that consume multiple addresses. Examples of such chips include various EEPROMS (like 24c04 and 24c08 models). These dummy devices have two main uses. First, most I2C and SMBus calls except i2c_transfer() need a client handle; the dummy will be that handle. And second, this prevents the specified address from being bound to a different driver. This returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h](h)}(h**Parameters**h]jL)}(hjAh]h Parameters}(hhhjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjAubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMAhjAubjb)}(hhh](jg)}(h@``struct i2c_adapter *adapter`` the adapter managing the device h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hjAh]hstruct i2c_adapter *adapter}(hhhjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM>hjAubj)}(hhh]h)}(hthe adapter managing the deviceh]hthe adapter managing the device}(hjAhjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM>hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jfhjAhM>hjAubjg)}(h-``u16 address`` seven bit address to be used h](jm)}(h``u16 address``h]h)}(hjAh]h u16 address}(hhhjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM?hjAubj)}(hhh]h)}(hseven bit address to be usedh]hseven bit address to be used}(hjBhjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM?hjBubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jfhjBhM?hjAubeh}(h]h ]h"]h$]h&]uh1jahjAubh)}(h **Context**h]jL)}(hj9Bh]hContext}(hhhj;BhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj7Bubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMAhjAubh)}(h can sleeph]h can sleep}(hjQBhjOBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM@hjAubh)}(h**Description**h]jL)}(hj`Bh]h Description}(hhhjbBhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj^Bubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMBhjAubh)}(hThis returns an I2C client bound to the "dummy" driver, intended for use with devices that consume multiple addresses. Examples of such chips include various EEPROMS (like 24c04 and 24c08 models).h]hThis returns an I2C client bound to the “dummy” driver, intended for use with devices that consume multiple addresses. Examples of such chips include various EEPROMS (like 24c04 and 24c08 models).}(hjxBhjvBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMAhjAubh)}(hThese dummy devices have two main uses. First, most I2C and SMBus calls except i2c_transfer() need a client handle; the dummy will be that handle. And second, this prevents the specified address from being bound to a different driver.h]hThese dummy devices have two main uses. First, most I2C and SMBus calls except i2c_transfer() need a client handle; the dummy will be that handle. And second, this prevents the specified address from being bound to a different driver.}(hjBhjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMEhjAubh)}(hThis returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h]hThis returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.}(hjBhjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&devm_i2c_new_dummy_device (C function)c.devm_i2c_new_dummy_devicehNtauh1jhhhhhNhNubj)}(hhh](j)}(hlstruct i2c_client * devm_i2c_new_dummy_device (struct device *dev, struct i2c_adapter *adapter, u16 address)h]j)}(hjstruct i2c_client *devm_i2c_new_dummy_device(struct device *dev, struct i2c_adapter *adapter, u16 address)h](j)}(hjh]hstruct}(hhhjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM_ubj)}(h h]h }(hhhjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhM_ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjBmodnameN classnameNjJjM)}jP]jS)}jFdevm_i2c_new_dummy_devicesbc.devm_i2c_new_dummy_deviceasbuh1hhjBhhhjBhM_ubj)}(h h]h }(hhhjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhM_ubjg)}(hjjh]h*}(hhhjChhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjBhhhjBhM_ubj)}(hdevm_i2c_new_dummy_deviceh]j)}(hjCh]hdevm_i2c_new_dummy_device}(hhhj"ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jhjBhhhjBhM_ubj)}(h>(struct device *dev, struct i2c_adapter *adapter, u16 address)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hhhj=ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Cubj)}(h h]h }(hhhjJChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Cubh)}(hhh]j)}(hdeviceh]hdevice}(hhhj[ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXCubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj]CmodnameN classnameNjJjM)}jP]jBc.devm_i2c_new_dummy_deviceasbuh1hhj9Cubj)}(h h]h }(hhhjyChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Cubjg)}(hjjh]h*}(hhhjChhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj9Cubj)}(hdevh]hdev}(hhhjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5Cubj)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hhhjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjCmodnameN classnameNjJjM)}jP]jBc.devm_i2c_new_dummy_deviceasbuh1hhjCubj)}(h h]h }(hhhjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjg)}(hjjh]h*}(hhhjChhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjCubj)}(hadapterh]hadapter}(hhhjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5Cubj)}(h u16 addressh](h)}(hhh]j)}(hu16h]hu16}(hhhj DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj"DmodnameN classnameNjJjM)}jP]jBc.devm_i2c_new_dummy_deviceasbuh1hhjDubj)}(h h]h }(hhhj>DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(haddressh]haddress}(hhhjLDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5Cubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjBhM_ubah}(h]jBah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMghjBhhubj)}(hhh]h)}(h/return a new i2c device bound to a dummy driverh]h/return a new i2c device bound to a dummy driver}(hjyDhjwDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM^hjtDhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhM_ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jDj?jDj@uh1jhhhhhNhNubjB)}(hXn**Parameters** ``struct device *dev`` device the managed resource is bound to ``struct i2c_adapter *adapter`` the adapter managing the device ``u16 address`` seven bit address to be used **Context** can sleep **Description** This is the device-managed version of **i2c_new_dummy_device**. It returns the new i2c client or an ERR_PTR in case of an error.h](h)}(h**Parameters**h]jL)}(hjDh]h Parameters}(hhhjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjDubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMbhjDubjb)}(hhh](jg)}(h?``struct device *dev`` device the managed resource is bound to h](jm)}(h``struct device *dev``h]h)}(hjDh]hstruct device *dev}(hhhjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM_hjDubj)}(hhh]h)}(h'device the managed resource is bound toh]h'device the managed resource is bound to}(hjDhjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM_hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jfhjDhM_hjDubjg)}(h@``struct i2c_adapter *adapter`` the adapter managing the device h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hjDh]hstruct i2c_adapter *adapter}(hhhjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM`hjDubj)}(hhh]h)}(hthe adapter managing the deviceh]hthe adapter managing the device}(hj Ehj EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM`hjEubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jfhjEhM`hjDubjg)}(h-``u16 address`` seven bit address to be used h](jm)}(h``u16 address``h]h)}(hj*Eh]h u16 address}(hhhj,EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(Eubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMahj$Eubj)}(hhh]h)}(hseven bit address to be usedh]hseven bit address to be used}(hjEEhjCEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?EhMahj@Eubah}(h]h ]h"]h$]h&]uh1jhj$Eubeh}(h]h ]h"]h$]h&]uh1jfhj?EhMahjDubeh}(h]h ]h"]h$]h&]uh1jahjDubh)}(h **Context**h]jL)}(hjeEh]hContext}(hhhjgEhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjcEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMchjDubh)}(h can sleeph]h can sleep}(hj}Ehj{EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMbhjDubh)}(h**Description**h]jL)}(hjEh]h Description}(hhhjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMdhjDubh)}(hThis is the device-managed version of **i2c_new_dummy_device**. It returns the new i2c client or an ERR_PTR in case of an error.h](h&This is the device-managed version of }(h&This is the device-managed version of hjEhhhNhNubjL)}(h**i2c_new_dummy_device**h]hi2c_new_dummy_device}(hhhjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjEubhB. It returns the new i2c client or an ERR_PTR in case of an error.}(hB. It returns the new i2c client or an ERR_PTR in case of an error.hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMchjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_new_ancillary_device (C function)c.i2c_new_ancillary_devicehNtauh1jhhhhhNhNubj)}(hhh](j)}(hlstruct i2c_client * i2c_new_ancillary_device (struct i2c_client *client, const char *name, u16 default_addr)h]j)}(hjstruct i2c_client *i2c_new_ancillary_device(struct i2c_client *client, const char *name, u16 default_addr)h](j)}(hjh]hstruct}(hhhjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM|ubj)}(h h]h }(hhhjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjEhM|ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjFmodnameN classnameNjJjM)}jP]jS)}jFi2c_new_ancillary_devicesbc.i2c_new_ancillary_deviceasbuh1hhjEhhhjEhM|ubj)}(h h]h }(hhhj%FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjEhM|ubjg)}(hjjh]h*}(hhhj3FhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjEhhhjEhM|ubj)}(hi2c_new_ancillary_deviceh]j)}(hj"Fh]hi2c_new_ancillary_device}(hhhjDFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Fubah}(h]h ](jjeh"]h$]h&]jjuh1jhjEhhhjEhM|ubj)}(h?(struct i2c_client *client, const char *name, u16 default_addr)h](j)}(hstruct i2c_client *clienth](j)}(hjh]hstruct}(hhhj_FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Fubj)}(h h]h }(hhhjlFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Fubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj}FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzFubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjFmodnameN classnameNjJjM)}jP]j Fc.i2c_new_ancillary_deviceasbuh1hhj[Fubj)}(h h]h }(hhhjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Fubjg)}(hjjh]h*}(hhhjFhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj[Fubj)}(hclienth]hclient}(hhhjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWFubj)}(hconst char *nameh](j)}(hjh]hconst}(hhhjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hhhjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hcharh]hchar}(hhhjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hhhjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjg)}(hjjh]h*}(hhhjGhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjFubj)}(hnameh]hname}(hhhjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWFubj)}(hu16 default_addrh](h)}(hhh]j)}(hu16h]hu16}(hhhj/GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Gubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj1GmodnameN classnameNjJjM)}jP]j Fc.i2c_new_ancillary_deviceasbuh1hhj(Gubj)}(h h]h }(hhhjMGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Gubj)}(h default_addrh]h default_addr}(hhhj[GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWFubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjEhM|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhjEhM|ubah}(h]jEah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjEhhubj)}(hhh]h)}(hQHelper to get the instantiated secondary address and create the associated deviceh]hQHelper to get the instantiated secondary address and create the associated device}(hjGhjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM{hjGhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhM|ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jGj?jGj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_client *client`` Handle to the primary client ``const char *name`` Handle to specify which secondary address to get ``u16 default_addr`` Used as a fallback if no secondary address was specified **Context** can sleep **Description** I2C clients can be composed of multiple I2C slaves bound together in a single component. The I2C client driver then binds to the master I2C slave and needs to create I2C dummy clients to communicate with all the other slaves. This function creates and returns an I2C dummy client whose I2C address is retrieved from the platform firmware based on the given slave name. If no address is specified by the firmware default_addr is used. On DT-based platforms the address is retrieved from the "reg" property entry cell whose "reg-names" value matches the slave name. This returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h](h)}(h**Parameters**h]jL)}(hjGh]h Parameters}(hhhjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjGubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubjb)}(hhh](jg)}(h;``struct i2c_client *client`` Handle to the primary client h](jm)}(h``struct i2c_client *client``h]h)}(hjGh]hstruct i2c_client *client}(hhhjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM}hjGubj)}(hhh]h)}(hHandle to the primary clienth]hHandle to the primary client}(hjGhjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM}hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jfhjGhM}hjGubjg)}(hF``const char *name`` Handle to specify which secondary address to get h](jm)}(h``const char *name``h]h)}(hjHh]hconst char *name}(hhhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM~hjGubj)}(hhh]h)}(h0Handle to specify which secondary address to geth]h0Handle to specify which secondary address to get}(hjHhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM~hjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jfhjHhM~hjGubjg)}(hN``u16 default_addr`` Used as a fallback if no secondary address was specified h](jm)}(h``u16 default_addr``h]h)}(hj9Hh]hu16 default_addr}(hhhj;HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7Hubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj3Hubj)}(hhh]h)}(h8Used as a fallback if no secondary address was specifiedh]h8Used as a fallback if no secondary address was specified}(hjTHhjRHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNHhMhjOHubah}(h]h ]h"]h$]h&]uh1jhj3Hubeh}(h]h ]h"]h$]h&]uh1jfhjNHhMhjGubeh}(h]h ]h"]h$]h&]uh1jahjGubh)}(h **Context**h]jL)}(hjtHh]hContext}(hhhjvHhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjrHubah}(h]h ]h"]h$]h&]uh1h͕4hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubh)}(h can sleeph]h can sleep}(hjHhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubh)}(h**Description**h]jL)}(hjHh]h Description}(hhhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjHubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubh)}(hI2C clients can be composed of multiple I2C slaves bound together in a single component. The I2C client driver then binds to the master I2C slave and needs to create I2C dummy clients to communicate with all the other slaves.h]hI2C clients can be composed of multiple I2C slaves bound together in a single component. The I2C client driver then binds to the master I2C slave and needs to create I2C dummy clients to communicate with all the other slaves.}(hjHhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubh)}(hThis function creates and returns an I2C dummy client whose I2C address is retrieved from the platform firmware based on the given slave name. If no address is specified by the firmware default_addr is used.h]hThis function creates and returns an I2C dummy client whose I2C address is retrieved from the platform firmware based on the given slave name. If no address is specified by the firmware default_addr is used.}(hjHhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubh)}(hOn DT-based platforms the address is retrieved from the "reg" property entry cell whose "reg-names" value matches the slave name.h]hOn DT-based platforms the address is retrieved from the “reg” property entry cell whose “reg-names” value matches the slave name.}(hjHhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubh)}(hThis returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h]hThis returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.}(hjHhjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_verify_adapter (C function)c.i2c_verify_adapterhNtauh1jhhhhhNhNubj)}(hhh](j)}(hj!Jj?j!Jj@uh1jhhhhhNhNubjB)}(hXu**Parameters** ``struct device *dev`` device, probably from some driver model iterator **Description** When traversing the driver model tree, perhaps using driver model iterators like **device_for_each_child\(\)**, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_adapter.h](h)}(h**Parameters**h]jL)}(hj+Jh]h Parameters}(hhhj-JhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj)Jubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMMhj%Jubjb)}(hhh]jg)}(hH``struct device *dev`` device, probably from some driver model iterator h](jm)}(h``struct device *dev``h]h)}(hjJJh]hstruct device *dev}(hhhjLJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHJubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJhjDJubj)}(hhh]h)}(h0device, probably from some driver model iteratorh]h0device, probably from some driver model iterator}(hjeJhjcJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_JhMJhj`Jubah}(h]h ]h"]h$]h&]uh1jhjDJubeh}(h]h ]h"]h$]h&]uh1jfhj_JhMJhjAJubah}(h]h ]h"]h$]h&]uh1jahj%Jubh)}(h**Description**h]jL)}(hjJh]h Description}(hhhjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMLhj%Jubh)}(hX When traversing the driver model tree, perhaps using driver model iterators like **device_for_each_child\(\)**, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_adapter.h](hQWhen traversing the driver model tree, perhaps using driver model iterators like }(hQWhen traversing the driver model tree, perhaps using driver model iterators like hjJhhhNhNubjL)}(h**device_for_each_child\(\)**h]hdevice_for_each_child()}(hhhjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjJubh, you can’t assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_adapter.}(h, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_adapter.hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMLhj%Jubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)i2c_handle_smbus_host_notify (C function)c.i2c_handle_smbus_host_notifyhNtauh1jhhhhhNhNubj)}(hhh](j)}(hPint i2c_handle_smbus_host_notify (struct i2c_adapter *adap, unsigned short addr)h]j)}(hOint i2c_handle_smbus_host_notify(struct i2c_adapter *adap, unsigned short addr)h](j)}(hinth]hint}(hhhjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjJhMubj)}(hi2c_handle_smbus_host_notifyh]j)}(hi2c_handle_smbus_host_notifyh]hi2c_handle_smbus_host_notify}(hhhjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jhjJhhhjJhMubj)}(h/(struct i2c_adapter *adap, unsigned short addr)h](j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hhhjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hhhj(KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj9KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Kubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj;KmodnameN classnameNjJjM)}jP]jS)}jFjKsbc.i2c_handle_smbus_host_notifyasbuh1hhjKubj)}(h h]h }(hhhjYKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjg)}(hjjh]h*}(hhhjgKhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjKubj)}(hadaph]hadap}(hhhjtKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hunsigned short addrh](j)}(hunsignedh]hunsigned}(hhhjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hhhjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hshorth]hshort}(hhhjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hhhjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(haddrh]haddr}(hhhjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjJhMubah}(h]jJah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjJhhubj)}(hhh]h)}(h6Forward a Host Notify event to the correct I2C client.h]h6Forward a Host Notify event to the correct I2C client.}(hjKhjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMubeh}(h]h ](j functioneh"]h$]h&]j=j j>jLj?jLj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_adapter *adap`` the adapter ``unsigned short addr`` the I2C address of the notifying device **Context** can't sleep **Description** Helper function to be called from an I2C bus driver's interrupt handler. It will schedule the Host Notify IRQ.h](h)}(h**Parameters**h]jL)}(hjLh]h Parameters}(hhhjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjLubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj Lubjb)}(hhh](jg)}(h)``struct i2c_adapter *adap`` the adapter h](jm)}(h``struct i2c_adapter *adap``h]h)}(hj1Lh]hstruct i2c_adapter *adap}(hhhj3LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/Lubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj+Lubj)}(hhh]h)}(h the adapterh]h the adapter}(hjLLhjJLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFLhMhjGLubah}(h]h ]h"]h$]h&]uh1jhj+Lubeh}(h]h ]h"]h$]h&]uh1jfhjFLhMhj(Lubjg)}(h@``unsigned short addr`` the I2C address of the notifying device h](jm)}(h``unsigned short addr``h]h)}(hjjLh]hunsigned short addr}(hhhjlLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhLubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjdLubj)}(hhh]h)}(h'the I2C address of the notifying deviceh]h'the I2C address of the notifying device}(hjLhjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjdLubeh}(h]h ]h"]h$]h&]uh1jfhjLhMhj(Lubeh}(h]h ]h"]h$]h&]uh1jahj Lubh)}(h **Context**h]jL)}(hjLh]hContext}(hhhjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjLubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj Lubh)}(h can't sleeph]h can’t sleep}(hjLhjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj Lubh)}(h**Description**h]jL)}(hjLh]h Description}(hhhjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjLubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj Lubh)}(hnHelper function to be called from an I2C bus driver's interrupt handler. It will schedule the Host Notify IRQ.h]hpHelper function to be called from an I2C bus driver’s interrupt handler. It will schedule the Host Notify IRQ.}(hjLhjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj Lubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_add_adapter (C function)c.i2c_add_adapterhNtauh1jhhhhhNhNubj)}(hhh](j)}(h1int i2c_add_adapter (struct i2c_adapter *adapter)h]j)}(h0int i2c_add_adapter(struct i2c_adapter *adapter)h](j)}(hinth]hint}(hhhjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj MhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMDubj)}(h h]h }(hhhj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj MhhhjMhMDubj)}(hi2c_add_adapterh]j)}(hi2c_add_adapterh]hi2c_add_adapter}(hhhj2MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Mubah}(h]h ](jjeh"]h$]h&]jjuh1jhj MhhhjMhMDubj)}(h(struct i2c_adapter *adapter)h]j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhjNMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJMubj)}(h h]h }(hhhj[MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJMubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjlMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiMubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjnMmodnameN classnameNjJjM)}jP]jS)}jFj4Msbc.i2c_add_adapterasbuh1hhjJMubj)}(h h]h }(hhhjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJMubjg)}(hjjh]h*}(hhhjMhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjJMubj)}(hadapterh]hadapter}(hhhjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFMubah}(h]h ]h"]h$]h&]jjuh1jhj MhhhjMhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj MhhhjMhMDubah}(h]jMah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMPhjMhhubj)}(hhh]h)}(h+declare i2c adapter, use dynamic bus numberh]h+declare i2c adapter, use dynamic bus number}(hjMhjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMChjMhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMDubeh}(h]h ](j functioneh"]h$]h&]j=j j>jMj?jMj@uh1jhhhhhNhNubjB)}(hX"**Parameters** ``struct i2c_adapter *adapter`` the adapter to add **Context** can sleep **Description** This routine is used to declare an I2C adapter when its bus number doesn't matter or when its bus number is specified by an dt alias. Examples of bases when the bus number doesn't matter: I2C adapters dynamically added by USB links or PCI plugin cards. 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.h](h)}(h**Parameters**h]jL)}(hjMh]h Parameters}(hhhjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjMubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMGhjMubjb)}(hhh]jg)}(h3``struct i2c_adapter *adapter`` the adapter to add h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hjNh]hstruct i2c_adapter *adapter}(hhhjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMDhj Nubj)}(hhh]h)}(hthe adapter to addh]hthe adapter to add}(hj.Nhj,NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(NhMDhj)Nubah}(h]h ]h"]h$]h&]uh1jhj Nubeh}(h]h ]h"]h$]h&]uh1jfhj(NhMDhj Nubah}(h]h ]h"]h$]h&]uh1jahjMubh)}(h **Context**h]jL)}(hjNNh]hContext}(hhhjPNhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjLNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMFhjMubh)}(h can sleeph]h can sleep}(hjfNhjdNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMEhjMubh)}(h**Description**h]jL)}(hjuNh]h Description}(hhhjwNhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjsNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMGhjMubh)}(hThis routine is used to declare an I2C adapter when its bus number doesn't matter or when its bus number is specified by an dt alias. Examples of bases when the bus number doesn't matter: I2C adapters dynamically added by USB links or PCI plugin cards.h]hXThis routine is used to declare an I2C adapter when its bus number doesn’t matter or when its bus number is specified by an dt alias. Examples of bases when the bus number doesn’t matter: I2C adapters dynamically added by USB links or PCI plugin cards.}(hjNhjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMFhjMubh)}(hWhen 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.h]hWhen 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.}(hjNhjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMKhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_add_numbered_adapter (C function)c.i2c_add_numbered_adapterhNtauh1jhhhhhNhNubj)}(hhh](j)}(h7int i2c_add_numbered_adapter (struct i2c_adapter *adap)h]j)}(h6int i2c_add_numbered_adapter(struct i2c_adapter *adap)h](j)}(hinth]hint}(hhhjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMlubj)}(h h]h }(hhhjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMlubj)}(hi2c_add_numbered_adapterh]j)}(hi2c_add_numbered_adapterh]hi2c_add_numbered_adapter}(hhhjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jhjNhhhjNhMlubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hhhjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hhhjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj$OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Oubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj&OmodnameN classnameNjJjM)}jP]jS)}jFjNsbc.i2c_add_numbered_adapterasbuh1hhjOubj)}(h h]h }(hhhjDOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjg)}(hjjh]h*}(hhhjROhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjOubj)}(hadaph]hadap}(hhhj_OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubah}(h]h ]h"]h$]h&]jjuh1jhjNhhhjNhMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMlubah}(h]jNah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjNhhubj)}(hhh]h)}(h*declare i2c adapter, use static bus numberh]h*declare i2c adapter, use static bus number}(hjOhjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMkhjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMlubeh}(h]h ](j functioneh"]h$]h&]j=j j>jOj?jOj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_adapter *adap`` the adapter to register (with adap->nr initialized) **Context** can sleep **Description** This routine is used to declare an I2C adapter when its bus number matters. For example, use it for I2C adapters from system-on-chip CPUs, or otherwise built in to the system's mainboard, and where i2c_board_info is used to properly configure I2C devices. If the requested bus number is set to -1, then this function will behave identically to i2c_add_adapter, and will dynamically assign a bus number. If no devices have pre-been declared for this bus, then be sure to register the adapter before any dynamically allocated ones. Otherwise the required bus ID may not be available. When this returns zero, the specified adapter became available for clients using the bus number provided in adap->nr. Also, the table of I2C devices pre-declared using i2c_register_board_info() is scanned, and the appropriate driver model device nodes are created. Otherwise, a negative errno value is returned.h](h)}(h**Parameters**h]jL)}(hjOh]h Parameters}(hhhjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjOubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMohjOubjb)}(hhh]jg)}(hQ``struct i2c_adapter *adap`` the adapter to register (with adap->nr initialized) h](jm)}(h``struct i2c_adapter *adap``h]h)}(hjOh]hstruct i2c_adapter *adap}(hhhjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMlhjOubj)}(hhh]h)}(h3the adapter to register (with adap->nr initialized)h]h3the adapter to register (with adap->nr initialized)}(hjOhjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMlhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jfhjOhMlhjOubah}(h]h ]h"]h$]h&]uh1jahjOubh)}(h **Context**h]jL)}(hjPh]hContext}(hhhjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjPubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMnhjOubh)}(h can sleeph]h can sleep}(hjPhjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMmhjOubh)}(h**Description**h]jL)}(hj-Ph]h Description}(hhhj/PhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj+Pubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMohjOubh)}(hXThis routine is used to declare an I2C adapter when its bus number matters. For example, use it for I2C adapters from system-on-chip CPUs, or otherwise built in to the system's mainboard, and where i2c_board_info is used to properly configure I2C devices.h]hXThis routine is used to declare an I2C adapter when its bus number matters. For example, use it for I2C adapters from system-on-chip CPUs, or otherwise built in to the system’s mainboard, and where i2c_board_info is used to properly configure I2C devices.}(hjEPhjCPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMnhjOubh)}(hIf the requested bus number is set to -1, then this function will behave identically to i2c_add_adapter, and will dynamically assign a bus number.h]hIf the requested bus number is set to -1, then this function will behave identically to i2c_add_adapter, and will dynamically assign a bus number.}(hjTPhjRPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMshjOubh)}(hIf no devices have pre-been declared for this bus, then be sure to register the adapter before any dynamically allocated ones. Otherwise the required bus ID may not be available.h]hIf no devices have pre-been declared for this bus, then be sure to register the adapter before any dynamically allocated ones. Otherwise the required bus ID may not be available.}(hjcPhjaPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMvhjOubh)}(hX9When this returns zero, the specified adapter became available for clients using the bus number provided in adap->nr. Also, the table of I2C devices pre-declared using i2c_register_board_info() is scanned, and the appropriate driver model device nodes are created. Otherwise, a negative errno value is returned.h]hX9When this returns zero, the specified adapter became available for clients using the bus number provided in adap->nr. Also, the table of I2C devices pre-declared using i2c_register_board_info() is scanned, and the appropriate driver model device nodes are created. Otherwise, a negative errno value is returned.}(hjrPhjpPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMzhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_del_adapter (C function)c.i2c_del_adapterhNtauh1jhhhhhNhNubj)}(hhh](j)}(h/void i2c_del_adapter (struct i2c_adapter *adap)h]j)}(h.void i2c_del_adapter(struct i2c_adapter *adap)h](j)}(hvoidh]hvoid}(hhhjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhMubj)}(hi2c_del_adapterh]j)}(hi2c_del_adapterh]hi2c_del_adapter}(hhhjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jhjPhhhjPhMubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hhhjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hhhjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjPmodnameN classnameNjJjM)}jP]jS)}jFjPsbc.i2c_del_adapterasbuh1hhjPubj)}(h h]h }(hhhjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjg)}(hjjh]h*}(hhhj(QhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjPubj)}(hadaph]hadap}(hhhj5QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjPhhubj)}(hhh]h)}(hunregister I2C adapterh]hunregister I2C adapter}(hjbQhj`QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj]Qhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMubeh}(h]h ](j functioneh"]h$]h&]j=j j>jxQj?jxQj@uh1jhhhhhNhNubjB)}(h**Parameters** ``struct i2c_adapter *adap`` the adapter being unregistered **Context** can sleep **Description** This unregisters an I2C adapter which was previously registered by **i2c_add_adapter** or **i2c_add_numbered_adapter**.h](h)}(h**Parameters**h]jL)}(hjQh]h Parameters}(hhhjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj|Qubjb)}(hhh]jg)}(h<``struct i2c_adapter *adap`` the adapter being unregistered h](jm)}(h``struct i2c_adapter *adap``h]h)}(hjQh]hstruct i2c_adapter *adap}(hhhjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubj)}(hhh]h)}(hthe adapter being unregisteredh]hthe adapter being unregistered}(hjQhjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jfhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jahj|Qubh)}(h **Context**h]jL)}(hjQh]hContext}(hhhjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj|Qubh)}(h can sleeph]h can sleep}(hjQhjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj|Qubh)}(h**Description**h]jL)}(hjRh]h Description}(hhhjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj|Qubh)}(hwThis unregisters an I2C adapter which was previously registered by **i2c_add_adapter** or **i2c_add_numbered_adapter**.h](hCThis unregisters an I2C adapter which was previously registered by }(hCThis unregisters an I2C adapter which was previously registered by hjRhhhNhNubjL)}(h**i2c_add_adapter**h]hi2c_add_adapter}(hhhj"RhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjRubh or }(h or hjRhhhNhNubjL)}(h**i2c_add_numbered_adapter**h]hi2c_add_numbered_adapter}(hhhj5RhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjRubh.}(hj0hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj|Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!devm_i2c_add_adapter (C function)c.devm_i2c_add_adapterhNtauh1jhhhhhNhNubj)}(hhh](j)}(hJint devm_i2c_add_adapter (struct device *dev, struct i2c_adapter *adapter)h]j)}(hIint devm_i2c_add_adapter(struct device *dev, struct i2c_adapter *adapter)h](j)}(hinth]hint}(hhhjnRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjRhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM ubj)}(h h]h }(hhhj}RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjRhhhj|RhM ubj)}(hdevm_i2c_add_adapterh]j)}(hdevm_i2c_add_adapterh]hdevm_i2c_add_adapter}(hhhjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jhjjRhhhj|RhM ubj)}(h1(struct device *dev, struct i2c_adapter *adapter)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hhhjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hhhjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(hdeviceh]hdevice}(hhhjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjRmodnameN classnameNjJjM)}jP]jS)}jFjRsbc.devm_i2c_add_adapterasbuh1hhjRubj)}(h h]h }(hhhjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjg)}(hjjh]h*}(hhhjRhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjRubj)}(hdevh]hdev}(hhhjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hhhj*ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj;ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8Subah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj=SmodnameN classnameNjJjM)}jP]jRc.devm_i2c_add_adapterasbuh1hhjSubj)}(h h]h }(hhhjYShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjg)}(hjjh]h*}(hhhjgShhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjSubj)}(hadapterh]hadapter}(hhhjtShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjjRhhhj|RhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfRhhhj|RhM ubah}(h]jaRah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcRhhubj)}(hhh]h)}(h+device-managed variant of i2c_add_adapter()h]h+device-managed variant of i2c_add_adapter()}(hjShjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjShhubah}(h]h ]h"]h$]h&]uh1jhjcRhhhj|RhM ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jSj?jSj@uh1jhhhhhNhNubjB)}(hX,**Parameters** ``struct device *dev`` managing device for adding this I2C adapter ``struct i2c_adapter *adapter`` the adapter to add **Context** can sleep **Description** Add adapter with dynamic bus number, same with i2c_add_adapter() but the adapter will be auto deleted on driver detach.h](h)}(h**Parameters**h]jL)}(hjSh]h Parameters}(hhhjShhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjSubjb)}(hhh](jg)}(hC``struct device *dev`` managing device for adding this I2C adapter h](jm)}(h``struct device *dev``h]h)}(hjSh]hstruct device *dev}(hhhjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjSubj)}(hhh]h)}(h+managing device for adding this I2C adapterh]h+managing device for adding this I2C adapter}(hjShjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jfhjShM hjSubjg)}(h3``struct i2c_adapter *adapter`` the adapter to add h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hjTh]hstruct i2c_adapter *adapter}(hhhjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjTubj)}(hhh]h)}(hthe adapter to addh]hthe adapter to add}(hj4Thj2ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ThM hj/Tubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jfhj.ThM hjSubeh}(h]h ]h"]h$]h&]uh1jahjSubh)}(h **Context**h]jL)}(hjTTh]hContext}(hhhjVThhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjRTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjSubh)}(h can sleeph]h can sleep}(hjlThjjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjSubh)}(h**Description**h]jL)}(hj{Th]h Description}(hhhj}ThhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjyTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjSubh)}(hwAdd adapter with dynamic bus number, same with i2c_add_adapter() but the adapter will be auto deleted on driver detach.h]hwAdd adapter with dynamic bus number, same with i2c_add_adapter() but the adapter will be auto deleted on driver detach.}(hjThjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_find_adapter_by_fwnode (C function)c.i2c_find_adapter_by_fwnodehNtauh1jhhhhhNhNubj)}(hhh](j)}(hNstruct i2c_adapter * i2c_find_adapter_by_fwnode (struct fwnode_handle *fwnode)h]j)}(hLstruct i2c_adapter *i2c_find_adapter_by_fwnode(struct fwnode_handle *fwnode)h](j)}(hjh]hstruct}(hhhjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM,ubj)}(h h]h }(hhhjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThM,ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjTmodnameN classnameNjJjM)}jP]jS)}jFi2c_find_adapter_by_fwnodesbc.i2c_find_adapter_by_fwnodeasbuh1hhjThhhjThM,ubj)}(h h]h }(hhhjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThM,ubjg)}(hjjh]h*}(hhhjUhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjThhhjThM,ubj)}(hi2c_find_adapter_by_fwnodeh]j)}(hjTh]hi2c_find_adapter_by_fwnode}(hhhjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jhjThhhjThM,ubj)}(h(struct fwnode_handle *fwnode)h]j)}(hstruct fwnode_handle *fwnodeh](j)}(hjh]hstruct}(hhhj:UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Uubj)}(h h]h }(hhhjGUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Uubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hhhjXUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUUubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjZUmodnameN classnameNjJjM)}jP]jTc.i2c_find_adapter_by_fwnodeasbuh1hhj6Uubj)}(h h]h }(hhhjvUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Uubjg)}(hjjh]h*}(hhhjUhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj6Uubj)}(hfwnodeh]hfwnode}(hhhjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2Uubah}(h]h ]h"]h$]h&]jjuh1jhjThhhjThM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThM,ubah}(h]jTah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM3hjThhubj)}(hhh]h)}(h"find an i2c_adapter for the fwnodeh]h"find an i2c_adapter for the fwnode}(hjUhjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM+hjUhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThM,ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jUj?jUj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` **Description** Look up and return the :c:type:`struct i2c_adapter ` corresponding to the **fwnode**. If no adapter can be found, or **fwnode** is NULL, this returns NULL. The user must call put_device(:c:type:`adapter->dev `) once done with the i2c adapter.h](h)}(h**Parameters**h]jL)}(hjUh]h Parameters}(hhhjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM/hjUubjb)}(hhh]jg)}(h``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` h](jm)}(h ``struct fwnode_handle *fwnode``h]h)}(hjUh]hstruct fwnode_handle *fwnode}(hhhjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM,hjUubj)}(hhh]h)}(hn:c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter `h](h)}(h.:c:type:`struct fwnode_handle `h]h)}(hjVh]hstruct fwnode_handle}(hhhjVhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj fwnode_handleuh1hhjVhM,hjVubh corresponding to the }(h corresponding to the hjVhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]h)}(hj@Vh]hstruct i2c_adapter}(hhhjBVhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhj>Vubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj i2c_adapteruh1hhjVhM,hjVubeh}(h]h ]h"]h$]h&]uh1hhjVhM,hjVubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jfhjVhM,hjUubah}(h]h ]h"]h$]h&]uh1jahjUubh)}(h**Description**h]jL)}(hjwVh]h Description}(hhhjyVhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjuVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM.hjUubh)}(hLook up and return the :c:type:`struct i2c_adapter ` corresponding to the **fwnode**. If no adapter can be found, or **fwnode** is NULL, this returns NULL.h](hLook up and return the }(hLook up and return the hjVhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]h)}(hjVh]hstruct i2c_adapter}(hhhjVhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj i2c_adapteruh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM.hjVubh corresponding to the }(h corresponding to the hjVhhhNhNubjL)}(h **fwnode**h]hfwnode}(hhhjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjVubh!. If no adapter can be found, or }(h!. If no adapter can be found, or hjVhhhNhNubjL)}(h **fwnode**h]hfwnode}(hhhjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjVubh is NULL, this returns NULL.}(h is NULL, this returns NULL.hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhM.hjUubh)}(h_The user must call put_device(:c:type:`adapter->dev `) once done with the i2c adapter.h](hThe user must call put_device(}(hThe user must call put_device(hjVhhhNhNubh)}(h :c:type:`adapter->dev `h]h)}(hjVh]h adapter->dev}(hhhjVhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjadapteruh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM1hjVubh!) once done with the i2c adapter.}(h!) once done with the i2c adapter.hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhM1hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_get_adapter_by_fwnode (C function)c.i2c_get_adapter_by_fwnodehNtauh1jhhhhhNhNubj)}(hhh](j)}(hMstruct i2c_adapter * i2c_get_adapter_by_fwnode (struct fwnode_handle *fwnode)h]j)}(hKstruct i2c_adapter *i2c_get_adapter_by_fwnode(struct fwnode_handle *fwnode)h](j)}(hjh]hstruct}(hhhj;WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7WhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJubj)}(h h]h }(hhhjIWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7WhhhjHWhMJubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjZWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWWubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj\WmodnameN classnameNjJjM)}jP]jS)}jFi2c_get_adapter_by_fwnodesbc.i2c_get_adapter_by_fwnodeasbuh1hhj7WhhhjHWhMJubj)}(h h]h }(hhhj{WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7WhhhjHWhMJubjg)}(hjjh]h*}(hhhjWhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj7WhhhjHWhMJubj)}(hi2c_get_adapter_by_fwnodeh]j)}(hjxWh]hi2c_get_adapter_by_fwnode}(hhhjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jhj7WhhhjHWhMJubj)}(h(struct fwnode_handle *fwnode)h]j)}(hstruct fwnode_handle *fwnodeh](j)}(hjh]hstruct}(hhhjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hhhjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hhhjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjWmodnameN classnameNjJjM)}jP]jvWc.i2c_get_adapter_by_fwnodeasbuh1hhjWubj)}(h h]h }(hhhjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjg)}(hjjh]h*}(hhhjWhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjWubj)}(hfwnodeh]hfwnode}(hhhj XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhj7WhhhjHWhMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3WhhhjHWhMJubah}(h]j.Wah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMShj0Whhubj)}(hhh]h)}(h"find an i2c_adapter for the fwnodeh]h"find an i2c_adapter for the fwnode}(hj9Xhj7XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMIhj4Xhhubah}(h]h ]h"]h$]h&]uh1jhj0WhhhjHWhMJubeh}(h]h ](j functioneh"]h$]h&]j=j j>jOXj?jOXj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` **Description** Look up and return the :c:type:`struct i2c_adapter ` corresponding to the **fwnode**, and increment the adapter module's use count. If no adapter can be found, or **fwnode** is NULL, this returns NULL. The user must call i2c_put_adapter(adapter) once done with the i2c adapter. Note that this is different from i2c_find_adapter_by_node().h](h)}(h**Parameters**h]jL)}(hjYXh]h Parameters}(hhhj[XhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjWXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMMhjSXubjb)}(hhh]jg)}(h``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` h](jm)}(h ``struct fwnode_handle *fwnode``h]h)}(hjxXh]hstruct fwnode_handle *fwnode}(hhhjzXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvXubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJhjrXubj)}(hhh]h)}(hn:c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter `h](h)}(h.:c:type:`struct fwnode_handle `h]h)}(hjXh]hstruct fwnode_handle}(hhhjXhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj fwnode_handleuh1hhjXhMJhjXubh corresponding to the }(h corresponding to the hjXhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]h)}(hjXh]hstruct i2c_adapter}(hhhjXhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj i2c_adapteruh1hhjXhMJhjXubeh}(h]h ]h"]h$]h&]uh1hhjXhMJhjXubah}(h]h ]h"]h$]h&]uh1jhjrXubeh}(h]h ]h"]h$]h&]uh1jfhjXhMJhjoXubah}(h]h ]h"]h$]h&]uh1jahjSXubh)}(h**Description**h]jL)}(hjXh]h Description}(hhhjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMLhjSXubh)}(hLook up and return the :c:type:`struct i2c_adapter ` corresponding to the **fwnode**, and increment the adapter module's use count. If no adapter can be found, or **fwnode** is NULL, this returns NULL.h](hLook up and return the }(hLook up and return the hjYhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]h)}(hjYh]hstruct i2c_adapter}(hhhjYhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj i2c_adapteruh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMLhjYubh corresponding to the }(h corresponding to the hjYhhhNhNubjL)}(h **fwnode**h]hfwnode}(hhhj6YhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjYubhQ, and increment the adapter module’s use count. If no adapter can be found, or }(hO, and increment the adapter module's use count. If no adapter can be found, or hjYhhhNhNubjL)}(h **fwnode**h]hfwnode}(hhhjIYhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjYubh is NULL, this returns NULL.}(h is NULL, this returns NULL.hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0YhMLhjSXubh)}(hThe user must call i2c_put_adapter(adapter) once done with the i2c adapter. Note that this is different from i2c_find_adapter_by_node().h]hThe user must call i2c_put_adapter(adapter) once done with the i2c adapter. Note that this is different from i2c_find_adapter_by_node().}(hjdYhjbYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMPhjSXubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_parse_fw_timings (C function)c.i2c_parse_fw_timingshNtauh1jhhhhhNhNubj)}(hhh](j)}(hXvoid i2c_parse_fw_timings (struct device *dev, struct i2c_timings *t, bool use_defaults)h]j)}(hWvoid i2c_parse_fw_timings(struct device *dev, struct i2c_timings *t, bool use_defaults)h](j)}(hvoidh]hvoid}(hhhjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMrubj)}(h h]h }(hhhjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMrubj)}(hi2c_parse_fw_timingsh]j)}(hi2c_parse_fw_timingsh]hi2c_parse_fw_timings}(hhhjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jhjYhhhjYhMrubj)}(h>(struct device *dev, struct i2c_timings *t, bool use_defaults)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hhhjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hhhjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(hdeviceh]hdevice}(hhhjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjYmodnameN classnameNjJjM)}jP]jS)}jFjYsbc.i2c_parse_fw_timingsasbuh1hhjYubj)}(h h]h }(hhhj ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjg)}(hjjh]h*}(hhhjZhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjYubj)}(hdevh]hdev}(hhhj'ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hstruct i2c_timings *th](j)}(hjh]hstruct}(hhhj@ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj[j?j[j@uh1jhhhhhNhNubjB)}(hXt**Parameters** ``struct device *dev`` The device to scan for I2C timing properties ``struct i2c_timings *t`` the i2c_timings struct to be filled with values ``bool use_defaults`` bool to use sane defaults derived from the I2C specification when properties are not found, otherwise don't update **Description** Scan the device for the generic I2C properties describing timing parameters for the signal and fill the given struct with the results. If a property was not found and use_defaults was true, then maximum timings are assumed which are derived from the I2C specification. If use_defaults is not used, the results will be as before, so drivers can apply their own defaults before calling this helper. The latter is mainly intended for avoiding regressions of existing drivers which want to switch to this function. New drivers almost always should use the defaults.h](h)}(h**Parameters**h]jL)}(hj[h]h Parameters}(hhhj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMuhj[ubjb)}(hhh](jg)}(hD``struct device *dev`` The device to scan for I2C timing properties h](jm)}(h``struct device *dev``h]h)}(hj7[h]hstruct device *dev}(hhhj9[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5[ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMrhj1[ubj)}(hhh]h)}(h,The device to scan for I2C timing propertiesh]h,The device to scan for I2C timing properties}(hjR[hjP[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL[hMrhjM[ubah}(h]h ]h"]h$]h&]uh1jhj1[ubeh}(h]h ]h"]h$]h&]uh1jfhjL[hMrhj.[ubjg)}(hJ``struct i2c_timings *t`` the i2c_timings struct to be filled with values h](jm)}(h``struct i2c_timings *t``h]h)}(hjp[h]hstruct i2c_timings *t}(hhhjr[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn[ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMshjj[ubj)}(hhh]h)}(h/the i2c_timings struct to be filled with valuesh]h/the i2c_timings struct to be filled with values}(hj[hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMshj[ubah}(h]h ]h"]h$]h&]uh1jhjj[ubeh}(h]h ]h"]h$]h&]uh1jfhj[hMshj.[ubjg)}(h``bool use_defaults`` bool to use sane defaults derived from the I2C specification when properties are not found, otherwise don't update h](jm)}(h``bool use_defaults``h]h)}(hj[h]hbool use_defaults}(hhhj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMuhj[ubj)}(hhh]h)}(hrbool to use sane defaults derived from the I2C specification when properties are not found, otherwise don't updateh]htbool to use sane defaults derived from the I2C specification when properties are not found, otherwise don’t update}(hj[hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMthj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jfhj[hMuhj.[ubeh}(h]h ]h"]h$]h&]uh1jahj[ubh)}(h**Description**h]jL)}(hj[h]h Description}(hhhj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMwhj[ubh)}(hX1Scan the device for the generic I2C properties describing timing parameters for the signal and fill the given struct with the results. If a property was not found and use_defaults was true, then maximum timings are assumed which are derived from the I2C specification. If use_defaults is not used, the results will be as before, so drivers can apply their own defaults before calling this helper. The latter is mainly intended for avoiding regressions of existing drivers which want to switch to this function. New drivers almost always should use the defaults.h]hX1Scan the device for the generic I2C properties describing timing parameters for the signal and fill the given struct with the results. If a property was not found and use_defaults was true, then maximum timings are assumed which are derived from the I2C specification. If use_defaults is not used, the results will be as before, so drivers can apply their own defaults before calling this helper. The latter is mainly intended for avoiding regressions of existing drivers which want to switch to this function. New drivers almost always should use the defaults.}(hj[hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMwhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_del_driver (C function)c.i2c_del_driverhNtauh1jhhhhhNhNubj)}(hhh](j)}(h/void i2c_del_driver (struct i2c_driver *driver)h]j)}(h.void i2c_del_driver(struct i2c_driver *driver)h](j)}(hvoidh]hvoid}(hhhj*\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&\hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhj9\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&\hhhj8\hMubj)}(hi2c_del_driverh]j)}(hi2c_del_driverh]hi2c_del_driver}(hhhjK\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG\ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj&\hhhj8\hMubj)}(h(struct i2c_driver *driver)h]j)}(hstruct i2c_driver *driverh](j)}(hjh]hstruct}(hhhjg\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc\ubj)}(h h]h }(hhhjt\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc\ubh)}(hhh]j)}(h i2c_driverh]h i2c_driver}(hhhj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj\modnameN classnameNjJjM)}jP]jS)}jFjM\sbc.i2c_del_driverasbuh1hhjc\ubj)}(h h]h }(hhhj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc\ubjg)}(hjjh]h*}(hhhj\hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjc\ubj)}(hdriverh]hdriver}(hhhj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_\ubah}(h]h ]h"]h$]h&]jjuh1jhj&\hhhj8\hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"\hhhj8\hMubah}(h]j\ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj\hhubj)}(hhh]h)}(hunregister I2C driverh]hunregister I2C driver}(hj\hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj\hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj8\hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>j]j?j]j@uh1jhhhhhNhNubjB)}(he**Parameters** ``struct i2c_driver *driver`` the driver being unregistered **Context** can sleeph](h)}(h**Parameters**h]jL)}(hj ]h]h Parameters}(hhhj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj ]ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj]ubjb)}(hhh]jg)}(h<``struct i2c_driver *driver`` the driver being unregistered h](jm)}(h``struct i2c_driver *driver``h]h)}(hj,]h]hstruct i2c_driver *driver}(hhhj.]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*]ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj&]ubj)}(hhh]h)}(hthe driver being unregisteredh]hthe driver being unregistered}(hjG]hjE]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA]hMhjB]ubah}(h]h ]h"]h$]h&]uh1jhj&]ubeh}(h]h ]h"]h$]h&]uh1jfhjA]hMhj#]ubah}(h]h ]h"]h$]h&]uh1jahj]ubh)}(h **Context**h]jL)}(hjg]h]hContext}(hhhji]hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhje]ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj]ubh)}(h can sleeph]h can sleep}(hj]hj}]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j__i2c_transfer (C function)c.__i2c_transferhNtauh1jhhhhhNhNubj)}(hhh](j)}(hLint __i2c_transfer (struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h]j)}(hKint __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hinth]hint}(hhhj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hMubj)}(h__i2c_transferh]j)}(h__i2c_transferh]h__i2c_transfer}(hhhj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj]hhhj]hMubj)}(h9(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hhhj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hhhj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj ^modnameN classnameNjJjM)}jP]jS)}jFj]sbc.__i2c_transferasbuh1hhj]ubj)}(h h]h }(hhhj'^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjg)}(hjjh]h*}(hhhj5^hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj]ubj)}(hadaph]hadap}(hhhjB^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hstruct i2c_msg *msgsh](j)}(hjh]hstruct}(hhhj[^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW^ubj)}(h h]h }(hhhjh^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW^ubh)}(hhh]j)}(hi2c_msgh]hi2c_msg}(hhhjy^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv^ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj{^modnameN classnameNjJjM)}jP]j#^c.__i2c_transferasbuh1hhjW^ubj)}(h h]h }(hhhj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW^ubjg)}(hjjh]h*}(hhhj^hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjW^ubj)}(hmsgsh]hmsgs}(hhhj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hint numh](j)}(hinth]hint}(hhhj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hhhj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hnumh]hnum}(hhhj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhj]hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj]hMubah}(h]j]ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj]hhubj)}(hhh]h)}(hunlocked flavor of i2c_transferh]hunlocked flavor of i2c_transfer}(hj_hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj_hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>j*_j?j*_j@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_adapter *adap`` Handle to I2C bus ``struct i2c_msg *msgs`` One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START. ``int num`` Number of messages to be executed. **Description** Returns negative errno, else the number of messages executed. Adapter lock must be held when calling this function. No debug logging takes place.h](h)}(h**Parameters**h]jL)}(hj4_h]h Parameters}(hhhj6_hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj2_ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj._ubjb)}(hhh](jg)}(h/``struct i2c_adapter *adap`` Handle to I2C bus h](jm)}(h``struct i2c_adapter *adap``h]h)}(hjS_h]hstruct i2c_adapter *adap}(hhhjU_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ_ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjM_ubj)}(hhh]h)}(hHandle to I2C bush]hHandle to I2C bus}(hjn_hjl_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh_hMhji_ubah}(h]h ]h"]h$]h&]uh1jhjM_ubeh}(h]h ]h"]h$]h&]uh1jfhjh_hMhjJ_ubjg)}(h``struct i2c_msg *msgs`` One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START. h](jm)}(h``struct i2c_msg *msgs``h]h)}(hj_h]hstruct i2c_msg *msgs}(hhhj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj_ubj)}(hhh]h)}(hsOne or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.h]hsOne or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.}(hj_hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jfhj_hMhjJ_ubjg)}(h/``int num`` Number of messages to be executed. h](jm)}(h ``int num``h]h)}(hj_h]hint num}(hhhj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj_ubj)}(hhh]h)}(h"Number of messages to be executed.h]h"Number of messages to be executed.}(hj_hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jfhj_hMhjJ_ubeh}(h]h ]h"]h$]h&]uh1jahj._ubh)}(h**Description**h]jL)}(hj`h]h Description}(hhhj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj_ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj._ubh)}(h=Returns negative errno, else the number of messages executed.h]h=Returns negative errno, else the number of messages executed.}(hj`hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj._ubh)}(hSAdapter lock must be held when calling this function. No debug logging takes place.h]hSAdapter lock must be held when calling this function. No debug logging takes place.}(hj(`hj&`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj._ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_transfer (C function)c.i2c_transferhNtauh1jhhhhhNhNubj)}(hhh](j)}(hJint i2c_transfer (struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h]j)}(hIint i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hinth]hint}(hhhjU`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ`hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hhhjd`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ`hhhjc`hMubj)}(h i2c_transferh]j)}(h i2c_transferh]h i2c_transfer}(hhhjv`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr`ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjQ`hhhjc`hMubj)}(h9(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hhhj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hhhj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj`modnameN classnameNjJjM)}jP]jS)}jFjx`sbc.i2c_transferasbuh1hhj`ubj)}(h h]h }(hhhj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjg)}(hjjh]h*}(hhhj`hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj`ubj)}(hadaph]hadap}(hhhj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hstruct i2c_msg *msgsh](j)}(hjh]hstruct}(hhhjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hhhjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(hi2c_msgh]hi2c_msg}(hhhj"ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj$amodnameN classnameNjJjM)}jP]j`c.i2c_transferasbuh1hhjaubj)}(h h]h }(hhhj@ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjg)}(hjjh]h*}(hhhjNahhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjaubj)}(hmsgsh]hmsgs}(hhhj[ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hint numh](j)}(hinth]hint}(hhhjtahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpaubj)}(h h]h }(hhhjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpaubj)}(hnumh]hnum}(hhhjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhjQ`hhhjc`hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjM`hhhjc`hMubah}(h]jH`ah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjJ`hhubj)}(hhh]h)}(h(execute a single or combined I2C messageh]h(execute a single or combined I2C message}(hjahjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhjJ`hhhjc`hMubeh}(h]h ](j functioneh"]h$]h&]j=j j>jaj?jaj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_adapter *adap`` Handle to I2C bus ``struct i2c_msg *msgs`` One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START. ``int num`` Number of messages to be executed. **Description** Returns negative errno, else the number of messages executed. Note that there is no requirement that each message be sent to the same slave address, although that is the most common model.h](h)}(h**Parameters**h]jL)}(hjah]h Parameters}(hhhjahhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjaubjb)}(hhh](jg)}(h/``struct i2c_adapter *adap`` Handle to I2C bus h](jm)}(h``struct i2c_adapter *adap``h]h)}(hjah]hstruct i2c_adapter *adap}(hhhjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjaubj)}(hhh]h)}(hHandle to I2C bush]hHandle to I2C bus}(hjbhjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jfhjbhMhjaubjg)}(h``struct i2c_msg *msgs`` One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START. h](jm)}(h``struct i2c_msg *msgs``h]h)}(hj5bh]hstruct i2c_msg *msgs}(hhhj7bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3bubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj/bubj)}(hhh]h)}(hsOne or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.h]hsOne or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.}(hjPbhjNbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjKbubah}(h]h ]h"]h$]h&]uh1jhj/bubeh}(h]h ]h"]h$]h&]uh1jfhjJbhMhjaubjg)}(h/``int num`` Number of messages to be executed. h](jm)}(h ``int num``h]h)}(hjobh]hint num}(hhhjqbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmbubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjibubj)}(hhh]h)}(h"Number of messages to be executed.h]h"Number of messages to be executed.}(hjbhjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjibubeh}(h]h ]h"]h$]h&]uh1jfhjbhMhjaubeh}(h]h ]h"]h$]h&]uh1jahjaubh)}(h**Description**h]jL)}(hjbh]h Description}(hhhjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjbubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjaubh)}(h=Returns negative errno, else the number of messages executed.h]h=Returns negative errno, else the number of messages executed.}(hjbhjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjaubh)}(h~Note that there is no requirement that each message be sent to the same slave address, although that is the most common model.h]h~Note that there is no requirement that each message be sent to the same slave address, although that is the most common model.}(hjbhjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_transfer_buffer_flags (C function)c.i2c_transfer_buffer_flagshNtauh1jhhhhhNhNubj)}(hhh](j)}(h`int i2c_transfer_buffer_flags (const struct i2c_client *client, char *buf, int count, u16 flags)h]j)}(h_int i2c_transfer_buffer_flags(const struct i2c_client *client, char *buf, int count, u16 flags)h](j)}(hinth]hint}(hhhjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM ubj)}(h h]h }(hhhj chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhj chM ubj)}(hi2c_transfer_buffer_flagsh]j)}(hi2c_transfer_buffer_flagsh]hi2c_transfer_buffer_flags}(hhhjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jhjbhhhj chM ubj)}(hB(const struct i2c_client *client, char *buf, int count, u16 flags)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhj;chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7cubj)}(h h]h }(hhhjHchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7cubj)}(hjh]hstruct}(hhhjVchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7cubj)}(h h]h }(hhhjcchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7cubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjtchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqcubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjvcmodnameN classnameNjJjM)}jP]jS)}jFj!csbc.i2c_transfer_buffer_flagsasbuh1hhj7cubj)}(h h]h }(hhhjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7cubjg)}(hjjh]h*}(hhhjchhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj7cubj)}(hclienth]hclient}(hhhjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3cubj)}(h char *bufh](j)}(hcharh]hchar}(hhhjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hhhjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjg)}(hjjh]h*}(hhhjchhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjcubj)}(hbufh]hbuf}(hhhjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3cubj)}(h int counth](j)}(hinth]hint}(hhhj dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hhhjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hcounth]hcount}(hhhj&dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3cubj)}(h u16 flagsh](h)}(hhh]j)}(hu16h]hu16}(hhhjBdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?dubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjDdmodnameN classnameNjJjM)}jP]jcc.i2c_transfer_buffer_flagsasbuh1hhj;dubj)}(h h]h }(hhhj`dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;dubj)}(hflagsh]hflags}(hhhjndhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3cubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhj chM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhj chM ubah}(h]jbah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjbhhubj)}(hhh]h)}(h=issue a single I2C message transferring data to/from a bufferh]h=issue a single I2C message transferring data to/from a buffer}(hjdhjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjdhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj chM ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jdj?jdj@uh1jhhhhhNhNubjB)}(hXp**Parameters** ``const struct i2c_client *client`` Handle to slave device ``char *buf`` Where the data is stored ``int count`` How many bytes to transfer, must be less than 64k since msg.len is u16 ``u16 flags`` The flags to be used for the message, e.g. I2C_M_RD for reads **Description** Returns negative errno, or else the number of bytes transferred.h](h)}(h**Parameters**h]jL)}(hjdh]h Parameters}(hhhjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjdubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjdh]hconst struct i2c_client *client}(hhhjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjdubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjdhjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM hjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jfhjdhM hjdubjg)}(h'``char *buf`` Where the data is stored h](jm)}(h ``char *buf``h]h)}(hjeh]h char *buf}(hhhjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hj eubj)}(hhh]h)}(hWhere the data is storedh]hWhere the data is stored}(hj.ehj,ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ehM hj)eubah}(h]h ]h"]h$]h&]uh1jhj eubeh}(h]h ]h"]h$]h&]uh1jfhj(ehM hjdubjg)}(hU``int count`` How many bytes to transfer, must be less than 64k since msg.len is u16 h](jm)}(h ``int count``h]h)}(hjLeh]h int count}(hhhjNehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJeubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjFeubj)}(hhh]h)}(hFHow many bytes to transfer, must be less than 64k since msg.len is u16h]hFHow many bytes to transfer, must be less than 64k since msg.len is u16}(hjgehjeehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaehM hjbeubah}(h]h ]h"]h$]h&]uh1jhjFeubeh}(h]h ]h"]h$]h&]uh1jfhjaehM hjdubjg)}(hL``u16 flags`` The flags to be used for the message, e.g. I2C_M_RD for reads h](jm)}(h ``u16 flags``h]h)}(hjeh]h u16 flags}(hhhjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjeubj)}(hhh]h)}(h=The flags to be used for the message, e.g. I2C_M_RD for readsh]h=The flags to be used for the message, e.g. I2C_M_RD for reads}(hjehjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jfhjehM hjdubeh}(h]h ]h"]h$]h&]uh1jahjdubh)}(h**Description**h]jL)}(hjeh]h Description}(hhhjehhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjeubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjdubh)}(h@Returns negative errno, or else the number of bytes transferred.h]h@Returns negative errno, or else the number of bytes transferred.}(hjehjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_get_device_id (C function)c.i2c_get_device_idhNtauh1jhhhhhNhNubj)}(hhh](j)}(hWint i2c_get_device_id (const struct i2c_client *client, struct i2c_device_identity *id)h]j)}(hVint i2c_get_device_id(const struct i2c_client *client, struct i2c_device_identity *id)h](j)}(hinth]hint}(hhhjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM% ubj)}(h h]h }(hhhjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjfhM% ubj)}(hi2c_get_device_idh]j)}(hi2c_get_device_idh]hi2c_get_device_id}(hhhj&fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"fubah}(h]h ](jjeh"]h$]h&]jjuh1jhjfhhhjfhM% ubj)}(hA(const struct i2c_client *client, struct i2c_device_identity *id)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjBfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>fubj)}(h h]h }(hhhjOfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>fubj)}(hjh]hstruct}(hhhj]fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>fubj)}(h h]h }(hhhjjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>fubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj{fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxfubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj}fmodnameN classnameNjJjM)}jP]jS)}jFj(fsbc.i2c_get_device_idasbuh1hhj>fubj)}(h h]h }(hhhjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>fubjg)}(hjjh]h*}(hhhjfhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj>fubj)}(hclienth]hclient}(hhhjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:fubj)}(hstruct i2c_device_identity *idh](j)}(hjh]hstruct}(hhhjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hhhjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j)}(hi2c_device_identityh]hi2c_device_identity}(hhhjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjfmodnameN classnameNjJjM)}jP]jfc.i2c_get_device_idasbuh1hhjfubj)}(h h]h }(hhhj ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjg)}(hjjh]h*}(hhhjghhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjfubj)}(hidh]hid}(hhhj&ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:fubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjfhM% ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjfhM% ubah}(h]jeah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM* hjehhubj)}(hhh]h)}(h6get manufacturer, part id and die revision of a deviceh]h6get manufacturer, part id and die revision of a device}(hjSghjQghhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM$ hjNghhubah}(h]h ]h"]h$]h&]uh1jhjehhhjfhM% ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jigj?jigj@uh1jhhhhhNhNubjB)}(h**Parameters** ``const struct i2c_client *client`` The device to query ``struct i2c_device_identity *id`` The queried information **Description** Returns negative errno on error, zero on success.h](h)}(h**Parameters**h]jL)}(hjsgh]h Parameters}(hhhjughhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjqgubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM( hjmgubjb)}(hhh](jg)}(h8``const struct i2c_client *client`` The device to query h](jm)}(h#``const struct i2c_client *client``h]h)}(hjgh]hconst struct i2c_client *client}(hhhjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM% hjgubj)}(hhh]h)}(hThe device to queryh]hThe device to query}(hjghjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM% hjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jfhjghM% hjgubjg)}(h;``struct i2c_device_identity *id`` The queried information h](jm)}(h"``struct i2c_device_identity *id``h]h)}(hjgh]hstruct i2c_device_identity *id}(hhhjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM& hjgubj)}(hhh]h)}(hThe queried informationh]hThe queried information}(hjghjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM& hjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jfhjghM& hjgubeh}(h]h ]h"]h$]h&]uh1jahjmgubh)}(h**Description**h]jL)}(hjhh]h Description}(hhhjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjhubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM( hjmgubh)}(h1Returns negative errno on error, zero on success.h]h1Returns negative errno on error, zero on success.}(hjhhjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM( hjmgubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_client_get_device_id (C function)c.i2c_client_get_device_idhNtauh1jhhhhhNhNubj)}(hhh](j)}(hWconst struct i2c_device_id * i2c_client_get_device_id (const struct i2c_client *client)h]j)}(hUconst struct i2c_device_id *i2c_client_get_device_id(const struct i2c_client *client)h](j)}(hjh]hconst}(hhhjKhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMD ubj)}(h h]h }(hhhjYhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhhjXhhMD ubj)}(hjh]hstruct}(hhhjghhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhhjXhhMD ubj)}(h h]h }(hhhjthhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhhjXhhMD ubh)}(hhh]j)}(h i2c_device_idh]h i2c_device_id}(hhhjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjhmodnameN classnameNjJjM)}jP]jS)}jFi2c_client_get_device_idsbc.i2c_client_get_device_idasbuh1hhjGhhhhjXhhMD ubj)}(h h]h }(hhhjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhhjXhhMD ubjg)}(hjjh]h*}(hhhjhhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjGhhhhjXhhMD ubj)}(hi2c_client_get_device_idh]j)}(hjhh]hi2c_client_get_device_id}(hhhjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jhjGhhhhjXhhMD ubj)}(h!(const struct i2c_client *client)h]j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hhhjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]hstruct}(hhhjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hhhjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjimodnameN classnameNjJjM)}jP]jhc.i2c_client_get_device_idasbuh1hhjhubj)}(h h]h }(hhhj7ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjg)}(hjjh]h*}(hhhjEihhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjhubj)}(hclienth]hclient}(hhhjRihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubah}(h]h ]h"]h$]h&]jjuh1jhjGhhhhjXhhMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhhjXhhMD ubah}(h]j>hah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMH hj@hhhubj)}(hhh]h)}(h,get the driver match table entry of a deviceh]h,get the driver match table entry of a device}(hjihj}ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMC hjzihhubah}(h]h ]h"]h$]h&]uh1jhj@hhhhjXhhMD ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jij?jij@uh1jhhhhhNhNubjB)}(h**Parameters** ``const struct i2c_client *client`` the device to query. The device must be bound to a driver **Description** Returns a pointer to the matching entry if found, NULL otherwise.h](h)}(h**Parameters**h]jL)}(hjih]h Parameters}(hhhjihhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMG hjiubjb)}(hhh]jg)}(h^``const struct i2c_client *client`` the device to query. The device must be bound to a driver h](jm)}(h#``const struct i2c_client *client``h]h)}(hjih]hconst struct i2c_client *client}(hhhjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMD hjiubj)}(hhh]h)}(h9the device to query. The device must be bound to a driverh]h9the device to query. The device must be bound to a driver}(hjihjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMD hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jfhjihMD hjiubah}(h]h ]h"]h$]h&]uh1jahjiubh)}(h**Description**h]jL)}(hjih]h Description}(hhhjihhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMF hjiubh)}(hAReturns a pointer to the matching entry if found, NULL otherwise.h]hAReturns a pointer to the matching entry if found, NULL otherwise.}(hjjhjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMF hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_get_dma_safe_msg_buf (C function)c.i2c_get_dma_safe_msg_bufhNtauh1jhhhhhNhNubj)}(hhh](j)}(hKu8 * i2c_get_dma_safe_msg_buf (struct i2c_msg *msg, unsigned int threshold)h]j)}(hIu8 *i2c_get_dma_safe_msg_buf(struct i2c_msg *msg, unsigned int threshold)h](h)}(hhh]j)}(hu8h]hu8}(hhhjAjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>jubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjCjmodnameN classnameNjJjM)}jP]jS)}jFi2c_get_dma_safe_msg_bufsbc.i2c_get_dma_safe_msg_bufasbuh1hhj:jhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM9 ubj)}(h h]h }(hhhjcjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:jhhhjbjhM9 ubjg)}(hjjh]h*}(hhhjqjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj:jhhhjbjhM9 ubj)}(hi2c_get_dma_safe_msg_bufh]j)}(hj_jh]hi2c_get_dma_safe_msg_buf}(hhhjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~jubah}(h]h ](jjeh"]h$]h&]jjuh1jhj:jhhhjbjhM9 ubj)}(h-(struct i2c_msg *msg, unsigned int threshold)h](j)}(hstruct i2c_msg *msgh](j)}(hjh]hstruct}(hhhjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hhhjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(hi2c_msgh]hi2c_msg}(hhhjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjjmodnameN classnameNjJjM)}jP]j]jc.i2c_get_dma_safe_msg_bufasbuh1hhjjubj)}(h h]h }(hhhjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjg)}(hjjh]h*}(hhhjjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjjubj)}(hmsgh]hmsg}(hhhjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned int thresholdh](j)}(hunsignedh]hunsigned}(hhhj khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(h h]h }(hhhjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(hinth]hint}(hhhj)khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(h h]h }(hhhj7khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(h thresholdh]h threshold}(hhhjEkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhj:jhhhjbjhM9 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6jhhhjbjhM9 ubah}(h]j1jah ](jjeh"]h$]h&]juh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMC hj3jhhubj)}(hhh]h)}(h+get a DMA safe buffer for the given i2c_msgh]h+get a DMA safe buffer for the given i2c_msg}(hjrkhjpkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM8 hjmkhhubah}(h]h ]h"]h$]h&]uh1jhj3jhhhjbjhM9 ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jkj?jkj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``struct i2c_msg *msg`` the message to be checked ``unsigned int threshold`` the minimum number of bytes for which using DMA makes sense. Should at least be 1. **Return** NULL if a DMA safe buffer was not obtained. Use msg->buf with PIO. Or a valid pointer to be used with DMA. After use, release it by calling i2c_put_dma_safe_msg_buf(). **Description** This function must only be called from process context!h](h)}(h**Parameters**h]jL)}(hjkh]h Parameters}(hhhjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM< hjkubjb)}(hhh](jg)}(h2``struct i2c_msg *msg`` the message to be checked h](jm)}(h``struct i2c_msg *msg``h]h)}(hjkh]hstruct i2c_msg *msg}(hhhjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM9 hjkubj)}(hhh]h)}(hthe message to be checkedh]hthe message to be checked}(hjkhjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM9 hjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jfhjkhM9 hjkubjg)}(hn``unsigned int threshold`` the minimum number of bytes for which using DMA makes sense. Should at least be 1. h](jm)}(h``unsigned int threshold``h]h)}(hjkh]hunsigned int threshold}(hhhjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM; hjkubj)}(hhh]h)}(hRthe minimum number of bytes for which using DMA makes sense. Should at least be 1.h]hRthe minimum number of bytes for which using DMA makes sense. Should at least be 1.}(hjlhjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM: hjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jfhjkhM; hjkubeh}(h]h ]h"]h$]h&]uh1jahjkubh)}(h **Return**h]jL)}(hj&lh]hReturn}(hhhj(lhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj$lubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM= hjkubjb)}(hhh]jg)}(hNULL if a DMA safe buffer was not obtained. Use msg->buf with PIO. Or a valid pointer to be used with DMA. After use, release it by calling i2c_put_dma_safe_msg_buf(). h](jm)}(hBNULL if a DMA safe buffer was not obtained. Use msg->buf with PIO.h]hBNULL if a DMA safe buffer was not obtained. Use msg->buf with PIO.}(hjElhjClhhhNhNubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM? hj?lubj)}(hhh]h)}(hdOr a valid pointer to be used with DMA. After use, release it by calling i2c_put_dma_safe_msg_buf().h]hdOr a valid pointer to be used with DMA. After use, release it by calling i2c_put_dma_safe_msg_buf().}(hjWlhjUlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM> hjRlubah}(h]h ]h"]h$]h&]uh1jhj?lubeh}(h]h ]h"]h$]h&]uh1jfhjQlhM? hjjnj?jnj@uh1jhhhhhNhNubjB)}(h**Parameters** ``u8 *buf`` the buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL. ``struct i2c_msg *msg`` the message which the buffer corresponds to ``bool xferred`` bool saying if the message was transferredh](h)}(h**Parameters**h]jL)}(hj)nh]h Parameters}(hhhj+nhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj'nubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM^ hj#nubjb)}(hhh](jg)}(hN``u8 *buf`` the buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL. h](jm)}(h ``u8 *buf``h]h)}(hjHnh]hu8 *buf}(hhhjJnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFnubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM[ hjBnubj)}(hhh]h)}(hAthe buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL.h]hAthe buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL.}(hjcnhjanhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]nhM[ hj^nubah}(h]h ]h"]h$]h&]uh1jhjBnubeh}(h]h ]h"]h$]h&]uh1jfhj]nhM[ hj?nubjg)}(hD``struct i2c_msg *msg`` the message which the buffer corresponds to h](jm)}(h``struct i2c_msg *msg``h]h)}(hjnh]hstruct i2c_msg *msg}(hhhjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM\ hj{nubj)}(hhh]h)}(h+the message which the buffer corresponds toh]h+the message which the buffer corresponds to}(hjnhjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM\ hjnubah}(h]h ]h"]h$]h&]uh1jhj{nubeh}(h]h ]h"]h$]h&]uh1jfhjnhM\ hj?nubjg)}(h;``bool xferred`` bool saying if the message was transferredh](jm)}(h``bool xferred``h]h)}(hjnh]h bool xferred}(hhhjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jlhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM^ hjnubj)}(hhh]h)}(h*bool saying if the message was transferredh]h*bool saying if the message was transferred}(hjnhjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM] hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jfhjnhM^ hj?nubeh}(h]h ]h"]h$]h&]uh1jahj#nubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_smbus_pec (C function)c.i2c_smbus_pechNtauh1jhhhhhNhNubj)}(hhh](j)}(h.u8 i2c_smbus_pec (u8 crc, u8 *p, size_t count)h]j)}(h-u8 i2c_smbus_pec(u8 crc, u8 *p, size_t count)h](h)}(hhh]j)}(hu8h]hu8}(hhhjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjomodnameN classnameNjJjM)}jP]jS)}jF i2c_smbus_pecsbc.i2c_smbus_pecasbuh1hhjohhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK+ubj)}(h h]h }(hhhj9ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhj8ohK+ubj)}(h i2c_smbus_pech]j)}(hj5oh]h i2c_smbus_pec}(hhhjKohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGoubah}(h]h ](jjeh"]h$]h&]jjuh1jhjohhhj8ohK+ubj)}(h(u8 crc, u8 *p, size_t count)h](j)}(hu8 crch](h)}(hhh]j)}(hu8h]hu8}(hhhjiohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfoubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjkomodnameN classnameNjJjM)}jP]j3oc.i2c_smbus_pecasbuh1hhjboubj)}(h h]h }(hhhjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjboubj)}(hcrch]hcrc}(hhhjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjboubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^oubj)}(hu8 *ph](h)}(hhh]j)}(hu8h]hu8}(hhhjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjomodnameN classnameNjJjM)}jP]j3oc.i2c_smbus_pecasbuh1hhjoubj)}(h h]h }(hhhjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjg)}(hjjh]h*}(hhhjohhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjoubj)}(hjsh]hp}(hhhjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^oubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hhhjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjpmodnameN classnameNjJjM)}jP]j3oc.i2c_smbus_pecasbuh1hhjoubj)}(h h]h }(hhhj#phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hcounth]hcount}(hhhj1phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^oubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhj8ohK+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj ohhhj8ohK+ubah}(h]joah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK1hj ohhubj)}(hhh]h)}(h0Incremental CRC8 over the given input data arrayh]h0Incremental CRC8 over the given input data array}(hj^phj\phhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK*hjYphhubah}(h]h ]h"]h$]h&]uh1jhj ohhhj8ohK+ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jtpj?jtpj@uh1jhhhhhNhNubjB)}(h**Parameters** ``u8 crc`` previous return crc8 value ``u8 *p`` pointer to data buffer. ``size_t count`` number of bytes in data buffer. **Description** Incremental CRC8 over count bytes in the array pointed to by ph](h)}(h**Parameters**h]jL)}(hj~ph]h Parameters}(hhhjphhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj|pubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK.hjxpubjb)}(hhh](jg)}(h&``u8 crc`` previous return crc8 value h](jm)}(h ``u8 crc``h]h)}(hjph]hu8 crc}(hhhjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK+hjpubj)}(hhh]h)}(hprevious return crc8 valueh]hprevious return crc8 value}(hjphjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphK+hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jfhjphK+hjpubjg)}(h"``u8 *p`` pointer to data buffer. h](jm)}(h ``u8 *p``h]h)}(hjph]hu8 *p}(hhhjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK,hjpubj)}(hhh]h)}(hpointer to data buffer.h]hpointer to data buffer.}(hjphjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphK,hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jfhjphK,hjpubjg)}(h1``size_t count`` number of bytes in data buffer. h](jm)}(h``size_t count``h]h)}(hjqh]h size_t count}(hhhjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj qubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK-hj qubj)}(hhh]h)}(hnumber of bytes in data buffer.h]hnumber of bytes in data buffer.}(hj*qhj(qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$qhK-hj%qubah}(h]h ]h"]h$]h&]uh1jhj qubeh}(h]h ]h"]h$]h&]uh1jfhj$qhK-hjpubeh}(h]h ]h"]h$]h&]uh1jahjxpubh)}(h**Description**h]jL)}(hjJqh]h Description}(hhhjLqhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjHqubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK/hjxpubh)}(h>Incremental CRC8 over count bytes in the array pointed to by ph]h>Incremental CRC8 over count bytes in the array pointed to by p}(hjbqhj`qhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK/hjxpubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j i2c_smbus_read_byte (C function)c.i2c_smbus_read_bytehNtauh1jhhhhhNhNubj)}(hhh](j)}(h9s32 i2c_smbus_read_byte (const struct i2c_client *client)h]j)}(h8s32 i2c_smbus_read_byte(const struct i2c_client *client)h](h)}(hhh]j)}(hs32h]hs32}(hhhjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjqmodnameN classnameNjJjM)}jP]jS)}jFi2c_smbus_read_bytesbc.i2c_smbus_read_byteasbuh1hhjqhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKaubj)}(h h]h }(hhhjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhKaubj)}(hi2c_smbus_read_byteh]j)}(hjqh]hi2c_smbus_read_byte}(hhhjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jhjqhhhjqhKaubj)}(h!(const struct i2c_client *client)h]j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hhhjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hjh]hstruct}(hhhjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hhhj rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjrmodnameN classnameNjJjM)}jP]jqc.i2c_smbus_read_byteasbuh1hhjqubj)}(h h]h }(hhhj8rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjg)}(hjjh]h*}(hhhjFrhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjqubj)}(hclienth]hclient}(hhhjSrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjqhKaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjqhKaubah}(h]jqah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKfhjqhhubj)}(hhh]h)}(hSMBus "receive byte" protocolh]h!SMBus “receive byte” protocol}(hjrhj~rhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK`hj{rhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhKaubeh}(h]h ](j functioneh"]h$]h&]j=j j>jrj?jrj@uh1jhhhhhNhNubjB)}(h**Parameters** ``const struct i2c_client *client`` Handle to slave device **Description** This executes the SMBus "receive byte" protocol, returning negative errno else the byte received from the device.h](h)}(h**Parameters**h]jL)}(hjrh]h Parameters}(hhhjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjrubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKdhjrubjb)}(hhh]jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjrh]hconst struct i2c_client *client}(hhhjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKahjrubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjrhjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKahjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jfhjrhKahjrubah}(h]h ]h"]h$]h&]uh1jahjrubh)}(h**Description**h]jL)}(hjrh]h Description}(hhhjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjrubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKchjrubh)}(hqThis executes the SMBus "receive byte" protocol, returning negative errno else the byte received from the device.h]huThis executes the SMBus “receive byte” protocol, returning negative errno else the byte received from the device.}(hjshjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKchjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_smbus_write_byte (C function)c.i2c_smbus_write_bytehNtauh1jhhhhhNhNubj)}(hhh](j)}(hDs32 i2c_smbus_write_byte (const struct i2c_client *client, u8 value)h]j)}(hCs32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value)h](h)}(hhh]j)}(hs32h]hs32}(hhhjBshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?subah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjDsmodnameN classnameNjJjM)}jP]jS)}jFi2c_smbus_write_bytesbc.i2c_smbus_write_byteasbuh1hhj;shhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKtubj)}(h h]h }(hhhjdshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;shhhjcshKtubj)}(hi2c_smbus_write_byteh]j)}(hj`sh]hi2c_smbus_write_byte}(hhhjvshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrsubah}(h]h ](jjeh"]h$]h&]jjuh1jhj;shhhjcshKtubj)}(h+(const struct i2c_client *client, u8 value)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hhhjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hjh]hstruct}(hhhjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hhhjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjsmodnameN classnameNjJjM)}jP]j^sc.i2c_smbus_write_byteasbuh1hhjsubj)}(h h]h }(hhhjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjg)}(hjjh]h*}(hhhjshhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjsubj)}(hclienth]hclient}(hhhjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hu8 valueh](h)}(hhh]j)}(hu8h]hu8}(hhhjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj!tmodnameN classnameNjJjM)}jP]j^sc.i2c_smbus_write_byteasbuh1hhjtubj)}(h h]h }(hhhj=thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hvalueh]hvalue}(hhhjKthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhj;shhhjcshKtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7shhhjcshKtubah}(h]j2sah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKzhj4shhubj)}(hhh]h)}(hSMBus "send byte" protocolh]hSMBus “send byte” protocol}(hjxthjvthhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKshjsthhubah}(h]h ]h"]h$]h&]uh1jhj4shhhjcshKtubeh}(h]h ](j functioneh"]h$]h&]j=j j>jtj?jtj@uh1jhhhhhNhNubjB)}(h**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 value`` Byte to be sent **Description** This executes the SMBus "send byte" protocol, returning negative errno else zero on success.h](h)}(h**Parameters**h]jL)}(hjth]h Parameters}(hhhjthhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjtubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKwhjtubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjth]hconst struct i2c_client *client}(hhhjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKthjtubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjthjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKthjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jfhjthKthjtubjg)}(h``u8 value`` Byte to be sent h](jm)}(h ``u8 value``h]h)}(hjth]hu8 value}(hhhjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKuhjtubj)}(hhh]h)}(hByte to be senth]hByte to be sent}(hj uhj uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKuhjuubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jfhjuhKuhjtubeh}(h]h ]h"]h$]h&]uh1jahjtubh)}(h**Description**h]jL)}(hj+uh]h Description}(hhhj-uhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj)uubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKwhjtubh)}(h\This executes the SMBus "send byte" protocol, returning negative errno else zero on success.h]h`This executes the SMBus “send byte” protocol, returning negative errno else zero on success.}(hjCuhjAuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKwhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_smbus_read_byte_data (C function)c.i2c_smbus_read_byte_datahNtauh1jhhhhhNhNubj)}(hhh](j)}(hJs32 i2c_smbus_read_byte_data (const struct i2c_client *client, u8 command)h]j)}(hIs32 i2c_smbus_read_byte_data(const struct i2c_client *client, u8 command)h](h)}(hhh]j)}(hs32h]hs32}(hhhjsuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpuubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjuumodnameN classnameNjJjM)}jP]jS)}jFi2c_smbus_read_byte_datasbc.i2c_smbus_read_byte_dataasbuh1hhjluhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hhhjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjluhhhjuhKubj)}(hi2c_smbus_read_byte_datah]j)}(hjuh]hi2c_smbus_read_byte_data}(hhhjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jhjluhhhjuhKubj)}(h-(const struct i2c_client *client, u8 command)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hhhjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hjh]hstruct}(hhhjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hhhjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjumodnameN classnameNjJjM)}jP]juc.i2c_smbus_read_byte_dataasbuh1hhjuubj)}(h h]h }(hhhjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjg)}(hjjh]h*}(hhhj'vhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjuubj)}(hclienth]hclient}(hhhj4vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hhhjPvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMvubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjRvmodnameN classnameNjJjM)}jP]juc.i2c_smbus_read_byte_dataasbuh1hhjIvubj)}(h h]h }(hhhjnvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIvubj)}(hcommandh]hcommand}(hhhj|vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhjluhhhjuhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhuhhhjuhKubah}(h]jcuah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjeuhhubj)}(hhh]h)}(hSMBus "read byte" protocolh]hSMBus “read byte” protocol}(hjvhjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjvhhubah}(h]h ]h"]h$]h&]uh1jhjeuhhhjuhKubeh}(h]h ](j functioneh"]h$]h&]j=j j>jvj?jvj@uh1jhhhhhNhNubjB)}(h**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave **Description** This executes the SMBus "read byte" protocol, returning negative errno else a data byte received from the device.h](h)}(h**Parameters**h]jL)}(hjvh]h Parameters}(hhhjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjvubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjvubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjvh]hconst struct i2c_client *client}(hhhjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjvubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjwhjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jfhjvhKhjvubjg)}(h)``u8 command`` Byte interpreted by slave h](jm)}(h``u8 command``h]h)}(hj!wh]h u8 command}(hhhj#whhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjwubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hjj8yj?j8yj@uh1jhhhhhNhNubjB)}(hX **Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u8 value`` Byte being written **Description** This executes the SMBus "write byte" protocol, returning negative errno else zero on success.h](h)}(h**Parameters**h]jL)}(hjByh]h Parameters}(hhhjDyhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj@yubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjj{j?j{j@uh1jhhhhhNhNubjB)}(hX **Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave **Description** This executes the SMBus "read word" protocol, returning negative errno else a 16-bit unsigned "word" received from the device.h](h)}(h**Parameters**h]jL)}(hj{h]h Parameters}(hhhj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj{ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hj{h]hconst struct i2c_client *client}(hhhj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hj{hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jfhj{hKhj{ubjg)}(h)``u8 command`` Byte interpreted by slave h](jm)}(h``u8 command``h]h)}(hj|h]h u8 command}(hhhj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hj|hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jfhj|hKhj{ubeh}(h]h ]h"]h$]h&]uh1jahj{ubh)}(h**Description**h]jL)}(hj?|h]h Description}(hhhjA|hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj=|ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubh)}(h~This executes the SMBus "read word" protocol, returning negative errno else a 16-bit unsigned "word" received from the device.h]hThis executes the SMBus “read word” protocol, returning negative errno else a 16-bit unsigned “word” received from the device.}(hjW|hjU|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_smbus_write_word_data (C function)c.i2c_smbus_write_word_datahNtauh1jhhhhhNhNubj)}(hhh](j)}(hVs32 i2c_smbus_write_word_data (const struct i2c_client *client, u8 command, u16 value)h]j)}(hUs32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command, u16 value)h](h)}(hhh]j)}(hs32h]hs32}(hhhj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj|modnameN classnameNjJjM)}jP]jS)}jFi2c_smbus_write_word_datasbc.i2c_smbus_write_word_dataasbuh1hhj|hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hhhj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hKubj)}(hi2c_smbus_write_word_datah]j)}(hj|h]hi2c_smbus_write_word_data}(hhhj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj|hhhj|hKubj)}(h8(const struct i2c_client *client, u8 command, u16 value)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hhhj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hjh]hstruct}(hhhj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hhhj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj }ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj}modnameN classnameNjJjM)}jP]j|c.i2c_smbus_write_word_dataasbuh1hhj|ubj)}(h h]h }(hhhj-}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjg)}(hjjh]h*}(hhhj;}hhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj|ubj)}(hclienth]hclient}(hhhjH}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hhhjd}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja}ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjf}modnameN classnameNjJjM)}jP]j|c.i2c_smbus_write_word_dataasbuh1hhj]}ubj)}(h h]h }(hhhj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]}ubj)}(hcommandh]hcommand}(hhhj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h u16 valueh](h)}(hhh]j)}(hu16h]hu16}(hhhj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj}modnameN classnameNjJjM)}jP]j|c.i2c_smbus_write_word_dataasbuh1hhj}ubj)}(h h]h }(hhhj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hvalueh]hvalue}(hhhj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj||hhhj|hKubah}(h]jw|ah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjy|hhubj)}(hhh]h)}(hSMBus "write word" protocolh]hSMBus “write word” protocol}(hj~hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj~hhubah}(h]h ]h"]h$]h&]uh1jhjy|hhhj|hKubeh}(h]h ](j functioneh"]h$]h&]j=j j>j~j?j~j@uh1jhhhhhNhNubjB)}(hX**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u16 value`` 16-bit "word" being written **Description** This executes the SMBus "write word" protocol, returning negative errno else zero on success.h](h)}(h**Parameters**h]jL)}(hj%~h]h Parameters}(hhhj'~hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj#~ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj~ubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjD~h]hconst struct i2c_client *client}(hhhjF~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB~ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj>~ubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hj_~hj]~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY~hKhjZ~ubah}(h]h ]h"]h$]h&]uh1jhj>~ubeh}(h]h ]h"]h$]h&]uh1jfhjY~hKhj;~ubjg)}(h)``u8 command`` Byte interpreted by slave h](jm)}(h``u8 command``h]h)}(hj}~h]h u8 command}(hhhj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{~ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjw~ubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hj~hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhj~ubah}(h]h ]h"]h$]h&]uh1jhjw~ubeh}(h]h ]h"]h$]h&]uh1jfhj~hKhj;~ubjg)}(h*``u16 value`` 16-bit "word" being written h](jm)}(h ``u16 value``h]h)}(hj~h]h u16 value}(hhhj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj~ubj)}(hhh]h)}(h16-bit "word" being writtenh]h16-bit “word” being written}(hj~hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jfhj~hKhj;~ubeh}(h]h ]h"]h$]h&]uh1jahj~ubh)}(h**Description**h]jL)}(hj~h]h Description}(hhhj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhj~ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj~ubh)}(h]This executes the SMBus "write word" protocol, returning negative errno else zero on success.h]haThis executes the SMBus “write word” protocol, returning negative errno else zero on success.}(hj hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_smbus_read_block_data (C function)c.i2c_smbus_read_block_datahNtauh1jhhhhhNhNubj)}(hhh](j)}(hWs32 i2c_smbus_read_block_data (const struct i2c_client *client, u8 command, u8 *values)h]j)}(hVs32 i2c_smbus_read_block_data(const struct i2c_client *client, u8 command, u8 *values)h](h)}(hhh]j)}(hs32h]hs32}(hhhj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj;modnameN classnameNjJjM)}jP]jS)}jFi2c_smbus_read_block_datasbc.i2c_smbus_read_block_dataasbuh1hhj2hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hhhj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjZhKubj)}(hi2c_smbus_read_block_datah]j)}(hjWh]hi2c_smbus_read_block_data}(hhhjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jhj2hhhjZhKubj)}(h9(const struct i2c_client *client, u8 command, u8 *values)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]jUc.i2c_smbus_read_block_dataasbuh1hhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubj)}(hclienth]hclient}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]jUc.i2c_smbus_read_block_dataasbuh1hhjubj)}(h h]h }(hhhj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcommandh]hcommand}(hhhjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 *valuesh](h)}(hhh]j)}(hu8h]hu8}(hhhj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj`modnameN classnameNjJjM)}jP]jUc.i2c_smbus_read_block_dataasbuh1hhjWubj)}(h h]h }(hhhj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjWubj)}(hvaluesh]hvalues}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjZhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjZhKubah}(h]j)ah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj+hhubj)}(hhh]h)}(hSMBus "block read" protocolh]hSMBus “block read” protocol}(hjĀhj€hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjZhKubeh}(h]h ](j functioneh"]h$]h&]j=j j>jڀj?jڀj@uh1jhhhhhNhNubjB)}(hX**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u8 *values`` Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes. **Description** This executes the SMBus "block read" protocol, returning negative errno else the number of data bytes in the slave's response. Note that using this function requires that the client's adapter support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all adapter drivers support this; its emulation through I2C messaging relies on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented.h](h)}(h**Parameters**h]jL)}(hjh]h Parameters}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjހubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKhjubjg)}(h)``u8 command`` Byte interpreted by slave h](jm)}(h``u8 command``h]h)}(hj<h]h u8 command}(hhhj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj6ubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hjWhjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jfhjQhKhjubjg)}(h``u8 *values`` Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes. h](jm)}(h``u8 *values``h]h)}(hjuh]h u8 *values}(hhhjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjoubj)}(hhh]h)}(h{Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes.h]h{Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jfhjhKhjubeh}(h]h ]h"]h$]h&]uh1jahjހubh)}(h**Description**h]jL)}(hjh]h Description}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjހubh)}(h~This executes the SMBus "block read" protocol, returning negative errno else the number of data bytes in the slave's response.h]hThis executes the SMBus “block read” protocol, returning negative errno else the number of data bytes in the slave’s response.}(hjɁhjǁhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjހubh)}(hXNote that using this function requires that the client's adapter support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all adapter drivers support this; its emulation through I2C messaging relies on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented.h]hXNote that using this function requires that the client’s adapter support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all adapter drivers support this; its emulation through I2C messaging relies on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented.}(hj؁hjցhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjހubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_smbus_write_block_data (C function)c.i2c_smbus_write_block_datahNtauh1jhhhhhNhNubj)}(hhh](j)}(his32 i2c_smbus_write_block_data (const struct i2c_client *client, u8 command, u8 length, const u8 *values)h]j)}(hhs32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, u8 length, const u8 *values)h](h)}(hhh]j)}(hs32h]hs32}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj modnameN classnameNjJjM)}jP]jS)}jFi2c_smbus_write_block_datasbc.i2c_smbus_write_block_dataasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hhhj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hKubj)}(hi2c_smbus_write_block_datah]j)}(hj&h]hi2c_smbus_write_block_data}(hhhj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj)hKubj)}(hJ(const struct i2c_client *client, u8 command, u8 length, const u8 *values)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hhhjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]hstruct}(hhhjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]j$c.i2c_smbus_write_block_dataasbuh1hhjSubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjSubj)}(hclienth]hclient}(hhhjɂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]j$c.i2c_smbus_write_block_dataasbuh1hhjނubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjނubj)}(hcommandh]hcommand}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjނubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(h u8 lengthh](h)}(hhh]j)}(hu8h]hu8}(hhhj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj/modnameN classnameNjJjM)}jP]j$c.i2c_smbus_write_block_dataasbuh1hhj&ubj)}(h h]h }(hhhjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hlengthh]hlength}(hhhjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hconst u8 *valuesh](j)}(hjh]hconst}(hhhjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(hu8h]hu8}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]j$c.i2c_smbus_write_block_dataasbuh1hhjnubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjnubj)}(hvaluesh]hvalues}(hhhjɃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj)hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj)hKubah}(h]jah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjhhubj)}(hhh]h)}(hSMBus "block write" protocolh]h SMBus “block write” protocol}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hKubeh}(h]h ](j functioneh"]h$]h&]j=j j>j j?j j@uh1jhhhhhNhNubjB)}(hXf**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u8 length`` Size of data block; SMBus allows at most 32 bytes ``const u8 *values`` Byte array which will be written. **Description** This executes the SMBus "block write" protocol, returning negative errno else zero on success.h](h)}(h**Parameters**h]jL)}(hjh]h Parameters}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hj5h]hconst struct i2c_client *client}(hhhj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj/ubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjPhjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jfhjJhKhj,ubjg)}(h)``u8 command`` Byte interpreted by slave h](jm)}(h``u8 command``h]h)}(hjnh]h u8 command}(hhhjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjhubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj,ubjg)}(h@``u8 length`` Size of data block; SMBus allows at most 32 bytes h](jm)}(h ``u8 length``h]h)}(hjh]h u8 length}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(hhh]h)}(h1Size of data block; SMBus allows at most 32 bytesh]h1Size of data block; SMBus allows at most 32 bytes}(hj„hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj,ubjg)}(h7``const u8 *values`` Byte array which will be written. h](jm)}(h``const u8 *values``h]h)}(hjh]hconst u8 *values}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjބubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjڄubj)}(hhh]h)}(h!Byte array which will be written.h]h!Byte array which will be written.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjڄubeh}(h]h ]h"]h$]h&]uh1jfhjhKhj,ubeh}(h]h ]h"]h$]h&]uh1jahjubh)}(h**Description**h]jL)}(hjh]h Description}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubh)}(h^This executes the SMBus "block write" protocol, returning negative errno else zero on success.h]hbThis executes the SMBus “block write” protocol, returning negative errno else zero on success.}(hj3hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_smbus_xfer (C function)c.i2c_smbus_xferhNtauh1jhhhhhNhNubj)}(hhh](j)}(hs32 i2c_smbus_xfer (struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int protocol, union i2c_smbus_data *data)h]j)}(hs32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int protocol, union i2c_smbus_data *data)h](h)}(hhh]j)}(hs32h]hs32}(hhhjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjemodnameN classnameNjJjM)}jP]jS)}jFi2c_smbus_xfersbc.i2c_smbus_xferasbuh1hhj\hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM ubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhjhM ubj)}(hi2c_smbus_xferh]j)}(hjh]hi2c_smbus_xfer}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj\hhhjhM ubj)}(h(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int protocol, union i2c_smbus_data *data)h](j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjЅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͅubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj҅modnameN classnameNjJjM)}jP]jc.i2c_smbus_xferasbuh1hhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjubj)}(hadapterh]hadapter}(hhhj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu16 addrh](h)}(hhh]j)}(hu16h]hu16}(hhhj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj'modnameN classnameNjJjM)}jP]jc.i2c_smbus_xferasbuh1hhjubj)}(h h]h }(hhhjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hhhjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned short flagsh](j)}(hunsignedh]hunsigned}(hhhjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hhhjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hshorth]hshort}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hflagsh]hflags}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hchar read_writeh](j)}(hcharh]hchar}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hhhjɆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h read_writeh]h read_write}(hhhj׆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]jc.i2c_smbus_xferasbuh1hhjubj)}(h h]h }(hhhjhhhNhNubah}(h2}]h ]jah"]h$]h&]uh1jhjubj)}(hcommandh]hcommand}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int protocolh](j)}(hinth]hint}(hhhj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hhhjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hprotocolh]hprotocol}(hhhjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion i2c_smbus_data *datah](j)}(hunionh]hunion}(hhhjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hhhj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j)}(hi2c_smbus_datah]hi2c_smbus_data}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]jc.i2c_smbus_xferasbuh1hhjiubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjiubj)}(hdatah]hdata}(hhhjŇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjhM ubah}(h]jSah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjUhhubj)}(hhh]h)}(h!execute SMBus protocol operationsh]h!execute SMBus protocol operations}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjhM ubeh}(h]h ](j functioneh"]h$]h&]j=j j>jj?jj@uh1jhhhhhNhNubjB)}(hXV**Parameters** ``struct i2c_adapter *adapter`` Handle to I2C bus ``u16 addr`` Address of SMBus slave on that bus ``unsigned short flags`` I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC) ``char read_write`` I2C_SMBUS_READ or I2C_SMBUS_WRITE ``u8 command`` Byte interpreted by slave, for protocols which use such bytes ``int protocol`` SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL ``union i2c_smbus_data *data`` Data to be read or written **Description** This executes an SMBus protocol operation, and returns a negative errno code else zero on success.h](h)}(h**Parameters**h]jL)}(hjh]h Parameters}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhj ubjb)}(hhh](jg)}(h2``struct i2c_adapter *adapter`` Handle to I2C bus h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hj1h]hstruct i2c_adapter *adapter}(hhhj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM hj+ubj)}(hhh]h)}(hHandle to I2C bush]hHandle to I2C bus}(hjLhjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jfhjFhM hj(ubjg)}(h0``u16 addr`` Address of SMBus slave on that bus h](jm)}(h ``u16 addr``h]h)}(hjjh]hu16 addr}(hhhjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM hjdubj)}(hhh]h)}(h"Address of SMBus slave on that bush]h"Address of SMBus slave on that bus}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jfhjhM hj(ubjg)}(hM``unsigned short flags`` I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC) h](jm)}(h``unsigned short flags``h]h)}(hjh]hunsigned short flags}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(h3I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)h]h3I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhj(ubjg)}(h6``char read_write`` I2C_SMBUS_READ or I2C_SMBUS_WRITE h](jm)}(h``char read_write``h]h)}(hj܈h]hchar read_write}(hhhjވhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڈubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjֈubj)}(hhh]h)}(h!I2C_SMBUS_READ or I2C_SMBUS_WRITEh]h!I2C_SMBUS_READ or I2C_SMBUS_WRITE}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjֈubeh}(h]h ]h"]h$]h&]uh1jfhjhMhj(ubjg)}(hM``u8 command`` Byte interpreted by slave, for protocols which use such bytes h](jm)}(h``u8 command``h]h)}(hjh]h u8 command}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(h=Byte interpreted by slave, for protocols which use such bytesh]h=Byte interpreted by slave, for protocols which use such bytes}(hj0hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj*hMhj(ubjg)}(hR``int protocol`` SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL h](jm)}(h``int protocol``h]h)}(hjNh]h int protocol}(hhhjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjHubj)}(hhh]h)}(h@SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALLh]h@SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL}(hjihjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jfhjchMhj(ubjg)}(h:``union i2c_smbus_data *data`` Data to be read or written h](jm)}(h``union i2c_smbus_data *data``h]h)}(hjh]hunion i2c_smbus_data *data}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(hData to be read or writtenh]hData to be read or written}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhj(ubeh}(h]h ]h"]h$]h&]uh1jahj ubh)}(h**Description**h]jL)}(hj‰h]h Description}(hhhjĉhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhj ubh)}(hbThis executes an SMBus protocol operation, and returns a negative errno code else zero on success.h]hbThis executes an SMBus protocol operation, and returns a negative errno code else zero on success.}(hjډhj؉hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j6i2c_smbus_read_i2c_block_data_or_emulated (C function)+c.i2c_smbus_read_i2c_block_data_or_emulatedhNtauh1jhhhhhNhNubj)}(hhh](j)}(hrs32 i2c_smbus_read_i2c_block_data_or_emulated (const struct i2c_client *client, u8 command, u8 length, u8 *values)h]j)}(hqs32 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client, u8 command, u8 length, u8 *values)h](h)}(hhh]j)}(hs32h]hs32}(hhhj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj modnameN classnameNjJjM)}jP]jS)}jF)i2c_smbus_read_i2c_block_data_or_emulatedsb+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMoubj)}(h h]h }(hhhj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hMoubj)}(h)i2c_smbus_read_i2c_block_data_or_emulatedh]j)}(hj(h]h)i2c_smbus_read_i2c_block_data_or_emulated}(hhhj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj+hMoubj)}(hD(const struct i2c_client *client, u8 command, u8 length, u8 *values)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hhhjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hhhjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hjh]hstruct}(hhhjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]j&+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjUubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjUubj)}(hclienth]hclient}(hhhjˊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]j&+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcommandh]hcommand}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(h u8 lengthh](h)}(hhh]j)}(hu8h]hu8}(hhhj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetj1modnameN classnameNjJjM)}jP]j&+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhj(ubj)}(h h]h }(hhhjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hlengthh]hlength}(hhhj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(h u8 *valuesh](h)}(hhh]j)}(hu8h]hu8}(hhhjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjymodnameN classnameNjJjM)}jP]j&+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjpubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjpubj)}(hvaluesh]hvalues}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj+hMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj+hMoubah}(h]jah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjhhubj)}(hhh]h)}(hread block or emulateh]hread block or emulate}(hj݋hjۋhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMnhj؋hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hMoubeh}(h]h ](j functioneh"]h$]h&]j=j j>jj?jj@uh1jhhhhhNhNubjB)}(hXn**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u8 length`` Size of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes ``u8 *values`` Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes. **Description** This executes the SMBus "block read" protocol if supported by the adapter. If block read is not supported, it emulates it using either word or byte read protocols depending on availability. The addresses of the I2C slave device that are accessed with this function must be mapped to a linear region, so that a block read will have the same effect as a byte read. Before using this function you must double-check if the I2C slave does support exchanging a block transfer with a byte transfer.h](h)}(h**Parameters**h]jL)}(hjh]h Parameters}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMrhjubjb)}(hhh](jg)}(h;``const struct i2c_client *client`` Handle to slave device h](jm)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMohjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hj7hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMohj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj1hMohjubjg)}(h)``u8 command`` Byte interpreted by slave h](jm)}(h``u8 command``h]h)}(hjUh]h u8 command}(hhhjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMphjOubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hjphjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMphjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jfhjjhMphjubjg)}(hQ``u8 length`` Size of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes h](jm)}(h ``u8 length``h]h)}(hjh]h u8 length}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMqhjubj)}(hhh]h)}(hBSize of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytesh]hBSize of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMqhjubjg)}(h``u8 *values`` Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes. h](jm)}(h``u8 *values``h]h)}(hjnjh]h u8 *values}(hhhjɌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŌubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMthjubj)}(hhh]h)}(hByte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes.h]hByte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMrhj݌ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhj܌hMthjubeh}(h]h ]h"]h$]h&]uh1jahjubh)}(h**Description**h]jL)}(hjh]h Description}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMvhjubh)}(hThis executes the SMBus "block read" protocol if supported by the adapter. If block read is not supported, it emulates it using either word or byte read protocols depending on availability.h]hThis executes the SMBus “block read” protocol if supported by the adapter. If block read is not supported, it emulates it using either word or byte read protocols depending on availability.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMvhjubh)}(hX-The addresses of the I2C slave device that are accessed with this function must be mapped to a linear region, so that a block read will have the same effect as a byte read. Before using this function you must double-check if the I2C slave does support exchanging a block transfer with a byte transfer.h]hX-The addresses of the I2C slave device that are accessed with this function must be mapped to a linear region, so that a block read will have the same effect as a byte read. Before using this function you must double-check if the I2C slave does support exchanging a block transfer with a byte transfer.}(hj*hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_new_smbus_alert_device (C function)c.i2c_new_smbus_alert_devicehNtauh1jhhhhhNhNubj)}(hhh](j)}(hqstruct i2c_client * i2c_new_smbus_alert_device (struct i2c_adapter *adapter, struct i2c_smbus_alert_setup *setup)h]j)}(hostruct i2c_client *i2c_new_smbus_alert_device(struct i2c_adapter *adapter, struct i2c_smbus_alert_setup *setup)h](j)}(hjh]hstruct}(hhhjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMubj)}(h h]h }(hhhjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjdhMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hhhjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjxmodnameN classnameNjJjM)}jP]jS)}jFi2c_new_smbus_alert_devicesbc.i2c_new_smbus_alert_deviceasbuh1hhjShhhjdhMubj)}(h h]h }(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjdhMubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhjShhhjdhMubj)}(hi2c_new_smbus_alert_deviceh]j)}(hjh]hi2c_new_smbus_alert_device}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjShhhjdhMubj)}(hB(struct i2c_adapter *adapter, struct i2c_smbus_alert_setup *setup)h](j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hhhjэhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͍ubj)}(h h]h }(hhhjލhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͍ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjmodnameN classnameNjJjM)}jP]jc.i2c_new_smbus_alert_deviceasbuh1hhj͍ubj)}(h h]h }(hhhj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͍ubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj͍ubj)}(hadapterh]hadapter}(hhhj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͍ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɍubj)}(h#struct i2c_smbus_alert_setup *setuph](j)}(hjh]hstruct}(hhhjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hhhjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(hi2c_smbus_alert_setuph]hi2c_smbus_alert_setup}(hhhj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainj reftypejF reftargetjamodnameN classnameNjJjM)}jP]jc.i2c_new_smbus_alert_deviceasbuh1hhj=ubj)}(h h]h }(hhhj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjg)}(hjjh]h*}(hhhjhhhNhNubah}(h]h ]jsah"]h$]h&]uh1jfhj=ubj)}(hsetuph]hsetup}(hhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɍubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjdhMubah}(h]jJah ](jjeh"]h$]h&]juh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjLhhubj)}(hhh]h)}(h&get ara client for SMBus alert supporth]h&get ara client for SMBus alert support}(hjŎhjÎhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjdhMubeh}(h]h ](j functioneh"]h$]h&]j=j j>jێj?jێj@uh1jhhhhhNhNubjB)}(hX-**Parameters** ``struct i2c_adapter *adapter`` the target adapter ``struct i2c_smbus_alert_setup *setup`` setup data for the SMBus alert handler **Context** can sleep **Description** Setup handling of the SMBus alert protocol on a given I2C bus segment. Handling can be done either through our IRQ handler, or by the adapter (from its handler, periodic polling, or whatever). This returns the ara client, which should be saved for later use with i2c_handle_smbus_alert() and ultimately i2c_unregister_device(); or an ERRPTR to indicate an error.h](h)}(h**Parameters**h]jL)}(hjh]h Parameters}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjߎubjb)}(hhh](jg)}(h3``struct i2c_adapter *adapter`` the target adapter h](jm)}(h``struct i2c_adapter *adapter``h]h)}(hjh]hstruct i2c_adapter *adapter}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(hthe target adapterh]hthe target adapter}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jfhjhMhjubjg)}(hO``struct i2c_smbus_alert_setup *setup`` setup data for the SMBus alert handler h](jm)}(h'``struct i2c_smbus_alert_setup *setup``h]h)}(hj=h]h#struct i2c_smbus_alert_setup *setup}(hhhj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1jlh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhj7ubj)}(hhh]h)}(h&setup data for the SMBus alert handlerh]h&setup data for the SMBus alert handler}(hjXhjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jfhjRhMhjubeh}(h]h ]h"]h$]h&]uh1jahjߎubh)}(h **Context**h]jL)}(hjxh]hContext}(hhhjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjvubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjߎubh)}(h can sleeph]h can sleep}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjߎubh)}(h**Description**h]jL)}(hjh]h Description}(hhhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjߎubh)}(hFSetup handling of the SMBus alert protocol on a given I2C bus segment.h]hFSetup handling of the SMBus alert protocol on a given I2C bus segment.}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjߎubh)}(hyHandling can be done either through our IRQ handler, or by the adapter (from its handler, periodic polling, or whatever).h]hyHandling can be done either through our IRQ handler, or by the adapter (from its handler, periodic polling, or whatever).}(hjƏhjďhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjߎubh)}(hThis returns the ara client, which should be saved for later use with i2c_handle_smbus_alert() and ultimately i2c_unregister_device(); or an ERRPTR to indicate an error.h]hThis returns the ara client, which should be saved for later use with i2c_handle_smbus_alert() and ultimately i2c_unregister_device(); or an ERRPTR to indicate an error.}(hjՏhjӏhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjߎubeh}(h]h ] kernelindentah"]h$]h&]uh1jAhhhhhNhNubeh}(h]i2c-and-smbus-subsystemah ]h"]i2c and smbus subsystemah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingUTF-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceȟ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confapep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacefile_insertion_enabled raw_enabledKline_length_limitM'syntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_link embed_imagesenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}jjs nametypes}jNsh}(jhjjjWj\jjj~ j j j$ j j j}jjjjj jjjjjjjijnj"j"j%j%j(j(j)j)j,j,j-j-ji/jn/j0j1j3j3j 4j4j5j5j7j7j9j9j6<j;<j=j=j3@j8@jBjBjEjEjIjIjJjJjMj MjNjNjPjPjaRjfRjTjTj.Wj3WjYjYj\j"\j]j]jH`jM`jbjbjejej>hjChj1jj6jjljljoj ojqjqj2sj7sjcujhujwjwjFzjKzjw|j||j)j.jjjSjXjjjJjOu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.