]> Pileus Git - ~andy/linux/commitdiff
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelv...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Jan 2014 02:56:27 +0000 (18:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Jan 2014 02:56:27 +0000 (18:56 -0800)
Pull hwmon updates from Jean Delvare:
 "This include it87 driver improvements, and a tree-wide change of my
  e-mail address"

* 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
  Update Jean Delvare's e-mail address
  hwmon: (it87) Print proper names for the IT8771E and IT8772E
  hwmon: (it87) Add support for the ITE IT8603E

1  2 
MAINTAINERS
drivers/char/i8k.c
drivers/hwmon/nct6775.c
drivers/hwmon/sis5595.c
drivers/i2c/i2c-core.c
drivers/i2c/muxes/i2c-mux-pca954x.c

diff --combined MAINTAINERS
index 38b81df6701c1d744ce14efbe301f6d16c2257ee,28eeedace9b3a1785442e7130029775cc4b8dbff..a31a6e3e199fa9c114515cba48c57c6931d77e6f
@@@ -93,11 -93,6 +93,11 @@@ Descriptions of section entries
        N: Files and directories with regex patterns.
           N:   [^a-z]tegra     all files whose path contains the word tegra
           One pattern per line.  Multiple N: lines acceptable.
 +         scripts/get_maintainer.pl has different behavior for files that
 +         match F: pattern and matches of N: patterns.  By default,
 +         get_maintainer will not look at git log history when an F: pattern
 +         match occurs.  When an N: match occurs, git log history is used
 +         to also notify the people that have git commit signatures.
        X: Files and directories that are NOT maintained, same rules as F:
           Files exclusions are tested before file matches.
           Can be useful for excluding a specific subdirectory, for instance:
@@@ -257,7 -252,6 +257,7 @@@ F: Documentation/ABI/testing/sysfs-bus-
  F:    drivers/pci/*acpi*
  F:    drivers/pci/*/*acpi*
  F:    drivers/pci/*/*/*acpi*
 +F:    tools/power/acpi
  
  ACPI COMPONENT ARCHITECTURE (ACPICA)
  M:    Robert Moore <robert.moore@intel.com>
@@@ -272,7 -266,6 +272,7 @@@ T: git git://git.kernel.org/pub/scm/lin
  S:    Supported
  F:    drivers/acpi/acpica/
  F:    include/acpi/
 +F:    tools/power/acpi/
  
  ACPI FAN DRIVER
  M:    Zhang Rui <rui.zhang@intel.com>
@@@ -309,36 -302,36 +309,36 @@@ F:      sound/pci/ad1889.
  
  AD525X ANALOG DEVICES DIGITAL POTENTIOMETERS DRIVER
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/AD5254
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/misc/ad525x_dpot.c
  
  AD5398 CURRENT REGULATOR DRIVER (AD5398/AD5821)
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/AD5398
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/regulator/ad5398.c
  
  AD714X CAPACITANCE TOUCH SENSOR DRIVER (AD7142/3/7/8/7A)
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/AD7142
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/input/misc/ad714x.c
  
  AD7877 TOUCHSCREEN DRIVER
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/AD7877
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/input/touchscreen/ad7877.c
  
  AD7879 TOUCHSCREEN DRIVER (AD7879/AD7889)
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/AD7879
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/input/touchscreen/ad7879.c
  
@@@ -347,7 -340,7 +347,7 @@@ M: Jiri Kosina <jkosina@suse.cz
  S:    Maintained
  
  ADM1025 HARDWARE MONITOR DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/adm1025
@@@ -374,8 -367,8 +374,8 @@@ F: include/media/adp1653.
  
  ADP5520 BACKLIGHT DRIVER WITH IO EXPANDER (ADP5520/ADP5501)
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/ADP5520
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/mfd/adp5520.c
  F:    drivers/video/backlight/adp5520_bl.c
@@@ -385,16 -378,16 +385,16 @@@ F:      drivers/input/keyboard/adp5520-keys.
  
  ADP5588 QWERTY KEYPAD AND IO EXPANDER DRIVER (ADP5588/ADP5587)
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/ADP5588
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/input/keyboard/adp5588-keys.c
  F:    drivers/gpio/gpio-adp5588.c
  
  ADP8860 BACKLIGHT DRIVER (ADP8860/ADP8861/ADP8863)
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/ADP8860
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/video/backlight/adp8860_bl.c
  
@@@ -412,7 -405,7 +412,7 @@@ S: Maintaine
  F:    drivers/macintosh/therm_adt746x.c
  
  ADT7475 HARDWARE MONITOR DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/adt7475
@@@ -420,8 -413,8 +420,8 @@@ F: drivers/hwmon/adt7475.
  
  ADXL34X THREE-AXIS DIGITAL ACCELEROMETER DRIVER (ADXL345/ADXL346)
  M:    Michael Hennerich <michael.hennerich@analog.com>
 -L:    device-drivers-devel@blackfin.uclinux.org
  W:    http://wiki.analog.com/ADXL345
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    drivers/input/misc/adxl34x.c
  
@@@ -491,6 -484,7 +491,6 @@@ M: Hannes Reinecke <hare@suse.de
  L:    linux-scsi@vger.kernel.org
  S:    Maintained
  F:    drivers/scsi/aic7xxx/
 -F:    drivers/scsi/aic7xxx_old/
  
  AIMSLAB FM RADIO RECEIVER DRIVER
  M:    Hans Verkuil <hverkuil@xs4all.nl>
@@@ -545,13 -539,6 +545,13 @@@ F:       drivers/tty/serial/altera_jtaguart.
  F:    include/linux/altera_uart.h
  F:    include/linux/altera_jtaguart.h
  
 +AMD CRYPTOGRAPHIC COPROCESSOR (CCP) DRIVER
 +M:    Tom Lendacky <thomas.lendacky@amd.com>
 +L:    linux-crypto@vger.kernel.org
 +S:    Supported
 +F:    drivers/crypto/ccp/
 +F:    include/linux/ccp.h
 +
  AMD FAM15H PROCESSOR POWER MONITORING DRIVER
  M:    Andreas Herrmann <herrmann.der.user@googlemail.com>
  L:    lm-sensors@lm-sensors.org
@@@ -627,9 -614,9 +627,9 @@@ F: drivers/media/i2c/adv7842
  
  ANALOG DEVICES INC ASOC CODEC DRIVERS
  M:    Lars-Peter Clausen <lars@metafoo.de>
 -L:    device-drivers-devel@blackfin.uclinux.org
  L:    alsa-devel@alsa-project.org (moderated for non-subscribers)
  W:    http://wiki.analog.com/
 +W:    http://ez.analog.com/community/linux-device-drivers
  S:    Supported
  F:    sound/soc/codecs/adau*
  F:    sound/soc/codecs/adav*
@@@ -639,7 -626,7 +639,7 @@@ F: sound/soc/codecs/ssm
  F:    sound/soc/codecs/sigmadsp.*
  
  ANALOG DEVICES INC ASOC DRIVERS
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +L:    adi-buildroot-devel@lists.sourceforge.net
  L:    alsa-devel@alsa-project.org (moderated for non-subscribers)
  W:    http://blackfin.uclinux.org/
  S:    Supported
@@@ -779,12 -766,7 +779,12 @@@ ARM/Allwinner A1X SoC suppor
  M:    Maxime Ripard <maxime.ripard@free-electrons.com>
  L:    linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
  S:    Maintained
 -F:    arch/arm/mach-sunxi/
 +N:    sun[x4567]i
 +
 +ARM/Allwinner SoC Clock Support
 +M:    Emilio López <emilio@elopez.com.ar>
 +S:    Maintained
 +F:    drivers/clk/sunxi/
  
  ARM/ATMEL AT91RM9200 AND AT91SAM ARM ARCHITECTURES
  M:    Andrew Victor <linux@maxim.org.za>
@@@ -885,12 -867,6 +885,12 @@@ S:       Maintaine
  F:    arch/arm/mach-ebsa110/
  F:    drivers/net/ethernet/amd/am79c961a.*
  
 +ARM/ENERGY MICRO (SILICON LABS) EFM32 SUPPORT
 +M:    Uwe Kleine-König <kernel@pengutronix.de>
 +L:    linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
 +S:    Maintained
 +N:    efm32
 +
  ARM/EZX SMARTPHONES (A780, A910, A1200, E680, ROKR E2 and ROKR E6)
  M:    Daniel Ribeiro <drwyrm@gmail.com>
  M:    Stefan Schmidt <stefan@openezx.org>
@@@ -1053,12 -1029,6 +1053,12 @@@ L:    linux-arm-kernel@lists.infradead.or
  S:    Maintained
  F:    arch/arm/mach-mvebu/
  
 +ARM/Marvell Berlin SoC support
 +M:    Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
 +L:    linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
 +S:    Maintained
 +F:    arch/arm/mach-berlin/
 +
  ARM/Marvell Dove/Kirkwood/MV78xx0/Orion SOC support
  M:    Jason Cooper <jason@lakedaemon.net>
  M:    Andrew Lunn <andrew@lunn.ch>
@@@ -1352,14 -1322,6 +1352,14 @@@ F:    drivers/rtc/rtc-ab8500.
  F:    drivers/rtc/rtc-pl031.c
  T:    git git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson.git
  
 +ARM/Ux500 CLOCK FRAMEWORK SUPPORT
 +M:    Ulf Hansson <ulf.hansson@linaro.org>
 +L:    linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
 +T:    git git://git.linaro.org/people/ulfh/clk.git
 +S:    Maintained
 +F:    drivers/clk/ux500/
 +F:    include/linux/platform_data/clk-ux500.h
 +
  ARM/VFP SUPPORT
  M:    Russell King <linux@arm.linux.org.uk>
  L:    linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
@@@ -1409,7 -1371,6 +1409,7 @@@ F:      drivers/cpuidle/cpuidle-zynq.
  N:    zynq
  N:    xilinx
  F:    drivers/clocksource/cadence_ttc_timer.c
 +F:    drivers/mmc/host/sdhci-of-arasan.c
  
  ARM SMMU DRIVER
  M:    Will Deacon <will.deacon@arm.com>
@@@ -1474,7 -1435,7 +1474,7 @@@ F:      Documentation/aoe
  F:    drivers/block/aoe/
  
  ATHEROS ATH GENERIC UTILITIES
 -M:    "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
 +M:    "Luis R. Rodriguez" <mcgrof@do-not-panic.com>
  L:    linux-wireless@vger.kernel.org
  S:    Supported
  F:    drivers/net/wireless/ath/*
  ATHEROS ATH5K WIRELESS DRIVER
  M:    Jiri Slaby <jirislaby@gmail.com>
  M:    Nick Kossifidis <mickflemm@gmail.com>
 -M:    "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
 +M:    "Luis R. Rodriguez" <mcgrof@do-not-panic.com>
  L:    linux-wireless@vger.kernel.org
  L:    ath5k-devel@lists.ath5k.org
  W:    http://wireless.kernel.org/en/users/Drivers/ath5k
@@@ -1497,6 -1458,17 +1497,6 @@@ T:     git git://github.com/kvalo/ath.gi
  S:    Supported
  F:    drivers/net/wireless/ath/ath6kl/
  
 -ATHEROS ATH9K WIRELESS DRIVER
 -M:    "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
 -M:    Jouni Malinen <jouni@qca.qualcomm.com>
 -M:    Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
 -M:    Senthil Balasubramanian <senthilb@qca.qualcomm.com>
 -L:    linux-wireless@vger.kernel.org
 -L:    ath9k-devel@lists.ath9k.org
 -W:    http://wireless.kernel.org/en/users/Drivers/ath9k
 -S:    Supported
 -F:    drivers/net/wireless/ath/ath9k/
 -
  WILOCITY WIL6210 WIRELESS DRIVER
  M:    Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
  L:    linux-wireless@vger.kernel.org
@@@ -1626,10 -1598,11 +1626,10 @@@ S:      Supporte
  F:      drivers/scsi/esas2r
  
  AUDIT SUBSYSTEM
 -M:    Al Viro <viro@zeniv.linux.org.uk>
  M:    Eric Paris <eparis@redhat.com>
  L:    linux-audit@redhat.com (subscribers-only)
  W:    http://people.redhat.com/sgrubb/audit/
 -T:    git git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current.git
 +T:    git git://git.infradead.org/users/eparis/audit.git
  S:    Maintained
  F:    include/linux/audit.h
  F:    include/uapi/linux/audit.h
@@@ -1742,54 -1715,56 +1742,54 @@@ F:   fs/bfs
  F:    include/uapi/linux/bfs_fs.h
  
  BLACKFIN ARCHITECTURE
 -M:    Mike Frysinger <vapier@gentoo.org>
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +M:    Steven Miao <realmz6@gmail.com>
 +L:    adi-buildroot-devel@lists.sourceforge.net
  W:    http://blackfin.uclinux.org
  S:    Supported
  F:    arch/blackfin/
  
  BLACKFIN EMAC DRIVER
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +L:    adi-buildroot-devel@lists.sourceforge.net
  W:    http://blackfin.uclinux.org
  S:    Supported
  F:    drivers/net/ethernet/adi/
  
  BLACKFIN RTC DRIVER
 -M:    Mike Frysinger <vapier.adi@gmail.com>
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +L:    adi-buildroot-devel@lists.sourceforge.net
  W:    http://blackfin.uclinux.org
  S:    Supported
  F:    drivers/rtc/rtc-bfin.c
  
  BLACKFIN SDH DRIVER
  M:    Sonic Zhang <sonic.zhang@analog.com>
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +L:    adi-buildroot-devel@lists.sourceforge.net
  W:    http://blackfin.uclinux.org
  S:    Supported
  F:    drivers/mmc/host/bfin_sdh.c
  
  BLACKFIN SERIAL DRIVER
  M:    Sonic Zhang <sonic.zhang@analog.com>
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +L:    adi-buildroot-devel@lists.sourceforge.net
  W:    http://blackfin.uclinux.org
  S:    Supported
  F:    drivers/tty/serial/bfin_uart.c
  
  BLACKFIN WATCHDOG DRIVER
 -M:    Mike Frysinger <vapier.adi@gmail.com>
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +L:    adi-buildroot-devel@lists.sourceforge.net
  W:    http://blackfin.uclinux.org
  S:    Supported
  F:    drivers/watchdog/bfin_wdt.c
  
  BLACKFIN I2C TWI DRIVER
  M:    Sonic Zhang <sonic.zhang@analog.com>
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +L:    adi-buildroot-devel@lists.sourceforge.net
  W:    http://blackfin.uclinux.org/
  S:    Supported
  F:    drivers/i2c/busses/i2c-bfin-twi.c
  
  BLACKFIN MEDIA DRIVER
  M:    Scott Jiang <scott.jiang.linux@gmail.com>
 -L:    uclinux-dist-devel@blackfin.uclinux.org
 +L:    adi-buildroot-devel@lists.sourceforge.net
  W:    http://blackfin.uclinux.org/
  S:    Supported
  F:    drivers/media/platform/blackfin/
@@@ -2049,7 -2024,6 +2049,7 @@@ L:      linux-can@vger.kernel.or
  W:    http://gitorious.org/linux-can
  T:    git git://gitorious.org/linux-can/linux-can-next.git
  S:    Maintained
 +F:    Documentation/networking/can.txt
  F:    net/can/
  F:    include/linux/can/core.h
  F:    include/uapi/linux/can.h
@@@ -2184,11 -2158,6 +2184,11 @@@ M:    Nishank Trivedi <nistrive@cisco.com
  S:    Supported
  F:    drivers/net/ethernet/cisco/enic/
  
 +CISCO VIC LOW LATENCY NIC DRIVER
 +M:      Upinder Malhi <umalhi@cisco.com>
 +S:      Supported
 +F:      drivers/infiniband/hw/usnic
 +
  CIRRUS LOGIC EP93XX ETHERNET DRIVER
  M:    Hartley Sweeten <hsweeten@visionengravers.com>
  L:    netdev@vger.kernel.org
@@@ -2650,7 -2619,7 +2650,7 @@@ S:      Maintaine
  F:    drivers/platform/x86/dell-laptop.c
  
  DELL LAPTOP SMM DRIVER
 -S:    Orphan
 +M:    Guenter Roeck <linux@roeck-us.net>
  F:    drivers/char/i8k.c
  F:    include/uapi/linux/i8k.h
  
@@@ -2669,7 -2638,7 +2669,7 @@@ DESIGNWARE USB2 DRD IP DRIVE
  M:    Paul Zimmerman <paulz@synopsys.com>
  L:    linux-usb@vger.kernel.org
  S:    Maintained
 -F:    drivers/staging/dwc2/
 +F:    drivers/usb/dwc2/
  
  DESIGNWARE USB3 DRD IP DRIVER
  M:    Felipe Balbi <balbi@ti.com>
@@@ -3366,7 -3335,6 +3366,7 @@@ EXTERNAL CONNECTOR SUBSYSTEM (EXTCON
  M:    MyungJoo Ham <myungjoo.ham@samsung.com>
  M:    Chanwoo Choi <cw00.choi@samsung.com>
  L:    linux-kernel@vger.kernel.org
 +T:    git git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git
  S:    Maintained
  F:    drivers/extcon/
  F:    Documentation/extcon/
@@@ -3376,6 -3344,7 +3376,6 @@@ M:      Jingoo Han <jg1.han@samsung.com
  L:    linux-fbdev@vger.kernel.org
  S:    Maintained
  F:    drivers/video/exynos/exynos_dp*
 -F:    include/video/exynos_dp*
  
  EXYNOS MIPI DISPLAY DRIVERS
  M:    Inki Dae <inki.dae@samsung.com>
@@@ -3387,7 -3356,7 +3387,7 @@@ F:      drivers/video/exynos/exynos_mipi
  F:    include/video/exynos_mipi*
  
  F71805F HARDWARE MONITORING DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/f71805f
@@@ -3665,7 -3634,6 +3665,7 @@@ W:      http://en.wikipedia.org/wiki/F2F
  T:    git git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git
  S:    Maintained
  F:    Documentation/filesystems/f2fs.txt
 +F:    Documentation/ABI/testing/sysfs-fs-f2fs
  F:    fs/f2fs/
  F:    include/linux/f2fs_fs.h
  
@@@ -3914,7 -3882,7 +3914,7 @@@ S:      Odd Fixe
  F:    drivers/tty/hvc/
  
  HARDWARE MONITORING
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  M:    Guenter Roeck <linux@roeck-us.net>
  L:    lm-sensors@lm-sensors.org
  W:    http://www.lm-sensors.org/
@@@ -3986,12 -3954,6 +3986,12 @@@ S:    Orpha
  F:    Documentation/filesystems/hfs.txt
  F:    fs/hfs/
  
 +HFSPLUS FILESYSTEM
 +L:    linux-fsdevel@vger.kernel.org
 +S:    Orphan
 +F:    Documentation/filesystems/hfsplus.txt
 +F:    fs/hfsplus/
 +
  HGA FRAMEBUFFER DRIVER
  M:    Ferenc Bakonyi <fero@drama.obuda.kando.hu>
  L:    linux-nvidia@lists.surfsouth.com
@@@ -4142,7 -4104,7 +4142,7 @@@ F:      include/linux/hyperv.
  F:    tools/hv/
  
  I2C OVER PARALLEL PORT
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    linux-i2c@vger.kernel.org
  S:    Maintained
  F:    Documentation/i2c/busses/i2c-parport
@@@ -4151,7 -4113,7 +4151,7 @@@ F:      drivers/i2c/busses/i2c-parport.
  F:    drivers/i2c/busses/i2c-parport-light.c
  
  I2C/SMBUS CONTROLLER DRIVERS FOR PC
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    linux-i2c@vger.kernel.org
  S:    Maintained
  F:    Documentation/i2c/busses/i2c-ali1535
@@@ -4192,7 -4154,7 +4192,7 @@@ F:      drivers/i2c/busses/i2c-ismt.
  F:    Documentation/i2c/busses/i2c-ismt
  
  I2C/SMBUS STUB DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    linux-i2c@vger.kernel.org
  S:    Maintained
  F:    drivers/i2c/i2c-stub.c
@@@ -4211,7 -4173,7 +4211,7 @@@ F:      include/uapi/linux/i2c.
  F:    include/uapi/linux/i2c-*.h
  
  I2C-TAOS-EVM DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    linux-i2c@vger.kernel.org
  S:    Maintained
  F:    Documentation/i2c/busses/i2c-taos-evm
@@@ -4512,7 -4474,7 +4512,7 @@@ M:      Deepak Saxena <dsaxena@plexity.net
  S:    Maintained
  F:    drivers/char/hw_random/ixp4xx-rng.c
  
 -INTEL ETHERNET DRIVERS (e100/e1000/e1000e/igb/igbvf/ixgb/ixgbe/ixgbevf/i40e)
 +INTEL ETHERNET DRIVERS (e100/e1000/e1000e/igb/igbvf/ixgb/ixgbe/ixgbevf/i40e/i40evf)
  M:    Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  M:    Jesse Brandeburg <jesse.brandeburg@intel.com>
  M:    Bruce Allan <bruce.w.allan@intel.com>
@@@ -4521,7 -4483,6 +4521,7 @@@ M:      Don Skidmore <donald.c.skidmore@inte
  M:    Greg Rose <gregory.v.rose@intel.com>
  M:    Alex Duyck <alexander.h.duyck@intel.com>
  M:    John Ronciak <john.ronciak@intel.com>
 +M:    Mitch Williams <mitch.a.williams@intel.com>
  L:    e1000-devel@lists.sourceforge.net
  W:    http://www.intel.com/support/feedback.htm
  W:    http://e1000.sourceforge.net/
@@@ -4537,7 -4498,6 +4537,7 @@@ F:      Documentation/networking/ixgb.tx
  F:    Documentation/networking/ixgbe.txt
  F:    Documentation/networking/ixgbevf.txt
  F:    Documentation/networking/i40e.txt
 +F:    Documentation/networking/i40evf.txt
  F:    drivers/net/ethernet/intel/
  
  INTEL-MID GPIO DRIVER
@@@ -4768,7 -4728,7 +4768,7 @@@ S:      Maintaine
  F:    drivers/isdn/hardware/eicon/
  
  IT87 HARDWARE MONITORING DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/it87
@@@ -4955,7 -4915,7 +4955,7 @@@ F:      include/linux/sunrpc
  F:    include/uapi/linux/sunrpc/
  
  KERNEL VIRTUAL MACHINE (KVM)
 -M:    Gleb Natapov <gleb@redhat.com>
 +M:    Gleb Natapov <gleb@kernel.org>
  M:    Paolo Bonzini <pbonzini@redhat.com>
  L:    kvm@vger.kernel.org
  W:    http://www.linux-kvm.org
@@@ -5138,7 -5098,7 +5138,7 @@@ F:      drivers/leds
  F:    include/linux/leds.h
  
  LEGACY EEPROM DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  S:    Maintained
  F:    Documentation/misc-devices/eeprom
  F:    drivers/misc/eeprom/eeprom.c
@@@ -5181,11 -5141,6 +5181,11 @@@ F:    drivers/lguest
  F:    include/linux/lguest*.h
  F:    tools/lguest/
  
 +LIBLOCKDEP
 +M:    Sasha Levin <sasha.levin@oracle.com>
 +S:    Maintained
 +F:    tools/lib/lockdep/
 +
  LINUX FOR IBM pSERIES (RS/6000)
  M:    Paul Mackerras <paulus@au.ibm.com>
  W:    http://www.ibm.com/linux/ltc/projects/ppc
@@@ -5286,21 -5241,21 +5286,21 @@@ S:   Maintaine
  F:    drivers/hwmon/lm73.c
  
  LM78 HARDWARE MONITOR DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/lm78
  F:    drivers/hwmon/lm78.c
  
  LM83 HARDWARE MONITOR DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/lm83
  F:    drivers/hwmon/lm83.c
  
  LM90 HARDWARE MONITOR DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/lm90
@@@ -5620,11 -5575,10 +5620,11 @@@ F:   mm/page_cgroup.
  
  MEMORY TECHNOLOGY DEVICES (MTD)
  M:    David Woodhouse <dwmw2@infradead.org>
 +M:    Brian Norris <computersforpeace@gmail.com>
  L:    linux-mtd@lists.infradead.org
  W:    http://www.linux-mtd.infradead.org/
  Q:    http://patchwork.ozlabs.org/project/linux-mtd/list/
 -T:    git git://git.infradead.org/mtd-2.6.git
 +T:    git git://git.infradead.org/linux-mtd.git
  S:    Maintained
  F:    drivers/mtd/
  F:    include/linux/mtd/
@@@ -5782,7 -5736,7 +5782,7 @@@ F:      drivers/mfd
  F:    include/linux/mfd/
  
  MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND SDIO SUBSYSTEM
 -M:    Chris Ball <cjb@laptop.org>
 +M:    Chris Ball <chris@printf.net>
  L:    linux-mmc@vger.kernel.org
  T:    git git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc.git
  S:    Maintained
@@@ -6493,7 -6447,7 +6493,7 @@@ S:      Maintaine
  F:    drivers/char/pc8736x_gpio.c
  
  PC87427 HARDWARE MONITORING DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/pc87427
@@@ -6752,7 -6706,7 +6752,7 @@@ F:      include/linux/timer
  F:    kernel/*timer*
  
  POWER SUPPLY CLASS/SUBSYSTEM and DRIVERS
 -M:    Anton Vorontsov <anton@enomsg.org>
 +M:    Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
  M:    David Woodhouse <dwmw2@infradead.org>
  T:    git git://git.infradead.org/battery-2.6.git
  S:    Maintained
@@@ -6941,12 -6895,6 +6941,12 @@@ F:    include/sound/pxa2xx-lib.
  F:    sound/arm/pxa*
  F:    sound/soc/pxa/
  
 +PXA3xx NAND FLASH DRIVER
 +M:    Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
 +L:    linux-mtd@lists.infradead.org
 +S:    Maintained
 +F:    drivers/mtd/nand/pxa3xx-nand.c
 +
  MMP SUPPORT
  M:    Eric Miao <eric.y.miao@gmail.com>
  M:    Haojian Zhuang <haojian.zhuang@gmail.com>
@@@ -6977,7 -6925,8 +6977,7 @@@ S:      Maintaine
  F:    drivers/scsi/qla1280.[ch]
  
  QLOGIC QLA2XXX FC-SCSI DRIVER
 -M:    Andrew Vasquez <andrew.vasquez@qlogic.com>
 -M:    linux-driver@qlogic.com
 +M:    qla2xxx-upstream@qlogic.com
  L:    linux-scsi@vger.kernel.org
  S:    Supported
  F:    Documentation/scsi/LICENSE.qla2xxx
@@@ -7039,14 -6988,6 +7039,14 @@@ T:    git git://linuxtv.org/anttip/media_t
  S:    Maintained
  F:    drivers/media/tuners/qt1010*
  
 +QUALCOMM ATHEROS ATH9K WIRELESS DRIVER
 +M:    QCA ath9k Development <ath9k-devel@qca.qualcomm.com>
 +L:    linux-wireless@vger.kernel.org
 +L:    ath9k-devel@lists.ath9k.org
 +W:    http://wireless.kernel.org/en/users/Drivers/ath9k
 +S:    Supported
 +F:    drivers/net/wireless/ath/ath9k/
 +
  QUALCOMM ATHEROS ATH10K WIRELESS DRIVER
  M:    Kalle Valo <kvalo@qca.qualcomm.com>
  L:    ath10k@lists.infradead.org
@@@ -7080,7 -7021,7 +7080,7 @@@ F:      drivers/media/parport/*-qcam
  RADOS BLOCK DEVICE (RBD)
  M:    Yehuda Sadeh <yehuda@inktank.com>
  M:    Sage Weil <sage@inktank.com>
 -M:    Alex Elder <elder@inktank.com>
 +M:    Alex Elder <elder@kernel.org>
  M:    ceph-devel@vger.kernel.org
  W:    http://ceph.com/
  T:    git git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git
@@@ -7158,12 -7099,6 +7158,12 @@@ T:    git git://git.kernel.org/pub/scm/lin
  F:    Documentation/RCU/torture.txt
  F:    kernel/rcu/torture.c
  
 +RCUTORTURE TEST FRAMEWORK
 +M:    "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
 +S:    Supported
 +T:    git git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
 +F:    tools/testing/selftests/rcutorture
 +
  RDC R-321X SoC
  M:    Florian Fainelli <florian@openwrt.org>
  S:    Maintained
@@@ -7462,12 -7397,6 +7462,12 @@@ L:    linux-media@vger.kernel.or
  S:    Supported
  F:    drivers/media/i2c/s5c73m3/*
  
 +SAMSUNG SOC CLOCK DRIVERS
 +M:    Tomasz Figa <t.figa@samsung.com>
 +S:    Supported
 +L:    linux-samsung-soc@vger.kernel.org (moderated for non-subscribers)
 +F:    drivers/clk/samsung/
 +
  SERIAL DRIVERS
  M:    Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  L:    linux-serial@vger.kernel.org
@@@ -7539,7 -7468,7 +7539,7 @@@ S:      Maintaine
  F:    drivers/scsi/sr*
  
  SCSI RDMA PROTOCOL (SRP) INITIATOR
 -M:    David Dillow <dillowda@ornl.gov>
 +M:    Bart Van Assche <bvanassche@acm.org>
  L:    linux-rdma@vger.kernel.org
  S:    Supported
  W:    http://www.openfabrics.org
@@@ -7551,9 -7480,8 +7551,9 @@@ F:      include/scsi/srp.
  SCSI SG DRIVER
  M:    Doug Gilbert <dgilbert@interlog.com>
  L:    linux-scsi@vger.kernel.org
 -W:    http://www.torque.net/sg
 +W:    http://sg.danny.cz/sg
  S:    Maintained
 +F:    Documentation/scsi/scsi-generic.txt
  F:    drivers/scsi/sg.c
  F:    include/scsi/sg.h
  
@@@ -7615,7 -7543,7 +7615,7 @@@ S:      Maintaine
  F:    drivers/mmc/host/sdricoh_cs.c
  
  SECURE DIGITAL HOST CONTROLLER INTERFACE (SDHCI) DRIVER
 -M:    Chris Ball <cjb@laptop.org>
 +M:    Chris Ball <chris@printf.net>
  L:    linux-mmc@vger.kernel.org
  T:    git git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc.git
  S:    Maintained
@@@ -7708,7 -7636,7 +7708,7 @@@ F:      drivers/net/ethernet/emulex/benet
  
  SFC NETWORK DRIVER
  M:    Solarflare linux maintainers <linux-net-drivers@solarflare.com>
 -M:    Ben Hutchings <bhutchings@solarflare.com>
 +M:    Shradha Shah <sshah@solarflare.com>
  L:    netdev@vger.kernel.org
  S:    Supported
  F:    drivers/net/ethernet/sfc/
@@@ -7943,7 -7871,7 +7943,7 @@@ F:      Documentation/hwmon/sch562
  F:    drivers/hwmon/sch5627.c
  
  SMSC47B397 HARDWARE MONITOR DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    Documentation/hwmon/smsc47b397
@@@ -8633,7 -8561,6 +8633,7 @@@ S:      Supporte
  F:      drivers/thermal/
  F:      include/linux/thermal.h
  F:      include/linux/cpu_cooling.h
 +F:      Documentation/devicetree/bindings/thermal/
  
  THINGM BLINK(1) USB RGB LED DRIVER
  M:    Vivien Didelot <vivien.didelot@savoirfairelinux.com>
@@@ -8701,11 -8628,12 +8701,11 @@@ S:   Maintaine
  F:    sound/soc/codecs/twl4030*
  
  TI WILINK WIRELESS DRIVERS
 -M:    Luciano Coelho <luca@coelho.fi>
  L:    linux-wireless@vger.kernel.org
  W:    http://wireless.kernel.org/en/users/Drivers/wl12xx
  W:    http://wireless.kernel.org/en/users/Drivers/wl1251
  T:    git git://git.kernel.org/pub/scm/linux/kernel/git/luca/wl12xx.git
 -S:    Maintained
 +S:    Orphan
  F:    drivers/net/wireless/ti/
  F:    include/linux/wl12xx.h
  
@@@ -8774,6 -8702,7 +8774,6 @@@ F:      include/linux/toshiba.
  F:    include/uapi/linux/toshiba.h
  
  TMIO MMC DRIVER
 -M:    Guennadi Liakhovetski <g.liakhovetski@gmx.de>
  M:    Ian Molton <ian@mnementh.co.uk>
  L:    linux-mmc@vger.kernel.org
  S:    Maintained
@@@ -8805,10 -8734,14 +8805,10 @@@ S:   Odd fixe
  F:    drivers/media/usb/tm6000/
  
  TPM DEVICE DRIVER
 -M:    Leonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com>
 -M:    Ashley Lai <ashley@ashleylai.com>
  M:    Peter Huewe <peterhuewe@gmx.de>
 -M:    Rajiv Andrade <mail@srajiv.net>
 -W:    http://tpmdd.sourceforge.net
 +M:    Ashley Lai <ashley@ashleylai.com>
  M:    Marcel Selhorst <tpmdd@selhorst.net>
 -M:    Sirrix AG <tpmdd@sirrix.com>
 -W:    http://www.sirrix.com
 +W:    http://tpmdd.sourceforge.net
  L:    tpmdd-devel@lists.sourceforge.net (moderated for non-subscribers)
  S:    Maintained
  F:    drivers/char/tpm/
@@@ -9461,7 -9394,7 +9461,7 @@@ F:      Documentation/hwmon/w8379
  F:    drivers/hwmon/w83793.c
  
  W83795 HARDWARE MONITORING DRIVER
- M:    Jean Delvare <khali@linux-fr.org>
+ M:    Jean Delvare <jdelvare@suse.de>
  L:    lm-sensors@lm-sensors.org
  S:    Maintained
  F:    drivers/hwmon/w83795.c
@@@ -9619,7 -9552,6 +9619,7 @@@ M:      Konrad Rzeszutek Wilk <konrad.wilk@o
  M:    Boris Ostrovsky <boris.ostrovsky@oracle.com>
  M:    David Vrabel <david.vrabel@citrix.com>
  L:    xen-devel@lists.xenproject.org (moderated for non-subscribers)
 +T:    git git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git
  S:    Supported
  F:    arch/x86/xen/
  F:    drivers/*/xen-*front.c
diff --combined drivers/char/i8k.c
index e210f858d3cbf854130e0c149703c0642710bf7e,776c50161432a9d027877631cdf6cd10bcd38e20..d915707d2ba1d3eae5b3ade411dd5226a5f3296d
@@@ -1,11 -1,12 +1,11 @@@
  /*
   * i8k.c -- Linux driver for accessing the SMM BIOS on Dell laptops.
 - *        See http://www.debian.org/~dz/i8k/ for more information
 - *        and for latest version of this driver.
   *
   * Copyright (C) 2001  Massimo Dal Zotto <dz@debian.org>
   *
   * Hwmon integration:
-  * Copyright (C) 2011  Jean Delvare <khali@linux-fr.org>
+  * Copyright (C) 2011  Jean Delvare <jdelvare@suse.de>
 + * Copyright (C) 2013  Guenter Roeck <linux@roeck-us.net>
   *
   * This program is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License as published by the
@@@ -18,8 -19,6 +18,8 @@@
   * General Public License for more details.
   */
  
 +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 +
  #include <linux/module.h>
  #include <linux/types.h>
  #include <linux/init.h>
  #include <linux/mutex.h>
  #include <linux/hwmon.h>
  #include <linux/hwmon-sysfs.h>
 -#include <asm/uaccess.h>
 -#include <asm/io.h>
 +#include <linux/uaccess.h>
 +#include <linux/io.h>
 +#include <linux/sched.h>
  
  #include <linux/i8k.h>
  
 -#define I8K_VERSION           "1.14 21/02/2005"
 -
  #define I8K_SMM_FN_STATUS     0x0025
  #define I8K_SMM_POWER_STATUS  0x0069
  #define I8K_SMM_SET_FAN               0x01a3
@@@ -44,6 -44,7 +44,6 @@@
  #define I8K_SMM_GET_TEMP      0x10a3
  #define I8K_SMM_GET_DELL_SIG1 0xfea3
  #define I8K_SMM_GET_DELL_SIG2 0xffa3
 -#define I8K_SMM_BIOS_VERSION  0x00a6
  
  #define I8K_FAN_MULT          30
  #define I8K_MAX_TEMP          127
  static DEFINE_MUTEX(i8k_mutex);
  static char bios_version[4];
  static struct device *i8k_hwmon_dev;
 +static u32 i8k_hwmon_flags;
 +static int i8k_fan_mult;
 +
 +#define I8K_HWMON_HAVE_TEMP1  (1 << 0)
 +#define I8K_HWMON_HAVE_TEMP2  (1 << 1)
 +#define I8K_HWMON_HAVE_TEMP3  (1 << 2)
 +#define I8K_HWMON_HAVE_TEMP4  (1 << 3)
 +#define I8K_HWMON_HAVE_FAN1   (1 << 4)
 +#define I8K_HWMON_HAVE_FAN2   (1 << 5)
  
  MODULE_AUTHOR("Massimo Dal Zotto (dz@debian.org)");
  MODULE_DESCRIPTION("Driver for accessing SMM BIOS on Dell laptops");
@@@ -111,11 -103,11 +111,11 @@@ static const struct file_operations i8k
  
  struct smm_regs {
        unsigned int eax;
 -      unsigned int ebx __attribute__ ((packed));
 -      unsigned int ecx __attribute__ ((packed));
 -      unsigned int edx __attribute__ ((packed));
 -      unsigned int esi __attribute__ ((packed));
 -      unsigned int edi __attribute__ ((packed));
 +      unsigned int ebx __packed;
 +      unsigned int ecx __packed;
 +      unsigned int edx __packed;
 +      unsigned int esi __packed;
 +      unsigned int edi __packed;
  };
  
  static inline const char *i8k_get_dmi_data(int field)
@@@ -132,17 -124,6 +132,17 @@@ static int i8k_smm(struct smm_regs *reg
  {
        int rc;
        int eax = regs->eax;
 +      cpumask_var_t old_mask;
 +
 +      /* SMM requires CPU 0 */
 +      if (!alloc_cpumask_var(&old_mask, GFP_KERNEL))
 +              return -ENOMEM;
 +      cpumask_copy(old_mask, &current->cpus_allowed);
 +      set_cpus_allowed_ptr(current, cpumask_of(0));
 +      if (smp_processor_id() != 0) {
 +              rc = -EBUSY;
 +              goto out;
 +      }
  
  #if defined(CONFIG_X86_64)
        asm volatile("pushq %%rax\n\t"
                "pushfq\n\t"
                "popq %%rax\n\t"
                "andl $1,%%eax\n"
 -              :"=a"(rc)
 +              : "=a"(rc)
                :    "a"(regs)
                :    "%ebx", "%ecx", "%edx", "%esi", "%edi", "memory");
  #else
            "lahf\n\t"
            "shrl $8,%%eax\n\t"
            "andl $1,%%eax\n"
 -          :"=a"(rc)
 +          : "=a"(rc)
            :    "a"(regs)
            :    "%ebx", "%ecx", "%edx", "%esi", "%edi", "memory");
  #endif
        if (rc != 0 || (regs->eax & 0xffff) == 0xffff || regs->eax == eax)
 -              return -EINVAL;
 +              rc = -EINVAL;
  
 -      return 0;
 -}
 -
 -/*
 - * Read the bios version. Return the version as an integer corresponding
 - * to the ascii value, for example "A17" is returned as 0x00413137.
 - */
 -static int i8k_get_bios_version(void)
 -{
 -      struct smm_regs regs = { .eax = I8K_SMM_BIOS_VERSION, };
 -
 -      return i8k_smm(&regs) ? : regs.eax;
 +out:
 +      set_cpus_allowed_ptr(current, old_mask);
 +      free_cpumask_var(old_mask);
 +      return rc;
  }
  
  /*
@@@ -214,8 -203,7 +214,8 @@@ static int i8k_get_fn_status(void
        struct smm_regs regs = { .eax = I8K_SMM_FN_STATUS, };
        int rc;
  
 -      if ((rc = i8k_smm(&regs)) < 0)
 +      rc = i8k_smm(&regs);
 +      if (rc < 0)
                return rc;
  
        switch ((regs.eax >> I8K_FN_SHIFT) & I8K_FN_MASK) {
@@@ -238,8 -226,7 +238,8 @@@ static int i8k_get_power_status(void
        struct smm_regs regs = { .eax = I8K_SMM_POWER_STATUS, };
        int rc;
  
 -      if ((rc = i8k_smm(&regs)) < 0)
 +      rc = i8k_smm(&regs);
 +      if (rc < 0)
                return rc;
  
        return (regs.eax & 0xff) == I8K_POWER_AC ? I8K_AC : I8K_BATTERY;
@@@ -264,7 -251,7 +264,7 @@@ static int i8k_get_fan_speed(int fan
        struct smm_regs regs = { .eax = I8K_SMM_GET_SPEED, };
  
        regs.ebx = fan & 0xff;
 -      return i8k_smm(&regs) ? : (regs.eax & 0xffff) * fan_mult;
 +      return i8k_smm(&regs) ? : (regs.eax & 0xffff) * i8k_fan_mult;
  }
  
  /*
@@@ -290,11 -277,10 +290,11 @@@ static int i8k_get_temp(int sensor
        int temp;
  
  #ifdef I8K_TEMPERATURE_BUG
 -      static int prev;
 +      static int prev[4];
  #endif
        regs.ebx = sensor & 0xff;
 -      if ((rc = i8k_smm(&regs)) < 0)
 +      rc = i8k_smm(&regs);
 +      if (rc < 0)
                return rc;
  
        temp = regs.eax & 0xff;
         # 1003655139 00000054 00005c52
         */
        if (temp > I8K_MAX_TEMP) {
 -              temp = prev;
 -              prev = I8K_MAX_TEMP;
 +              temp = prev[sensor];
 +              prev[sensor] = I8K_MAX_TEMP;
        } else {
 -              prev = temp;
 +              prev[sensor] = temp;
        }
  #endif
  
@@@ -323,8 -309,7 +323,8 @@@ static int i8k_get_dell_signature(int r
        struct smm_regs regs = { .eax = req_fn, };
        int rc;
  
 -      if ((rc = i8k_smm(&regs)) < 0)
 +      rc = i8k_smm(&regs);
 +      if (rc < 0)
                return rc;
  
        return regs.eax == 1145651527 && regs.edx == 1145392204 ? 0 : -1;
@@@ -343,14 -328,12 +343,14 @@@ i8k_ioctl_unlocked(struct file *fp, uns
  
        switch (cmd) {
        case I8K_BIOS_VERSION:
 -              val = i8k_get_bios_version();
 +              val = (bios_version[0] << 16) |
 +                              (bios_version[1] << 8) | bios_version[2];
                break;
  
        case I8K_MACHINE_ID:
                memset(buff, 0, 16);
 -              strlcpy(buff, i8k_get_dmi_data(DMI_PRODUCT_SERIAL), sizeof(buff));
 +              strlcpy(buff, i8k_get_dmi_data(DMI_PRODUCT_SERIAL),
 +                      sizeof(buff));
                break;
  
        case I8K_FN_STATUS:
@@@ -487,13 -470,12 +487,13 @@@ static ssize_t i8k_hwmon_show_temp(stru
                                   struct device_attribute *devattr,
                                   char *buf)
  {
 -      int cpu_temp;
 +      int index = to_sensor_dev_attr(devattr)->index;
 +      int temp;
  
 -      cpu_temp = i8k_get_temp(0);
 -      if (cpu_temp < 0)
 -              return cpu_temp;
 -      return sprintf(buf, "%d\n", cpu_temp * 1000);
 +      temp = i8k_get_temp(index);
 +      if (temp < 0)
 +              return temp;
 +      return sprintf(buf, "%d\n", temp * 1000);
  }
  
  static ssize_t i8k_hwmon_show_fan(struct device *dev,
        return sprintf(buf, "%d\n", fan_speed);
  }
  
 +static ssize_t i8k_hwmon_show_pwm(struct device *dev,
 +                                struct device_attribute *devattr,
 +                                char *buf)
 +{
 +      int index = to_sensor_dev_attr(devattr)->index;
 +      int status;
 +
 +      status = i8k_get_fan_status(index);
 +      if (status < 0)
 +              return -EIO;
 +      return sprintf(buf, "%d\n", clamp_val(status * 128, 0, 255));
 +}
 +
 +static ssize_t i8k_hwmon_set_pwm(struct device *dev,
 +                               struct device_attribute *attr,
 +                               const char *buf, size_t count)
 +{
 +      int index = to_sensor_dev_attr(attr)->index;
 +      unsigned long val;
 +      int err;
 +
 +      err = kstrtoul(buf, 10, &val);
 +      if (err)
 +              return err;
 +      val = clamp_val(DIV_ROUND_CLOSEST(val, 128), 0, 2);
 +
 +      mutex_lock(&i8k_mutex);
 +      err = i8k_set_fan(index, val);
 +      mutex_unlock(&i8k_mutex);
 +
 +      return err < 0 ? -EIO : count;
 +}
 +
  static ssize_t i8k_hwmon_show_label(struct device *dev,
                                    struct device_attribute *devattr,
                                    char *buf)
  {
 -      static const char *labels[4] = {
 -              "i8k",
 +      static const char *labels[3] = {
                "CPU",
                "Left Fan",
                "Right Fan",
        return sprintf(buf, "%s\n", labels[index]);
  }
  
 -static DEVICE_ATTR(temp1_input, S_IRUGO, i8k_hwmon_show_temp, NULL);
 +static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, i8k_hwmon_show_temp, NULL, 0);
 +static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, i8k_hwmon_show_temp, NULL, 1);
 +static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, i8k_hwmon_show_temp, NULL, 2);
 +static SENSOR_DEVICE_ATTR(temp4_input, S_IRUGO, i8k_hwmon_show_temp, NULL, 3);
  static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, i8k_hwmon_show_fan, NULL,
                          I8K_FAN_LEFT);
 +static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, i8k_hwmon_show_pwm,
 +                        i8k_hwmon_set_pwm, I8K_FAN_LEFT);
  static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, i8k_hwmon_show_fan, NULL,
                          I8K_FAN_RIGHT);
 -static SENSOR_DEVICE_ATTR(name, S_IRUGO, i8k_hwmon_show_label, NULL, 0);
 -static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, i8k_hwmon_show_label, NULL, 1);
 -static SENSOR_DEVICE_ATTR(fan1_label, S_IRUGO, i8k_hwmon_show_label, NULL, 2);
 -static SENSOR_DEVICE_ATTR(fan2_label, S_IRUGO, i8k_hwmon_show_label, NULL, 3);
 +static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, i8k_hwmon_show_pwm,
 +                        i8k_hwmon_set_pwm, I8K_FAN_RIGHT);
 +static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, i8k_hwmon_show_label, NULL, 0);
 +static SENSOR_DEVICE_ATTR(fan1_label, S_IRUGO, i8k_hwmon_show_label, NULL, 1);
 +static SENSOR_DEVICE_ATTR(fan2_label, S_IRUGO, i8k_hwmon_show_label, NULL, 2);
 +
 +static struct attribute *i8k_attrs[] = {
 +      &sensor_dev_attr_temp1_input.dev_attr.attr,     /* 0 */
 +      &sensor_dev_attr_temp1_label.dev_attr.attr,     /* 1 */
 +      &sensor_dev_attr_temp2_input.dev_attr.attr,     /* 2 */
 +      &sensor_dev_attr_temp3_input.dev_attr.attr,     /* 3 */
 +      &sensor_dev_attr_temp4_input.dev_attr.attr,     /* 4 */
 +      &sensor_dev_attr_fan1_input.dev_attr.attr,      /* 5 */
 +      &sensor_dev_attr_pwm1.dev_attr.attr,            /* 6 */
 +      &sensor_dev_attr_fan1_label.dev_attr.attr,      /* 7 */
 +      &sensor_dev_attr_fan2_input.dev_attr.attr,      /* 8 */
 +      &sensor_dev_attr_pwm2.dev_attr.attr,            /* 9 */
 +      &sensor_dev_attr_fan2_label.dev_attr.attr,      /* 10 */
 +      NULL
 +};
  
 -static void i8k_hwmon_remove_files(struct device *dev)
 +static umode_t i8k_is_visible(struct kobject *kobj, struct attribute *attr,
 +                            int index)
  {
 -      device_remove_file(dev, &dev_attr_temp1_input);
 -      device_remove_file(dev, &sensor_dev_attr_fan1_input.dev_attr);
 -      device_remove_file(dev, &sensor_dev_attr_fan2_input.dev_attr);
 -      device_remove_file(dev, &sensor_dev_attr_temp1_label.dev_attr);
 -      device_remove_file(dev, &sensor_dev_attr_fan1_label.dev_attr);
 -      device_remove_file(dev, &sensor_dev_attr_fan2_label.dev_attr);
 -      device_remove_file(dev, &sensor_dev_attr_name.dev_attr);
 +      if ((index == 0 || index == 1) &&
 +          !(i8k_hwmon_flags & I8K_HWMON_HAVE_TEMP1))
 +              return 0;
 +      if (index == 2 && !(i8k_hwmon_flags & I8K_HWMON_HAVE_TEMP2))
 +              return 0;
 +      if (index == 3 && !(i8k_hwmon_flags & I8K_HWMON_HAVE_TEMP3))
 +              return 0;
 +      if (index == 4 && !(i8k_hwmon_flags & I8K_HWMON_HAVE_TEMP4))
 +              return 0;
 +      if (index >= 5 && index <= 7 &&
 +          !(i8k_hwmon_flags & I8K_HWMON_HAVE_FAN1))
 +              return 0;
 +      if (index >= 8 && index <= 10 &&
 +          !(i8k_hwmon_flags & I8K_HWMON_HAVE_FAN2))
 +              return 0;
 +
 +      return attr->mode;
  }
  
 +static const struct attribute_group i8k_group = {
 +      .attrs = i8k_attrs,
 +      .is_visible = i8k_is_visible,
 +};
 +__ATTRIBUTE_GROUPS(i8k);
 +
  static int __init i8k_init_hwmon(void)
  {
        int err;
  
 -      i8k_hwmon_dev = hwmon_device_register(NULL);
 -      if (IS_ERR(i8k_hwmon_dev)) {
 -              err = PTR_ERR(i8k_hwmon_dev);
 -              i8k_hwmon_dev = NULL;
 -              printk(KERN_ERR "i8k: hwmon registration failed (%d)\n", err);
 -              return err;
 -      }
 -
 -      /* Required name attribute */
 -      err = device_create_file(i8k_hwmon_dev,
 -                               &sensor_dev_attr_name.dev_attr);
 -      if (err)
 -              goto exit_unregister;
 +      i8k_hwmon_flags = 0;
  
        /* CPU temperature attributes, if temperature reading is OK */
        err = i8k_get_temp(0);
 -      if (err < 0) {
 -              dev_dbg(i8k_hwmon_dev,
 -                      "Not creating temperature attributes (%d)\n", err);
 -      } else {
 -              err = device_create_file(i8k_hwmon_dev, &dev_attr_temp1_input);
 -              if (err)
 -                      goto exit_remove_files;
 -              err = device_create_file(i8k_hwmon_dev,
 -                                       &sensor_dev_attr_temp1_label.dev_attr);
 -              if (err)
 -                      goto exit_remove_files;
 -      }
 +      if (err >= 0)
 +              i8k_hwmon_flags |= I8K_HWMON_HAVE_TEMP1;
 +      /* check for additional temperature sensors */
 +      err = i8k_get_temp(1);
 +      if (err >= 0)
 +              i8k_hwmon_flags |= I8K_HWMON_HAVE_TEMP2;
 +      err = i8k_get_temp(2);
 +      if (err >= 0)
 +              i8k_hwmon_flags |= I8K_HWMON_HAVE_TEMP3;
 +      err = i8k_get_temp(3);
 +      if (err >= 0)
 +              i8k_hwmon_flags |= I8K_HWMON_HAVE_TEMP4;
  
        /* Left fan attributes, if left fan is present */
        err = i8k_get_fan_status(I8K_FAN_LEFT);
 -      if (err < 0) {
 -              dev_dbg(i8k_hwmon_dev,
 -                      "Not creating %s fan attributes (%d)\n", "left", err);
 -      } else {
 -              err = device_create_file(i8k_hwmon_dev,
 -                                       &sensor_dev_attr_fan1_input.dev_attr);
 -              if (err)
 -                      goto exit_remove_files;
 -              err = device_create_file(i8k_hwmon_dev,
 -                                       &sensor_dev_attr_fan1_label.dev_attr);
 -              if (err)
 -                      goto exit_remove_files;
 -      }
 +      if (err >= 0)
 +              i8k_hwmon_flags |= I8K_HWMON_HAVE_FAN1;
  
        /* Right fan attributes, if right fan is present */
        err = i8k_get_fan_status(I8K_FAN_RIGHT);
 -      if (err < 0) {
 -              dev_dbg(i8k_hwmon_dev,
 -                      "Not creating %s fan attributes (%d)\n", "right", err);
 -      } else {
 -              err = device_create_file(i8k_hwmon_dev,
 -                                       &sensor_dev_attr_fan2_input.dev_attr);
 -              if (err)
 -                      goto exit_remove_files;
 -              err = device_create_file(i8k_hwmon_dev,
 -                                       &sensor_dev_attr_fan2_label.dev_attr);
 -              if (err)
 -                      goto exit_remove_files;
 -      }
 +      if (err >= 0)
 +              i8k_hwmon_flags |= I8K_HWMON_HAVE_FAN2;
  
 +      i8k_hwmon_dev = hwmon_device_register_with_groups(NULL, "i8k", NULL,
 +                                                        i8k_groups);
 +      if (IS_ERR(i8k_hwmon_dev)) {
 +              err = PTR_ERR(i8k_hwmon_dev);
 +              i8k_hwmon_dev = NULL;
 +              pr_err("hwmon registration failed (%d)\n", err);
 +              return err;
 +      }
        return 0;
 -
 - exit_remove_files:
 -      i8k_hwmon_remove_files(i8k_hwmon_dev);
 - exit_unregister:
 -      hwmon_device_unregister(i8k_hwmon_dev);
 -      return err;
  }
  
 -static void __exit i8k_exit_hwmon(void)
 -{
 -      i8k_hwmon_remove_files(i8k_hwmon_dev);
 -      hwmon_device_unregister(i8k_hwmon_dev);
 -}
 -
 -static struct dmi_system_id __initdata i8k_dmi_table[] = {
 +static struct dmi_system_id i8k_dmi_table[] __initdata = {
        {
                .ident = "Dell Inspiron",
                .matches = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "XPS L421X"),
                },
        },
 -        { }
 +      {
 +              .ident = "Dell Studio",
 +              .matches = {
 +                      DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
 +                      DMI_MATCH(DMI_PRODUCT_NAME, "Studio"),
 +              },
 +              .driver_data = (void *)1,       /* fan multiplier override */
 +      },
 +      {
 +              .ident = "Dell XPS M140",
 +              .matches = {
 +                      DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
 +                      DMI_MATCH(DMI_PRODUCT_NAME, "MXC051"),
 +              },
 +              .driver_data = (void *)1,       /* fan multiplier override */
 +      },
 +      { }
  };
  
  /*
   */
  static int __init i8k_probe(void)
  {
 -      char buff[4];
 -      int version;
 +      const struct dmi_system_id *id;
  
        /*
         * Get DMI information
                if (!ignore_dmi && !force)
                        return -ENODEV;
  
 -              printk(KERN_INFO "i8k: not running on a supported Dell system.\n");
 -              printk(KERN_INFO "i8k: vendor=%s, model=%s, version=%s\n",
 +              pr_info("not running on a supported Dell system.\n");
 +              pr_info("vendor=%s, model=%s, version=%s\n",
                        i8k_get_dmi_data(DMI_SYS_VENDOR),
                        i8k_get_dmi_data(DMI_PRODUCT_NAME),
                        i8k_get_dmi_data(DMI_BIOS_VERSION));
        }
  
 -      strlcpy(bios_version, i8k_get_dmi_data(DMI_BIOS_VERSION), sizeof(bios_version));
 +      strlcpy(bios_version, i8k_get_dmi_data(DMI_BIOS_VERSION),
 +              sizeof(bios_version));
  
        /*
         * Get SMM Dell signature
         */
        if (i8k_get_dell_signature(I8K_SMM_GET_DELL_SIG1) &&
            i8k_get_dell_signature(I8K_SMM_GET_DELL_SIG2)) {
 -              printk(KERN_ERR "i8k: unable to get SMM Dell signature\n");
 +              pr_err("unable to get SMM Dell signature\n");
                if (!force)
                        return -ENODEV;
        }
  
 -      /*
 -       * Get SMM BIOS version.
 -       */
 -      version = i8k_get_bios_version();
 -      if (version <= 0) {
 -              printk(KERN_WARNING "i8k: unable to get SMM BIOS version\n");
 -      } else {
 -              buff[0] = (version >> 16) & 0xff;
 -              buff[1] = (version >> 8) & 0xff;
 -              buff[2] = (version) & 0xff;
 -              buff[3] = '\0';
 -              /*
 -               * If DMI BIOS version is unknown use SMM BIOS version.
 -               */
 -              if (!dmi_get_system_info(DMI_BIOS_VERSION))
 -                      strlcpy(bios_version, buff, sizeof(bios_version));
 -
 -              /*
 -               * Check if the two versions match.
 -               */
 -              if (strncmp(buff, bios_version, sizeof(bios_version)) != 0)
 -                      printk(KERN_WARNING "i8k: BIOS version mismatch: %s != %s\n",
 -                              buff, bios_version);
 -      }
 +      i8k_fan_mult = fan_mult;
 +      id = dmi_first_match(i8k_dmi_table);
 +      if (id && fan_mult == I8K_FAN_MULT && id->driver_data)
 +              i8k_fan_mult = (unsigned long)id->driver_data;
  
        return 0;
  }
@@@ -800,6 -754,10 +800,6 @@@ static int __init i8k_init(void
        if (err)
                goto exit_remove_proc;
  
 -      printk(KERN_INFO
 -             "Dell laptop SMM driver v%s Massimo Dal Zotto (dz@debian.org)\n",
 -             I8K_VERSION);
 -
        return 0;
  
   exit_remove_proc:
  
  static void __exit i8k_exit(void)
  {
 -      i8k_exit_hwmon();
 +      hwmon_device_unregister(i8k_hwmon_dev);
        remove_proc_entry("i8k", NULL);
  }
  
diff --combined drivers/hwmon/nct6775.c
index 8686e966fa28e20d267ddf597580ff62e4faf231,01ce7bdf4699d0223c7b578fa3884791d1b59253..38d5a63340535567719feb35338712570a2c88d2
@@@ -5,7 -5,7 +5,7 @@@
   * Copyright (C) 2012  Guenter Roeck <linux@roeck-us.net>
   *
   * Derived from w83627ehf driver
-  * Copyright (C) 2005-2012  Jean Delvare <khali@linux-fr.org>
+  * Copyright (C) 2005-2012  Jean Delvare <jdelvare@suse.de>
   * Copyright (C) 2006  Yuan Mu (Winbond),
   *                   Rudolf Marek <r.marek@assembler.cz>
   *                   David Hubbard <david.c.hubbard@gmail.com>
@@@ -3936,18 -3936,6 +3936,18 @@@ static int nct6775_probe(struct platfor
        return PTR_ERR_OR_ZERO(hwmon_dev);
  }
  
 +static void nct6791_enable_io_mapping(int sioaddr)
 +{
 +      int val;
 +
 +      val = superio_inb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE);
 +      if (val & 0x10) {
 +              pr_info("Enabling hardware monitor logical device mappings.\n");
 +              superio_outb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE,
 +                           val & ~0x10);
 +      }
 +}
 +
  #ifdef CONFIG_PM
  static int nct6775_suspend(struct device *dev)
  {
  static int nct6775_resume(struct device *dev)
  {
        struct nct6775_data *data = dev_get_drvdata(dev);
 -      int i, j;
 +      int i, j, err = 0;
  
        mutex_lock(&data->update_lock);
        data->bank = 0xff;              /* Force initial bank selection */
  
 +      if (data->kind == nct6791) {
 +              err = superio_enter(data->sioreg);
 +              if (err)
 +                      goto abort;
 +
 +              nct6791_enable_io_mapping(data->sioreg);
 +              superio_exit(data->sioreg);
 +      }
 +
        /* Restore limits */
        for (i = 0; i < data->in_num; i++) {
                if (!(data->have_in & (1 << i)))
                nct6775_write_value(data, NCT6775_REG_FANDIV2, data->fandiv2);
        }
  
 +abort:
        /* Force re-reading all values */
        data->valid = false;
        mutex_unlock(&data->update_lock);
  
 -      return 0;
 +      return err;
  }
  
  static const struct dev_pm_ops nct6775_dev_pm_ops = {
@@@ -4110,9 -4088,15 +4110,9 @@@ static int __init nct6775_find(int sioa
                pr_warn("Forcibly enabling Super-I/O. Sensor is probably unusable.\n");
                superio_outb(sioaddr, SIO_REG_ENABLE, val | 0x01);
        }
 -      if (sio_data->kind == nct6791) {
 -              val = superio_inb(sioaddr, NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE);
 -              if (val & 0x10) {
 -                      pr_info("Enabling hardware monitor logical device mappings.\n");
 -                      superio_outb(sioaddr,
 -                                   NCT6791_REG_HM_IO_SPACE_LOCK_ENABLE,
 -                                   val & ~0x10);
 -              }
 -      }
 +
 +      if (sio_data->kind == nct6791)
 +              nct6791_enable_io_mapping(sioaddr);
  
        superio_exit(sioaddr);
        pr_info("Found %s or compatible chip at %#x:%#x\n",
diff --combined drivers/hwmon/sis5595.c
index e74bd7e620e8140a44a3917ef701ff22223b8a62,b6e17b2139546eec22fe0b3babd9c7418050832c..3532026e25dafbf1006bff72559f6e0eba00070e
@@@ -6,7 -6,7 +6,7 @@@
   *                         Kyösti Mälkki <kmalkki@cc.hut.fi>, and
   *                         Mark D. Studebaker <mdsxyz123@yahoo.com>
   * Ported to Linux 2.6 by Aurelien Jarno <aurelien@aurel32.net> with
-  * the help of Jean Delvare <khali@linux-fr.org>
+  * the help of Jean Delvare <jdelvare@suse.de>
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
@@@ -754,7 -754,7 +754,7 @@@ static struct sis5595_data *sis5595_upd
        return data;
  }
  
 -static DEFINE_PCI_DEVICE_TABLE(sis5595_pci_ids) = {
 +static const struct pci_device_id sis5595_pci_ids[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_503) },
        { 0, }
  };
diff --combined drivers/i2c/i2c-core.c
index c4c5588ec0fbe3dcafe23ff2af00a813721fb5c5,fb84ff36bd69012240f814002b98627f1a72194e..82f7a5354dfea8f31d2a6ddfa69a360d30a235b5
@@@ -21,7 -21,7 +21,7 @@@
  /* With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi>.
     All SMBus-related things are written by Frodo Looijaard <frodol@dds.nl>
     SMBus 2.0 support by Mark Studebaker <mdsxyz123@yahoo.com> and
-    Jean Delvare <khali@linux-fr.org>
+    Jean Delvare <jdelvare@suse.de>
     Mux support by Rodolfo Giometti <giometti@enneenne.com> and
     Michael Lawnick <michael.lawnick.ext@nsn.com>
     OF support is copyright (c) 2008 Jochen Friedrich <jochen@scram.de>
@@@ -104,11 -104,6 +104,11 @@@ static int i2c_device_match(struct devi
  static int i2c_device_uevent(struct device *dev, struct kobj_uevent_env *env)
  {
        struct i2c_client       *client = to_i2c_client(dev);
 +      int rc;
 +
 +      rc = acpi_device_uevent_modalias(dev, env);
 +      if (rc != -ENODEV)
 +              return rc;
  
        if (add_uevent_var(env, "MODALIAS=%s%s",
                           I2C_MODULE_PREFIX, client->name))
@@@ -414,12 -409,6 +414,12 @@@ static ssize_
  show_modalias(struct device *dev, struct device_attribute *attr, char *buf)
  {
        struct i2c_client *client = to_i2c_client(dev);
 +      int len;
 +
 +      len = acpi_device_modalias(dev, buf, PAGE_SIZE -1);
 +      if (len != -ENODEV)
 +              return len;
 +
        return sprintf(buf, "%s%s\n", I2C_MODULE_PREFIX, client->name);
  }
  
index e835304e7b5a0c1305a5997b38dd3c805fd0134d,0ebc9d8748a016fe10c4af078b32a6f4a831153c..8720b6a1123777a727f1da4165f12a7327729f55
   * Based on:
   *    i2c-virtual_cb.c from Brian Kuschak <bkuschak@yahoo.com>
   * and
-  *    pca9540.c from Jean Delvare <khali@linux-fr.org>.
+  *    pca9540.c from Jean Delvare <jdelvare@suse.de>.
   *
   * This file is licensed under the terms of the GNU General Public
   * License version 2. This program is licensed "as is" without any
   * warranty of any kind, whether express or implied.
   */
  
 -#include <linux/module.h>
 -#include <linux/init.h>
 -#include <linux/slab.h>
  #include <linux/device.h>
 +#include <linux/gpio.h>
  #include <linux/i2c.h>
  #include <linux/i2c-mux.h>
 -
  #include <linux/i2c/pca954x.h>
 +#include <linux/init.h>
 +#include <linux/module.h>
 +#include <linux/of_gpio.h>
 +#include <linux/slab.h>
  
  #define PCA954X_MAX_NCHANS 8
  
@@@ -187,43 -186,28 +187,43 @@@ static int pca954x_probe(struct i2c_cli
  {
        struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent);
        struct pca954x_platform_data *pdata = dev_get_platdata(&client->dev);
 +      struct device_node *np = client->dev.of_node;
        int num, force, class;
        struct pca954x *data;
 -      int ret = -ENODEV;
 +      int ret;
  
        if (!i2c_check_functionality(adap, I2C_FUNC_SMBUS_BYTE))
 -              goto err;
 +              return -ENODEV;
  
 -      data = kzalloc(sizeof(struct pca954x), GFP_KERNEL);
 -      if (!data) {
 -              ret = -ENOMEM;
 -              goto err;
 -      }
 +      data = devm_kzalloc(&client->dev, sizeof(struct pca954x), GFP_KERNEL);
 +      if (!data)
 +              return -ENOMEM;
  
        i2c_set_clientdata(client, data);
  
 +      if (IS_ENABLED(CONFIG_OF) && np) {
 +              enum of_gpio_flags flags;
 +              int gpio;
 +
 +              /* Get the mux out of reset if a reset GPIO is specified. */
 +              gpio = of_get_named_gpio_flags(np, "reset-gpio", 0, &flags);
 +              if (gpio_is_valid(gpio)) {
 +                      ret = devm_gpio_request_one(&client->dev, gpio,
 +                                      flags & OF_GPIO_ACTIVE_LOW ?
 +                                      GPIOF_OUT_INIT_HIGH : GPIOF_OUT_INIT_LOW,
 +                                      "pca954x reset");
 +                      if (ret < 0)
 +                              return ret;
 +              }
 +      }
 +
        /* Write the mux register at addr to verify
         * that the mux is in fact present. This also
         * initializes the mux to disconnected state.
         */
        if (i2c_smbus_write_byte(client, 0) < 0) {
                dev_warn(&client->dev, "probe failed\n");
 -              goto exit_free;
 +              return -ENODEV;
        }
  
        data->type = id->driver_data;
  virt_reg_failed:
        for (num--; num >= 0; num--)
                i2c_del_mux_adapter(data->virt_adaps[num]);
 -exit_free:
 -      kfree(data);
 -err:
        return ret;
  }
  
@@@ -283,6 -270,7 +283,6 @@@ static int pca954x_remove(struct i2c_cl
                        data->virt_adaps[i] = NULL;
                }
  
 -      kfree(data);
        return 0;
  }