]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83795) Check for BEEP pin availability
authorJean Delvare <khali@linux-fr.org>
Mon, 15 Nov 2010 20:38:57 +0000 (21:38 +0100)
committerJean Delvare <khali@endymion.delvare>
Mon, 15 Nov 2010 20:38:57 +0000 (21:38 +0100)
commita4f3b061feb1078e8439b117c233e0ea42663165
tree64b1e2f4bebba1a5580a4db5514c62535ddc2fd2
parent9b60ae1e6385c26027797685c03930c83580d401
hwmon: (w83795) Check for BEEP pin availability

On the W83795ADG, there's a single pin for BEEP and OVT#, so you
can't have both. Check the configuration and don't create beep
attributes when BEEP pin is not available.

The W83795G has a dedicated BEEP pin so the functionality is always
available there.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/w83795.c