diff options
| author | David E. Box <[email protected]> | 2023-11-29 22:21:21 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-12-04 13:53:43 +0000 |
| commit | 4d1b7efee3fc703c64bacc37c4824888c5f26e8b (patch) | |
| tree | d8284cbf99401d0fa5222ba5ec3fe63303b90c6b /drivers/platform/x86/intel/pmt/crashlog.c | |
| parent | platform/x86/intel/vsec: Add base address field (diff) | |
| download | kernel-4d1b7efee3fc703c64bacc37c4824888c5f26e8b.tar.gz kernel-4d1b7efee3fc703c64bacc37c4824888c5f26e8b.zip | |
platform/x86/intel/pmt: Add header to struct intel_pmt_entry
The PMT header is passed to several functions. Instead, store the header in
struct intel_pmt_entry which is also passed to these functions and shorten
the argument list. This simplifies the calls in preparation for later
changes. While here also perform a newline cleanup.
Signed-off-by: David E. Box <[email protected]>
Reviewed-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/crashlog.c')
| -rw-r--r-- | drivers/platform/x86/intel/pmt/crashlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/pmt/crashlog.c b/drivers/platform/x86/intel/pmt/crashlog.c index bbb3d61d09f4..4014c02cafdb 100644 --- a/drivers/platform/x86/intel/pmt/crashlog.c +++ b/drivers/platform/x86/intel/pmt/crashlog.c @@ -223,10 +223,10 @@ static const struct attribute_group pmt_crashlog_group = { }; static int pmt_crashlog_header_decode(struct intel_pmt_entry *entry, - struct intel_pmt_header *header, struct device *dev) { void __iomem *disc_table = entry->disc_table; + struct intel_pmt_header *header = &entry->header; struct crashlog_entry *crashlog; if (!pmt_crashlog_supported(entry)) |
