Skip to content

Commit

Permalink
platform/x86: dell-smbios: Prefix class/select with cmd_
Browse files Browse the repository at this point in the history
Later on these structures will be brought up to userspace.
the word "class" is a reserved word in c++ and this will prevent
uapi headers from being included directly in c++ programs.

To make life easier on these applications, prepare the change now.

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Reviewed-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
  • Loading branch information
Mario Limonciello authored and Darren Hart (VMware) committed Nov 3, 2017
1 parent 455e027 commit f35a8ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/platform/x86/dell-smbios.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ void dell_smbios_send_request(int class, int select)
command.ebx = virt_to_phys(buffer);
command.ecx = 0x42534931;

buffer->class = class;
buffer->select = select;
buffer->cmd_class = class;
buffer->cmd_select = select;

dcdbas_smi_request(&command);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/platform/x86/dell-smbios.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ struct notifier_block;
* system management mode, hence the volatiles */

struct calling_interface_buffer {
u16 class;
u16 select;
u16 cmd_class;
u16 cmd_select;
volatile u32 input[4];
volatile u32 output[4];
} __packed;
Expand Down

0 comments on commit f35a8ef

Please sign in to comment.