[PATCH 2.6] I2C: Kill another macro abuse in via686a

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Khali,
On Tue, 17 May 2005 22:38:57 +0200, Jean Delvare <khali at linux-fr.org> wrote:
>This patch kills another macro abuse in the via686a hardware monitoring
>driver. Using a macro just to alias an array is quite useless, isn't it?

Can I go kill some macros too?  Silly conversion macros, make like 
adm9240?  Was planning to put SCALING() in with SENSORS_LIMIT() in 
the header somewhere, as those two static functions can be used for 
most of the scaling conversions.

As well, do something with the LM75 include, I see now I duplicated 
some of the code there, with exception that I right justify signed 
9-bit temp on read to local store, rather than on delivery to sysfs.

Stomping macros makes the code so much more colourful in vim :)  

--Grant.


_______________________________________________
lm-sensors mailing list
lm-sensors at lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux