]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] I2C: via686a cleanups
authorJean Delvare <khali@linux-fr.org>
Tue, 19 Apr 2005 04:16:58 +0000 (21:16 -0700)
committerGreg KH <greg@press.kroah.org>
Tue, 19 Apr 2005 04:16:58 +0000 (21:16 -0700)
commit27f14a06eaa68b3618e2dc29841286eaccca65d8
treeef4138c02aa447610146df63749e07c1859c3509
parentd913d98c1ed09fd95cb423b2dc1bcad78e5c2439
[PATCH] I2C: via686a cleanups

Here comes a small cleanup patch for the via686a driver. I noticed the
following two non-fatal problems:

1* The device parent is explicitely set, but it's not needed because the
i2c core will do as the client is registered.

2* snprintf is used where strlcpy would suffice.

Fixing them brings the via686a driver in line with what other similar
drivers do.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/chips/via686a.c