• Jean Delvare's avatar
    [PATCH] I2C: Cleanup lm78 init · 8978afef
    Jean Delvare authored
    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: default avatarJean Delvare <khali@linux-fr.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    8978afef
lm78.c 23.4 KB