]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86/intel/pmc: Change LPM mode fields to u8
authorXi Pardee <xi.pardee@linux.intel.com>
Thu, 8 Jan 2026 22:31:39 +0000 (14:31 -0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 13 Jan 2026 14:31:36 +0000 (16:31 +0200)
commit65b3a9220345f5dd37ff0227673c95755dbe5c2f
tree3d2d75572655d1476f9bae907d60b84d32584a27
parent932ca9b7b47c08479e52c1605f73474ed27e3e4f
platform/x86/intel/pmc: Change LPM mode fields to u8

Change the datatypes of num_lpm_modes and lpm_en_modes[] from int
to u8. The u8 type is more appropriate and improves the readability
and maintainability of the code.

Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
Link: https://patch.msgid.link/20260108223144.504267-2-xi.pardee@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/pmc/core.c
drivers/platform/x86/intel/pmc/core.h