summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2023-04-19 05:44:10 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-05-24 19:46:19 +0300
commit11edbe5c66d624e2e1eec8929d3668d76a574c3b (patch)
treecc4f20251c6136364bcf5dca31f731b4da52040a /drivers/thermal
parentcb532e728ee2880be53264752e74945fd2d917ac (diff)
downloadlinux-11edbe5c66d624e2e1eec8929d3668d76a574c3b.tar.xz
powercap: intel_rapl: Use index to initialize primitive information
Currently, the RAPL primitive information array is required to be initialized in the order of enum rapl_primitives. This can break easily, especially when different RAPL Interfaces may support different sets of primitives. Convert the code to initialize the primitive information using array index explicitly. No functional change. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Tested-by: Wang Wendy <wendy.wang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions