Commit eb4c5ea5 authored by Ivan Khoronzhuk's avatar Ivan Khoronzhuk Committed by Jean Delvare

firmware: dmi_scan: Rename dmi_table to dmi_decode_table

The "dmi_table" function looks like data instance, but it does DMI
table decode. This patch renames it to "dmi_decode_table" name as
more appropriate. That allows us to use "dmi_table" name for correct
purposes.
Signed-off-by: default avatarIvan Khoronzhuk <ivan.khoronzhuk@globallogic.com>
Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
parent d4aeef93
...@@ -80,7 +80,7 @@ static const char * __init dmi_string(const struct dmi_header *dm, u8 s) ...@@ -80,7 +80,7 @@ static const char * __init dmi_string(const struct dmi_header *dm, u8 s)
* We have to be cautious here. We have seen BIOSes with DMI pointers * We have to be cautious here. We have seen BIOSes with DMI pointers
* pointing to completely the wrong place for example * pointing to completely the wrong place for example
*/ */
static void dmi_table(u8 *buf, static void dmi_decode_table(u8 *buf,
void (*decode)(const struct dmi_header *, void *), void (*decode)(const struct dmi_header *, void *),
void *private_data) void *private_data)
{ {
...@@ -135,7 +135,7 @@ static int __init dmi_walk_early(void (*decode)(const struct dmi_header *, ...@@ -135,7 +135,7 @@ static int __init dmi_walk_early(void (*decode)(const struct dmi_header *,
if (buf == NULL) if (buf == NULL)
return -1; return -1;
dmi_table(buf, decode, NULL); dmi_decode_table(buf, decode, NULL);
add_device_randomness(buf, dmi_len); add_device_randomness(buf, dmi_len);
...@@ -902,7 +902,7 @@ int dmi_walk(void (*decode)(const struct dmi_header *, void *), ...@@ -902,7 +902,7 @@ int dmi_walk(void (*decode)(const struct dmi_header *, void *),
if (buf == NULL) if (buf == NULL)
return -1; return -1;
dmi_table(buf, decode, private_data); dmi_decode_table(buf, decode, private_data);
dmi_unmap(buf); dmi_unmap(buf);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment