summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorRong Zhang <i@rong.moe>2026-10-19 23:02:29 +0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-10-20 15:05:44 +0300
commitf44eea1b94819cc3a790c24a9cc77d06738050f5 (patch)
tree27980a26acf6518356ff43be4f7e575690d4efa0 /scripts/const_structs.checkpatch
parent50a11dcdbd073a26b152b46d214cc980ecfc8426 (diff)
platform/x86: lenovo-wmi-capdata: Adopt new WMI API
The new WMI API supports multiple ACPI types by converting them into a unified buffer that satisfies alignment and size requirements. Adopt it to make our life easier. Note that the new WMI API only accepts a few ACPI types to conform to the behavior of the Windows WMI-ACPI driver. By adopting the new API, we intentionally rejects improper ACPI types instead of silently ignoring them. Meanwhile, considering that `struct_size(block, data, count * 3)' may overflow when calculating `count * 3', ignore Fan Test Data with count > U8_MAX instead of capping `count'. Reviewed-by: Armin Wolf <W_Armin@gmx.de> Tested-by: Navon John Lukose <navonjohnlukose@gmail.com> Reviewed-by: Derek J. Clark <derekjohn.clark@gmail.com> Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca> Signed-off-by: Rong Zhang <i@rong.moe> Link: https://patch.msgid.link/20261019-lwmi-wmi-new-api-v5-7-71557d28d058@rong.moe Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions