On 22/6/2021 1:43 PM, David Hunt wrote:
From: Anatoly Burakov <anatoly.bura...@intel.com> Currently, ACPI and PSTATE modes have lots of code duplication, confusing logic, and a bunch of other issues that can, and have, led to various bugs and resource leaks. This commit factors out the common parts of sysfs reading/writing for ACPI and PSTATE drivers. Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com> Signed-off-by: David Hunt <david.h...@intel.com> --- changes in v2 * fixed bugs raised by Richael Zhuang in review - open file rw+, etc. * removed FOPS* and FOPEN* macros, which contained control statements. * fixed some checkpatch warnings.
Please ignore, should have been sent as v5.