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/class.h | |
| 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/class.h')
| -rw-r--r-- | drivers/platform/x86/intel/pmt/class.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/platform/x86/intel/pmt/class.h b/drivers/platform/x86/intel/pmt/class.h index db11d58867ce..e477a19f6700 100644 --- a/drivers/platform/x86/intel/pmt/class.h +++ b/drivers/platform/x86/intel/pmt/class.h @@ -18,7 +18,15 @@ #define GET_BIR(v) ((v) & GENMASK(2, 0)) #define GET_ADDRESS(v) ((v) & GENMASK(31, 3)) +struct intel_pmt_header { + u32 base_offset; + u32 size; + u32 guid; + u8 access_type; +}; + struct intel_pmt_entry { + struct intel_pmt_header header; struct bin_attribute pmt_bin_attr; struct kobject *kobj; void __iomem *disc_table; @@ -29,19 +37,11 @@ struct intel_pmt_entry { int devid; }; -struct intel_pmt_header { - u32 base_offset; - u32 size; - u32 guid; - u8 access_type; -}; - struct intel_pmt_namespace { const char *name; struct xarray *xa; const struct attribute_group *attr_grp; int (*pmt_header_decode)(struct intel_pmt_entry *entry, - struct intel_pmt_header *header, struct device *dev); }; |
