diff options
author | Lifeng Zheng <zhenglifeng1@huawei.com> | 2025-04-11 17:38:52 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-04-30 22:01:30 +0200 |
commit | e05c75072c2eaa6e0b152a558b3be5cbcf79a587 (patch) | |
tree | 732e92358bf9f25550eba7c60d88bef02c382448 /scripts/lib/kdoc/kdoc_re.py | |
parent | b5ef45e6a1777fe4e857a1cd48631dc14064eae4 (diff) |
ACPI: CPPC: Add cppc_set_reg_val()
Add cppc_set_reg_val() as a generic function for setting CPPC register
values, with this features:
1. Check register. If a register is writeable, it must be a buffer and
can not be null.
2. Extract the operations if register is in PCC out as
cppc_set_reg_val_in_pcc().
This function can be used to reduce some existing code duplication.
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20250411093855.982491-6-zhenglifeng1@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions