diff options
| author | 2026-10-13 12:29:33 -0700 | |
|---|---|---|
| committer | 2026-10-15 16:53:53 +0300 | |
| commit | 5f28895b74c778a02c1d0b8e90b804e0fc235c69 (patch) | |
| tree | b4346fcb5265f0ebe965edbcc31f925fb0a56005 /scripts/Makefile.thinlto | |
| parent | platform/x86/intel/tpmi: Use scnprintf() to build the debugfs names (diff) | |
platform/x86/intel/tpmi: Use DEFINE_RES_MEM() for the feature resources
tpmi_create_device() fills in each feature resource field by field,
deriving the end from the start and setting IORESOURCE_MEM by hand.
That is what DEFINE_RES_MEM() exists for, so use it.
The resources come from kzalloc_flex(), so the fields the macro sets
that the open coded version left alone, name and desc, were already
zero.
No functional change intended.
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/20261013192935.2243291-19-sathyanarayanan.kuppuswamy@linux.intel.com
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/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
