watchdog: sch56xx: Remove unnecessary checks for register changes
authorHans de Goede <hdegoede@redhat.com>
Tue, 22 May 2012 09:40:25 +0000 (11:40 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 30 May 2012 05:55:41 +0000 (07:55 +0200)
commit85a2e40cb5053574cd3b1f33c00194309ce3704c
tree760e63cb090ac1a8eff5a0daca2bfe47176f9fb6
parentfb551405c0f8e15d6fc7ae6e16a5e15382f8b8ac
watchdog: sch56xx: Remove unnecessary checks for register changes

Since the watchdog core keeps track of the watchdog's active state, start/stop
will never get called when no changes are necessary. So we can remove the
check for the output_enable register changing before writing it (which is
an expensive operation).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/hwmon/sch56xx-common.c