1. 11 12月, 2009 33 次提交
  2. 10 12月, 2009 7 次提交
    • F
      nvram: Fix missing smp_lock.h in nvram · 79a56ed0
      Frederic Weisbecker 提交于
      The bkl has been removed from nvram_llseek() and smp_lock.h was removed
      because another patch in the same tree zapped the remaining usage of bkl
      in the same file.  But this patch must have been excluded later, then we
      still need the smp_lock.h headers for the bkl use in nvram_open().
      
      This fixes the following build error:
      
        drivers/char/nvram.c: In function ‘nvram_open’:
        drivers/char/nvram.c:332: erreur: implicit declaration of function ‘lock_kernel’
        drivers/char/nvram.c:339: erreur: implicit declaration of function ‘unlock_kernel’
        make[2]: *** [drivers/char/nvram.o] Erreur 1
        make[1]: *** [drivers/char] Erreur 2
        make: *** [drivers] Erreur 2
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      79a56ed0
    • J
      hwmon: (adt7475) Add VID support for the ADT7476 · 54fe4671
      Jean Delvare 提交于
      The ADT7476 has 5 dedicated pins for VID input, and the +12V input can
      optionally be used as a 6th VID pin. Add support for VID input.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      54fe4671
    • J
      hwmon: (adt7475) Add support for the ADT7476 · d8d2ee07
      Jean Delvare 提交于
      Add support for the Analog Devices ADT7476 chip. This chip is largely
      compatible with the ADT7473 and ADT7475, with additional features.
      In particular, it has 5 voltage inputs instead of 2, and VID input
      pins.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      d8d2ee07
    • J
      hwmon: (adt7475) Voltage attenuators can be bypassed · ebfaf1fb
      Jean Delvare 提交于
      It is possible to bypass the voltage attenuators on the +2.5V, Vccp,
      +5V and +12V voltage monitoring inputs. This is useful to connect
      other voltage channels than the ones the monitoring chip was
      originally designed for. When this feature is enabled, we must not
      include the scaling factors in our computations.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      ebfaf1fb
    • J
      hwmon: (adt7475) Print device information on probe · d07ca4ad
      Jean Delvare 提交于
      Print the device name and revision at probe time, as well as a list of
      all optional features which are available.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      d07ca4ad
    • J
      hwmon: (adt7475) Handle alternative pin functions · 378933c9
      Jean Delvare 提交于
      The TACH4 pin can be used for other functions, so fan4 may not always
      be available. Likewise, the PWM2 pin can be used for ALERT output, in
      which case pwm2 is not available
      
      For the ADT7490, the +2.5 Vin pin may also be used for other
      functions, in which case in0 is not available.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      378933c9
    • J
      hwmon: (adt7475) Move sysfs files removal to a separate function · 0f14480b
      Jean Delvare 提交于
      Move sysfs files removal to a separate function. The code is common to
      the device probing error path and the standard device removal path. As
      it will grow with future driver development, this avoids code
      duplication.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Jordan Crouse <jordan@cosmicpenguin.net>
      Cc: "Darrick J. Wong" <djwong@us.ibm.com>
      0f14480b