Hi Jean, On Thu, Oct 07, 2010 at 05:28:03AM -0400, Jean Delvare wrote: [ ... ] > This is smart :) I like it a lot. Just not sure why you limited the > shift to 2 bits, shifting by say 6 bits would guarantee that future > devices supporting greater values for the conversion rate register > (up tp 13) would be supported out of the box. > I ran test code for all supported values, and found that shift by 2 was sufficient. It can always be changed if someone ever comes up with a sensor supporting even higher resolution. Call me minimalist ... > Also note that you may want to use DIV_ROUND_CLOSEST() to make the code > slightly easier to read. > Yes, that would be cleaner for the final interval calculation. Want me to change it and send out another revision ? > But anyway, your code works just fine for the devices currently > supported, so I can apply the patch as is. I tested the resulting > driver on my ADM1032 evaluation board and everything went fine. Thanks > for your contribution! > Thanks a lot for reviewing it! Guenter _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors