]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9805ac50cc21aef6f156b5678ea6456c712127cd
tree760e63cb090ac1a8eff5a0daca2bfe47176f9fb6
parent396d7b7c13d40dd3fee7fe7eb8a31565da8292e0
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