On 22/6/2021 1:43 PM, David Hunt wrote:
From: Anatoly Burakov <[email protected]>

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 <[email protected]>
Signed-off-by: David Hunt <[email protected]>

---
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.


Reply via email to