<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/include/linux/i2c.h, branch linux-2.6.28.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2008-10-22T18:21:33+00:00</updated>
<entry>
<title>i2c: Add info-&gt;archdata field</title>
<updated>2008-10-22T18:21:33+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>avorontsov@ru.mvista.com</email>
</author>
<published>2008-10-22T18:21:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=11f1f2afd6b07729b12aaba479344d7f12d88ff9'/>
<id>urn:sha1:11f1f2afd6b07729b12aaba479344d7f12d88ff9</id>
<content type='text'>
If present the info-&gt;archdata is copied into the dev-&gt;archdata.
Some (OpenFirmware) platforms need it.

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Clean up &lt;linux/i2c.h&gt;</title>
<updated>2008-10-22T18:21:32+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-10-22T18:21:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3ae70deef0a5cc34a96aa1972697d01606bc7933'/>
<id>urn:sha1:3ae70deef0a5cc34a96aa1972697d01606bc7933</id>
<content type='text'>
Fix most checkpatch.pl errors and warnings. This includes replacing
spaces with tabs in many places, adding and removing spaces, and
folding long lines.

Also complete a couple prototypes to make it clearer what the
parameters represent.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Drop 2-byte address block transfer defines</title>
<updated>2008-10-22T18:21:31+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-10-22T18:21:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c0589d4bc19294a49934af1be736eb6e9ad11673'/>
<id>urn:sha1:c0589d4bc19294a49934af1be736eb6e9ad11673</id>
<content type='text'>
We have no users and no implementers for these transfer types so it
makes little sense to define functionality bits for them.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Constify i2c_get_clientdata's parameter</title>
<updated>2008-10-22T18:21:31+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-10-22T18:21:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7d1d8999b4bec0ba09f935e648a688bb25596d06'/>
<id>urn:sha1:7d1d8999b4bec0ba09f935e648a688bb25596d06</id>
<content type='text'>
i2c_get_clientdata doesn't change the i2c_client it is passed as a
parameter, so it can be constified. Same for i2c_get_adapdata.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Make clear what the class field of i2c_adapter is good for</title>
<updated>2008-10-22T18:21:30+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>w.sang@pengutronix.de</email>
</author>
<published>2008-10-22T18:21:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=14f55f7a033f86a4e8f0310dd4d54b5464322e6e'/>
<id>urn:sha1:14f55f7a033f86a4e8f0310dd4d54b5464322e6e</id>
<content type='text'>
Make clear what the class field of i2c_adapter is good for.

Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Add missing kerneldoc descriptions</title>
<updated>2008-08-28T06:33:23+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-08-28T06:33:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=96e21e4fbc1b83a3445553381ec74f904618562e'/>
<id>urn:sha1:96e21e4fbc1b83a3445553381ec74f904618562e</id>
<content type='text'>
Add missing kernel descriptions of struct i2c_driver members.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Acked-by: Randy Dunlap &lt;rdunlap@xenotime.net&gt;
Cc: David Brownell &lt;david-b@pacbell.net&gt;
</content>
</entry>
<entry>
<title>i2c: Add detection capability to new-style drivers</title>
<updated>2008-07-14T20:38:36+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-07-14T20:38:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4735c98f8447acb1c8977e2b8024640f7bf36dd6'/>
<id>urn:sha1:4735c98f8447acb1c8977e2b8024640f7bf36dd6</id>
<content type='text'>
Add a mechanism to let new-style i2c drivers optionally autodetect
devices they would support on selected buses and ask i2c-core to
instantiate them. This is a replacement for legacy i2c drivers, much
cleaner.

Where drivers had to implement both a legacy i2c_driver and a
new-style i2c_driver so far, this mechanism makes it possible to get
rid of the legacy i2c_driver and implement both enumerated and
detected device support with just one (new-style) i2c_driver.

Here is a quick conversion guide for these drivers, step by step:

* Delete the legacy driver definition, registration and removal.
  Delete the attach_adapter and detach_client methods of the legacy
  driver.

* Change the prototype of the legacy detect function from
    static int foo_detect(struct i2c_adapter *adapter, int address, int kind);
  to
    static int foo_detect(struct i2c_client *client, int kind,
    			  struct i2c_board_info *info);

* Set the new-style driver detect callback to this new function, and
  set its address_data to &amp;addr_data (addr_data is generally provided
  by I2C_CLIENT_INSMOD.)

* Add the appropriate class to the new-style driver. This is
  typically the class the legacy attach_adapter method was checking
  for. Class checking is now mandatory (done by i2c-core.) See
  &lt;linux/i2c.h&gt; for the list of available classes.

* Remove the i2c_client allocation and freeing from the detect
  function. A pre-allocated client is now handed to you by i2c-core,
  and is freed automatically.

* Make the detect function fill the type field of the i2c_board_info
  structure it was passed as a parameter, and return 0, on success. If
  the detection fails, return -ENODEV.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Export the i2c_bus_type symbol</title>
<updated>2008-07-14T20:38:35+00:00</updated>
<author>
<name>Jon Smirl</name>
<email>jonsmirl@gmail.com</email>
</author>
<published>2008-07-14T20:38:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e9ca9eb9d7fc7bf3dc3cec5ba7edb089c4625f7b'/>
<id>urn:sha1:e9ca9eb9d7fc7bf3dc3cec5ba7edb089c4625f7b</id>
<content type='text'>
Export the root of the i2c bus so that PowerPC device tree code can
iterate over devices on the i2c bus.

Signed-off-by: Jon Smirl &lt;jonsmirl@gmail.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Let bus drivers add SPD to their class</title>
<updated>2008-07-14T20:38:29+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-07-14T20:38:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3401b2fff38fbb8b73ea6bcc69a8370ae5d2a7a0'/>
<id>urn:sha1:3401b2fff38fbb8b73ea6bcc69a8370ae5d2a7a0</id>
<content type='text'>
Let general purpose I2C/SMBus bus drivers add SPD to their class. Once
this is done, we will be able to tell the eeprom driver to only probe
for SPD EEPROMs and similar on these buses.

Note that I took a conservative approach here, adding I2C_CLASS_SPD to
many drivers that have no idea whether they can host SPD EEPROMs or not.
This is to make sure that the eeprom driver doesn't stop probing buses
where SPD EEPROMs or equivalent live.

So, bus driver maintainers and users should feel free to remove the SPD
class from drivers those buses never have SPD EEPROMs or they don't
want the eeprom driver to bind to them. Likewise, feel free to add the
SPD class to any bus driver I might have missed.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Let framebuffer drivers set their I2C bus class to DDC</title>
<updated>2008-07-14T20:38:28+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-07-14T20:38:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c1b6b4f2342d073698dfc2547240c35045a1d00e'/>
<id>urn:sha1:c1b6b4f2342d073698dfc2547240c35045a1d00e</id>
<content type='text'>
Let framebuffer drivers set their I2C bus class to DDC. Once this is
done, we will be able to tell the eeprom driver to only probe for
EDID EEPROMs on these buses.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
</feed>
