diff options
author | Michał Kępień <kernel@kempniu.pl> | 2016-01-22 09:27:25 -0500 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-03-23 13:05:42 -0400 |
commit | 73511ff30c6dc5347ede4c2a2fa5ab22fae3f152 (patch) | |
tree | 948fbfd86904fcfa2d25c826534886960e2b6ab3 /drivers/platform | |
parent | f951d6e6faedcead91419b785f73a620d8ed191a (diff) |
dell-smbios: remove find_token_{id,location}()
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/dell-smbios.c | 25 | ||||
-rw-r--r-- | drivers/platform/x86/dell-smbios.h | 3 |
2 files changed, 0 insertions, 28 deletions
diff --git a/drivers/platform/x86/dell-smbios.c b/drivers/platform/x86/dell-smbios.c index 6a27e4c85a24..c9efa9e017c1 100644 --- a/drivers/platform/x86/dell-smbios.c +++ b/drivers/platform/x86/dell-smbios.c | |||
@@ -90,31 +90,6 @@ struct calling_interface_token *dell_smbios_find_token(int tokenid) | |||
90 | } | 90 | } |
91 | EXPORT_SYMBOL_GPL(dell_smbios_find_token); | 91 | EXPORT_SYMBOL_GPL(dell_smbios_find_token); |
92 | 92 | ||
93 | int find_token_id(int tokenid) | ||
94 | { | ||
95 | int i; | ||
96 | |||
97 | for (i = 0; i < da_num_tokens; i++) { | ||
98 | if (da_tokens[i].tokenID == tokenid) | ||
99 | return i; | ||
100 | } | ||
101 | |||
102 | return -1; | ||
103 | } | ||
104 | EXPORT_SYMBOL_GPL(find_token_id); | ||
105 | |||
106 | int find_token_location(int tokenid) | ||
107 | { | ||
108 | int id; | ||
109 | |||
110 | id = find_token_id(tokenid); | ||
111 | if (id == -1) | ||
112 | return -1; | ||
113 | |||
114 | return da_tokens[id].location; | ||
115 | } | ||
116 | EXPORT_SYMBOL_GPL(find_token_location); | ||
117 | |||
118 | static void __init parse_da_table(const struct dmi_header *dm) | 93 | static void __init parse_da_table(const struct dmi_header *dm) |
119 | { | 94 | { |
120 | /* Final token is a terminator, so we don't want to copy it */ | 95 | /* Final token is a terminator, so we don't want to copy it */ |
diff --git a/drivers/platform/x86/dell-smbios.h b/drivers/platform/x86/dell-smbios.h index 6f6dbe8b05d4..f17cf7b26f1d 100644 --- a/drivers/platform/x86/dell-smbios.h +++ b/drivers/platform/x86/dell-smbios.h | |||
@@ -43,7 +43,4 @@ void dell_smbios_release_buffer(void); | |||
43 | void dell_smbios_send_request(int class, int select); | 43 | void dell_smbios_send_request(int class, int select); |
44 | 44 | ||
45 | struct calling_interface_token *dell_smbios_find_token(int tokenid); | 45 | struct calling_interface_token *dell_smbios_find_token(int tokenid); |
46 | |||
47 | int find_token_id(int tokenid); | ||
48 | int find_token_location(int tokenid); | ||
49 | #endif | 46 | #endif |