1. 19 3月, 2012 1 次提交
    • A
      hwmon: convert drivers/hwmon/* to use module_i2c_driver() · f0967eea
      Axel Lin 提交于
      This patch converts the drivers in drivers/hwmon/* to use the
      module_i2c_driver() macro which makes the code smaller and a bit simpler.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: Corentin Labbe <corentin.labbe@geomatys.fr>
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Riku Voipio <riku.voipio@iki.fi>
      Cc: Guillaume Ligneul <guillaume.ligneul@gmail.com>
      Cc: David George <david.george@ska.ac.za>
      Cc: "Hans J. Koch" <hjk@hansjkoch.de>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      f0967eea
  2. 25 10月, 2011 1 次提交
    • G
      hwmon: (pmbus) Don't return errors from driver remove functions · 866cf12a
      Guenter Roeck 提交于
      Driver remove functions have an error return value, but rarely return an error
      in practice. If a driver does return an error from its remove function, the
      driver won't be unloaded and is expected to stay alive.
      
      pmbus_do_remove() is defined as returning an int, but always returns 0 (no
      error). Calling code passes that return value on to high level driver
      remove functions, but does not evaluate it and removes driver data even if
      pmbus_do_remove() returned an error (which it in practice never does). Even if
      this code could never cause a real problem, it is nevertheless conceptually
      wrong.
      
      To reduce confusion and simplify the code, change pmbus_do_remove() to be a void
      function, and have PMBus client drivers always return zero in their driver
      remove functions.
      Reported-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Acked-by: NJean Delvare <khali@linux-fr.org>
      866cf12a
  3. 06 9月, 2011 1 次提交
  4. 29 7月, 2011 1 次提交
  5. 19 5月, 2011 1 次提交