diff options
author | David E. Box <david.e.box@linux.intel.com> | 2023-11-29 14:21:21 -0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-12-04 14:53:43 +0100 |
commit | 4d1b7efee3fc703c64bacc37c4824888c5f26e8b (patch) | |
tree | d8284cbf99401d0fa5222ba5ec3fe63303b90c6b /drivers/platform/x86/intel/pmt/crashlog.c | |
parent | e97ec7f621fbfdce07bf1b98a26883ee19281747 (diff) | |
download | linux-4d1b7efee3fc703c64bacc37c4824888c5f26e8b.tar.gz linux-4d1b7efee3fc703c64bacc37c4824888c5f26e8b.tar.bz2 linux-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 <david.e.box@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231129222132.2331261-10-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
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)) |