platform/x86/intel/pmt: Add header to struct intel_pmt_entry
authorDavid E. Box <david.e.box@linux.intel.com>
Wed, 29 Nov 2023 22:21:21 +0000 (14:21 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 13:53:43 +0000 (14:53 +0100)
commit4d1b7efee3fc703c64bacc37c4824888c5f26e8b
treed8284cbf99401d0fa5222ba5ec3fe63303b90c6b
parente97ec7f621fbfdce07bf1b98a26883ee19281747
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>
drivers/platform/x86/intel/pmt/class.c
drivers/platform/x86/intel/pmt/class.h
drivers/platform/x86/intel/pmt/crashlog.c
drivers/platform/x86/intel/pmt/telemetry.c