diff mbox series

[NOT,FOR,MERGING,v3,1/3] ACPI: ACPI 6.5: RAS2: Rename RAS2 table structure and field names

Message ID 20250402120230.596-2-shiju.jose@huawei.com (mailing list archive)
State New
Headers show
Series ACPI: Add support for ACPI RAS2 feature table | expand

Commit Message

Shiju Jose April 2, 2025, 12:02 p.m. UTC
From: Shiju Jose <shiju.jose@huawei.com>

Rename the RAS2 table structure and field names to shorten them and
avoid long lines in the ACPI RAS2 drivers.

1. struct acpi_ras2_shared_memory to struct acpi_ras2_shmem

2. In struct acpi_ras2_shared_memory: fields,
   - set_capabilities[16] to set_caps[16]
   - num_parameter_blocks to num_param_blks
   - set_capabilities_status to set_caps_status

3. struct acpi_ras2_patrol_scrub_parameter to
   struct acpi_ras2_patrol_scrub_param

4. In struct acpi_ras2_patrol_scrub_parameter: fields,
   - patrol_scrub_command to command
   - requested_address_range to req_addr_range
   - actual_address_range to actl_addr_range

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
---
Corresponding changes are merged in the acpica:
https://github.com/acpica/acpica/commit/2c8a38f747de9d977491a494faf0dfaf799b777b
---
 include/acpi/actbl2.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index 2e917a8f8bca..493174ca87f6 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -2802,15 +2802,15 @@  struct acpi_ras2_pcc_desc {
 
 /* RAS2 Platform Communication Channel Shared Memory Region */
 
-struct acpi_ras2_shared_memory {
+struct acpi_ras2_shmem {
 	u32 signature;
 	u16 command;
 	u16 status;
 	u16 version;
 	u8 features[16];
-	u8 set_capabilities[16];
-	u16 num_parameter_blocks;
-	u32 set_capabilities_status;
+	u8 set_caps[16];
+	u16 num_param_blks;
+	u32 set_caps_status;
 };
 
 /* RAS2 Parameter Block Structure for PATROL_SCRUB */
@@ -2823,11 +2823,11 @@  struct acpi_ras2_parameter_block {
 
 /* RAS2 Parameter Block Structure for PATROL_SCRUB */
 
-struct acpi_ras2_patrol_scrub_parameter {
+struct acpi_ras2_patrol_scrub_param {
 	struct acpi_ras2_parameter_block header;
-	u16 patrol_scrub_command;
-	u64 requested_address_range[2];
-	u64 actual_address_range[2];
+	u16 command;
+	u64 req_addr_range[2];
+	u64 actl_addr_range[2];
 	u32 flags;
 	u32 scrub_params_out;
 	u32 scrub_params_in;