ACPI / button: Refactor functions to eliminate redundant code
authorLv Zheng <lv.zheng@intel.com>
Wed, 1 Jun 2016 10:10:42 +0000 (18:10 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 Jun 2016 00:10:15 +0000 (02:10 +0200)
commitee7e22653f5077169ec706b5a140a3be9db381e7
tree8d5498bbdac559ca4c3fa681c04b16219a3e0cf8
parentc2dd420034f24f356b86f90222ef19148b82a5c1
ACPI / button: Refactor functions to eliminate redundant code

(Correct a wrong macro usage.)

This patch simplies the code by merging some redundant code.

No functional changes.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/button.c