<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/i2c/i2c-dev.c, branch v2.6.20</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/i2c/i2c-dev.c?h=v2.6.20</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/i2c/i2c-dev.c?h=v2.6.20'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2006-12-10T20:21:33Z</updated>
<entry>
<title>i2c: Refactor a kfree in i2c-dev</title>
<updated>2006-12-10T20:21:33Z</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2006-12-10T20:21:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=07125ab2c2641e976bbaf3b89a735ad5a99e25d3'/>
<id>urn:sha1:07125ab2c2641e976bbaf3b89a735ad5a99e25d3</id>
<content type='text'>
Refactor kfree(i2c_dev) into return_i2c_dev(). This saves some
code and makes more sense, as the memory is allocated in
get_free_i2c_dev().

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>i2c: Fix return value check in i2c-dev</title>
<updated>2006-12-10T20:21:33Z</updated>
<author>
<name>Akinobu Mita</name>
<email>akinobu.mita@gmail.com</email>
</author>
<published>2006-12-10T20:21:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3bacb36db01c7541ffea21d4ff39219e8b211a5c'/>
<id>urn:sha1:3bacb36db01c7541ffea21d4ff39219e8b211a5c</id>
<content type='text'>
device_create() returns error code as pointer on failures.
This patch checks the return value of device_create() by using IS_ERR().

Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Whitespace cleanups</title>
<updated>2006-12-10T20:21:31Z</updated>
<author>
<name>David Brownell</name>
<email>david-b@pacbell.net</email>
</author>
<published>2006-12-10T20:21:31Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=438d6c2c015cf63bf7e9bdc2033d435433ac8455'/>
<id>urn:sha1:438d6c2c015cf63bf7e9bdc2033d435433ac8455</id>
<content type='text'>
Remove extraneous whitespace from various i2c headers and core files,
like space-before-tab and whitespace at end of line.

Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Use put_user instead of copy_to_user where possible</title>
<updated>2006-12-10T20:21:30Z</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2006-12-10T20:21:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2c003e8e1c0c241aec162ba9ec781089c5b2ff3f'/>
<id>urn:sha1:2c003e8e1c0c241aec162ba9ec781089c5b2ff3f</id>
<content type='text'>
This speeds up the I2C_FUNCS ioctl by 5 to 8% in my tests.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Laughed-at-by: Mark M. Hoffman &lt;mhoffman@lightlink.com&gt;
</content>
</entry>
<entry>
<title>[PATCH] struct path: convert i2c-drivers</title>
<updated>2006-12-08T16:28:45Z</updated>
<author>
<name>Josef Sipek</name>
<email>jsipek@fsl.cs.sunysb.edu</email>
</author>
<published>2006-12-08T10:37:08Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cba0a128434f1fae6f90ba9f1fedf18be7abcf48'/>
<id>urn:sha1:cba0a128434f1fae6f90ba9f1fedf18be7abcf48</id>
<content type='text'>
Signed-off-by: Josef Sipek &lt;jsipek@fsl.cs.sunysb.edu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>I2C: convert i2c-dev to use struct device instead of struct class_device</title>
<updated>2006-12-01T22:51:59Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2006-07-03T20:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ac11d0601bbe73c92e31b393eeb1225593788d4c'/>
<id>urn:sha1:ac11d0601bbe73c92e31b393eeb1225593788d4c</id>
<content type='text'>
As class_device is going away eventually...

Cc: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>i2c-dev: attach/detach_adapter cleanups</title>
<updated>2006-09-26T22:38:51Z</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2006-09-03T20:19:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b32d20dc8b187e03605f091dbde9a78676a2a642'/>
<id>urn:sha1:b32d20dc8b187e03605f091dbde9a78676a2a642</id>
<content type='text'>
i2c-dev: attach/detach_adapter cleanups

* Only print that an adapter was attached when it succeeds.
* i2c_dev == NULL on detach simply means that the attach failed
  before, this isn't an error per se.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>i2c: __must_check fixes, i2c-dev</title>
<updated>2006-09-26T22:38:50Z</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2006-08-15T16:30:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=defcb46ed4666095677c8f52904b9e328587a20d'/>
<id>urn:sha1:defcb46ed4666095677c8f52904b9e328587a20d</id>
<content type='text'>
i2c: __must_check fixes (i2c-dev)

Check for error on sysfs file creation.
Check for error on device creation.
Delete sysfs file on device destruction.

I couldn't test this one beyond compilation, as it applies on top of
another patch in Greg's tree [1] which breaks all my systems when I
apply it (my udev isn't recent enough.) Anyone with bleeding edge udev
is welcome to test and report.

[1] http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/i2c/i2c-dev-device.patch

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>i2c-dev: Drop the client template</title>
<updated>2006-09-26T22:38:50Z</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2006-07-01T15:20:57Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=22f76e744dc41096987c6df8270b5c249511cde5'/>
<id>urn:sha1:22f76e744dc41096987c6df8270b5c249511cde5</id>
<content type='text'>
i2c-dev: Drop the client template

Drop the i2c-dev client template. This saves about 360 bytes of
memory. I got the idea from a similar cleanup Hans-Frieder Vogt
made to i2c-nforce2 recently.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>i2c-dev: Use a list for data storage</title>
<updated>2006-09-26T22:38:50Z</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2006-07-01T15:17:38Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f3b3aadbbd66d8a020550b01b37d9b1ea559f2c3'/>
<id>urn:sha1:f3b3aadbbd66d8a020550b01b37d9b1ea559f2c3</id>
<content type='text'>
i2c-dev: Use a list for data storage

Use a list instead of a static array for storing the i2c-dev data.
Given that most systems have less than 10 i2c busses, most of the
space was wasted, so this saves around 1 kB of memory (2 kB on 64-bit
archs.)

The drawback is that lookup was in O(1) and is now in O(N), but given
that the values of N are always small, I don't think this is a problem.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
