]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (abituguru) Depend on DMI
authorJean Delvare <khali@linux-fr.org>
Wed, 25 May 2011 18:43:33 +0000 (20:43 +0200)
committerJean Delvare <khali@endymion.delvare>
Wed, 25 May 2011 18:43:33 +0000 (20:43 +0200)
commit88e0c20cb7da51b4d55891274c1ec64d9e8111d2
tree6f261c6f8a23fdd604f6a7b2f31cac906b0533ea
parenta76856125428823ae86ba4a648f1bf6064b48751
hwmon: (abituguru) Depend on DMI

The abituguru drivers are only built on X86, where DMI support is now
enabled by default. So let these drivers depend on DMI, for the
following gains:
* Robustness and safety. Detection of these devices is weak and uses
  non-standard methods, it should really be limited to Abit boards
  unless the user explicitly asks otherwise.
* Code simplicity. The code is easier to read without ifdefs.
* Better build testing coverage. Now there's only one way to build the
  drivers, so no risk of build failure on exotic systems.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Alistair John Strachan <alistair@devzero.co.uk>
Acked-by: Hans de Goede <hdegoede@redhat.com>
drivers/hwmon/Kconfig
drivers/hwmon/abituguru.c
drivers/hwmon/abituguru3.c