]> git.hungrycats.org Git - linux/commit
[PATCH] I2C: Cleanup lm78 init
authorJean Delvare <khali@linux-fr.org>
Tue, 21 Sep 2004 09:39:57 +0000 (02:39 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 21 Sep 2004 09:39:57 +0000 (02:39 -0700)
commit8978afef85ffd5e594c7bdac5870843f7bda7bd3
tree0a51b036ebaddd7cc89aaa65bea87f4e1ea6a2aa
parentfd01b12a3de2f16681fb0c64c796c01ca7736515
[PATCH] I2C: Cleanup lm78 init

This patch cleans the init part of the lm78 driver.

* Do not reset the chip.

* Get rid of useless code, which was accidentally left in when we
removed the limit initialization from the driver.

* Do not enable monitoring if it is already enabled (it wouldn't hurt,
but since we can avoid it at no cost...)

Similar changes were applied to the Linux 2.4 driver, which I
successfully tested on my own LM78 chip.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/i2c/chips/lm78.c