]> git.neil.brown.name Git - history.git/commit
[PATCH] I2C: fix forced i2c chip drivers have no name
authorJean Delvare <khali@linux-fr.org>
Mon, 15 Mar 2004 05:08:29 +0000 (21:08 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 15 Mar 2004 05:08:29 +0000 (21:08 -0800)
commitf09513c726e890d0841806d4b96b0a7e64ba1e4d
tree33ae3fde1345da74c78a3aa44366e7d1bc58b54e
parent5e044de4a3f71e7a81a3e83475cf980f71d2c0fe
[PATCH] I2C: fix forced i2c chip drivers have no name

I just noticed that I am doing something wrong in the i2c chip drivers I
ported to Linux 2.6. If these drivers are forced to a specific chip type
("kind" as we call it internally), then the device doesn't have its name
set (and defaults to an empty string).

Affected drivers: gl518sm, lm83, lm90, w83l785ts.

I could verify the problem on my ADM1032 chip (lm90 driver). I also
verified that the proposed patch fixes the issue.

You may notice that I fix the problem differently for gl518sm and
w83l785ts on the one hand, and lm83 and lm90 on the other hand. This is
because the first two drivers are not expected to support more a single
chip in the future, while lm90 already does and lm83 could someday (for
example, support for the LM82 could be added on request).
drivers/i2c/chips/gl518sm.c
drivers/i2c/chips/lm83.c
drivers/i2c/chips/lm90.c
drivers/i2c/chips/w83l785ts.c