1. 10 1月, 2013 1 次提交
    • G
      hwmon: (vexpress) Fix build error seen if CONFIG_OF_DEVICE is not set · 08245ad8
      Guenter Roeck 提交于
      Fix:
      vexpress.c: In function ‘vexpress_hwmon_name_show’:
      vexpress.c:34:2: error: implicit declaration of function
      ‘of_get_property’ [-Werror=implicit-function-declaration]
      vexpress.c:34:27: warning: initialization makes pointer from integer
      without a cast [enabled by default]
      vexpress.c: In function ‘vexpress_hwmon_label_show’:
      vexpress.c:43:22: warning: initialization makes pointer from integer
      without a cast [enabled by default]
      
      Seen if CONFIG_OF_DEVICE is not defined. of_get_property is declared in
      of.h which is only included by of_device.h if CONFIG_OF_DEVICE is defined.
      of.h needs to be included directly.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      08245ad8
  2. 04 1月, 2013 1 次提交
    • G
      Drivers: misc: remove __dev* attributes. · 0fe763c5
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0fe763c5
  3. 22 12月, 2012 2 次提交
    • G
      hwmon: (emc6w201) Fix DIV_ROUND_CLOSEST problem with unsigned divisors · 86266ca0
      Guenter Roeck 提交于
      Result of DIV_ROUND_CLOSEST is undefined for negative dividends if the divisor
      variable type is unsigned. Fix by declaring divisor as signed variable.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Acked-by: NJean Delvare <khali@linux-fr.org>
      86266ca0
    • C
      hwmon: (lm73} Detect and report i2c bus errors · 0602934f
      Chris Verges 提交于
      If an LM73 device does not exist on an I2C bus, attempts to communicate
      with the device result in an error code returned from the i2c read/write
      functions.  The current lm73 driver casts that return value from a s32
      type to a s16 type, then converts it to a temperature in celsius.
      Because negative temperatures are valid, it is difficult to distinguish
      between an error code printed to the response buffer and a negative
      temperature recorded by the sensor.
      
      The solution is to evaluate the return value from the i2c functions
      before performing any temperature calculations.  If the i2c function did
      not succeed, the error code should be passed back through the virtual
      file system layer instead of being printed into the response buffer.
      
      Before:
      
         $ cat /sys/class/hwmon/hwmon0/device/temp1_input
         -46
      
      After:
      
         $ cat /sys/class/hwmon/hwmon0/device/temp1_input
         cat: read error: No such device or address
      Signed-off-by: NChris Verges <kg4ysn@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      0602934f
  4. 20 12月, 2012 16 次提交
  5. 17 12月, 2012 1 次提交
  6. 06 12月, 2012 10 次提交
  7. 29 11月, 2012 4 次提交
  8. 06 11月, 2012 2 次提交
  9. 02 11月, 2012 1 次提交
  10. 30 10月, 2012 1 次提交
  11. 17 10月, 2012 1 次提交