1. 25 Aug, 2010 3 commits
    • Andreas Herrmann's avatar
      hwmon: (k8temp) Differentiate between AM2 and ASB1 · a05e93f3
      Andreas Herrmann authored
      Commit 8bf0223ed515be24de0c671eedaff49e78bebc9c (hwmon, k8temp: Fix
      temperature reporting for ASB1 processor revisions) fixed temperature
      reporting for ASB1 CPUs. But those CPU models (model 0x6b, 0x6f, 0x7f)
      were packaged both as AM2 (desktop) and ASB1 (mobile). Thus the commit
      leads to wrong temperature reporting for AM2 CPU parts.
      
      The solution is to determine the package type for models 0x6b, 0x6f,
      0x7f.
      
      This is done using BrandId from CPUID Fn8000_0001_EBX[15:0]. See
      "Constructing the processor Name String" in "Revision Guide for AMD
      NPT Family 0Fh Processors" (Rev. 3.46).
      
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: stable@kernel.org [.32.x, .33.x, .34.x, .35.x]
      Reported-by: default avatarVladislav Guberinic <neosisani@gmail.com>
      Signed-off-by: default avatarAndreas Herrmann <andreas.herrmann3@amd.com>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      a05e93f3
    • Axel Lin's avatar
      hwmon: (ads7871) Fix ads7871_probe error paths · c12c507d
      Axel Lin authored
      1. remove 'status' variable
      2. remove unneeded initialization of 'err' variable
      3. return missing error code if sysfs_create_group fail.
      4. fix the init sequence as:
         - check hardware existence
         - kzalloc for ads7871_data
         - sysfs_create_group
         - hwmon_device_register
      Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      c12c507d
    • Jean Delvare's avatar
      hwmon: (coretemp) Fix harmless build warning · 45ff34d3
      Jean Delvare authored
      Fix the following build warning:
      
        CC [M]  drivers/hwmon/coretemp.o
      drivers/hwmon/coretemp.c: In function "coretemp_init":
      drivers/hwmon/coretemp.c:521: warning: unused variable "n"
      drivers/hwmon/coretemp.c:521: warning: unused variable "p"
      
      Introduced by commit 851b29cb. When
      you drop code, you also have to drop the variables this code was
      using.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Chen Gong <gong.chen@linux.intel.com>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: Huaxu Wan <huaxu.wan@intel.com>
      45ff34d3
  2. 24 Aug, 2010 37 commits