[lm-sensors] [PATCH] Add MAX6650 support

Thomas Gleixner tglx at linutronix.de
Fri Mar 16 22:19:55 CET 2007


On Fri, 2007-03-16 at 22:07 +0100, Hans-Jürgen Koch wrote:
> > > /* fan_voltage: 5=5V fan, 12=12V fan, 0=don't change */
> > > static int fan_voltage = 0;
> > > /* prescaler: Possible values are 1,2,4,8,16, or 0 for don't change */
> > > static int prescaler = 0;
> >
> > The trick is to _not_ initialize these variables at all. The compiler
> > will put them in a special section and will zero them all at once
> > automatically.
> 
> Sounds dangerous. But I trust you :-)

It's one of the things which actually work reliable in gcc :)

	tglx






More information about the lm-sensors mailing list