Skip to content

Commit

Permalink
dell-smbios: make da_tokens static
Browse files Browse the repository at this point in the history
As dell-laptop has been changed to use dell_smbios_find_token() instead
of directly accessing members of the da_tokens table, the latter can be
marked static.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
  • Loading branch information
Michał Kępień authored and Darren Hart committed Mar 23, 2016
1 parent 73511ff commit b7bca2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/platform/x86/dell-smbios.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ static DEFINE_MUTEX(buffer_mutex);
static int da_command_address;
static int da_command_code;
static int da_num_tokens;
struct calling_interface_token *da_tokens;
EXPORT_SYMBOL_GPL(da_tokens);
static struct calling_interface_token *da_tokens;

struct calling_interface_buffer *dell_smbios_get_buffer(void)
{
Expand Down
2 changes: 0 additions & 2 deletions drivers/platform/x86/dell-smbios.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ struct calling_interface_token {
};
};

extern struct calling_interface_token *da_tokens;

struct calling_interface_buffer *dell_smbios_get_buffer(void);
void dell_smbios_clear_buffer(void);
void dell_smbios_release_buffer(void);
Expand Down

0 comments on commit b7bca2d

Please sign in to comment.