On Sat, 3 May 2008 19:33:15 -0700, David Brownell wrote: > More LM75 updates: > > - Teach the LM75 driver to use new-style driver binding: > > * Create a second driver struct, using new-style driver binding > methods cribbed from the legacy code. > > * Add a MODULE_DEVICE_TABLE (for "newER-style binding") > > * The legacy probe logic delegates its work to this new code. > > * The legacy driver now uses the name "lm75_legacy". > > - More careful initialization. Chips are put into 9-bit mode so > the current interconversion routines will never fail. > > - Save the original chip configuration, and restore it on exit. > (Among other things, this normally turns off the mode where > the chip is constantly sampling ... and thus saves power.) > > So the new-style code should catch all chips that boards declare, > while the legacy code catches others. This particular coexistence > strategy may need some work yet ... legacy modes might best be set > up explicitly by some tool not unlike "sensors-detect". (Or else > completely eradicated...) > > Signed-off-by: David Brownell <dbrownell at users.sourceforge.net> > --- > Goes on top of the other stuff. Addresess one more round of > comments from Jean. > > drivers/hwmon/Kconfig | 7 + > drivers/hwmon/lm75.c | 206 ++++++++++++++++++++++++++++++++++++++------------ > 2 files changed, 165 insertions(+), 48 deletions(-) > (...) Acked-by: Jean Delvare <khali at linux-fr.org> -- Jean Delvare