Skip to content

Commit

Permalink
dell-smbios: remove find_token_{id,location}()
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 find_token_id() and find_token_location(), these functions can be
safely removed.

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 f951d6e commit 73511ff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
25 changes: 0 additions & 25 deletions drivers/platform/x86/dell-smbios.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,6 @@ struct calling_interface_token *dell_smbios_find_token(int tokenid)
}
EXPORT_SYMBOL_GPL(dell_smbios_find_token);

int find_token_id(int tokenid)
{
int i;

for (i = 0; i < da_num_tokens; i++) {
if (da_tokens[i].tokenID == tokenid)
return i;
}

return -1;
}
EXPORT_SYMBOL_GPL(find_token_id);

int find_token_location(int tokenid)
{
int id;

id = find_token_id(tokenid);
if (id == -1)
return -1;

return da_tokens[id].location;
}
EXPORT_SYMBOL_GPL(find_token_location);

static void __init parse_da_table(const struct dmi_header *dm)
{
/* Final token is a terminator, so we don't want to copy it */
Expand Down
3 changes: 0 additions & 3 deletions drivers/platform/x86/dell-smbios.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,4 @@ void dell_smbios_release_buffer(void);
void dell_smbios_send_request(int class, int select);

struct calling_interface_token *dell_smbios_find_token(int tokenid);

int find_token_id(int tokenid);
int find_token_location(int tokenid);
#endif

0 comments on commit 73511ff

Please sign in to comment.