ACPI / PMIC: modify the pen function signature to take bit field
authorBin Gao <bin.gao@linux.intel.com>
Fri, 24 Jun 2016 00:45:35 +0000 (17:45 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 24 Jun 2016 13:25:37 +0000 (15:25 +0200)
commitd8ba8191245e3484d8533d9bef1432d13829e347
tree8f39d3a1ee7e5f40994b26889bf6a37ec4d3a777
parent33688abb2802ff3a230bd2441f765477b94cc89e
ACPI / PMIC: modify the pen function signature to take bit field

Issue description: On some pmics, the policy enable for thermal alerts
refers to different bit fields of the same registers, whereas on other
pmics, the policy enable refers to the same bit field on different
registers. Previous implementation did not provide the flexibility for
supporting the first approach.

Solution: Modified the policy enable function to take bit field as well.
The use of bit field is left to the pmic specific opregion driver.

Signed-off-by: Yegnesh Iyer <yegnesh.s.iyer@intel.com>
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pmic/intel_pmic.c
drivers/acpi/pmic/intel_pmic.h
drivers/acpi/pmic/intel_pmic_crc.c