Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Ivan Khoronzhuk <ivan.khoronzhuk@globallogic.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>

authored by

Ivan Khoronzhuk and committed by
Jean Delvare
eb4c5ea5 d4aeef93

+5 -5
+5 -5
drivers/firmware/dmi_scan.c
··· 80 80 * We have to be cautious here. We have seen BIOSes with DMI pointers 81 81 * pointing to completely the wrong place for example 82 82 */ 83 - static void dmi_table(u8 *buf, 84 - void (*decode)(const struct dmi_header *, void *), 85 - void *private_data) 83 + static void dmi_decode_table(u8 *buf, 84 + void (*decode)(const struct dmi_header *, void *), 85 + void *private_data) 86 86 { 87 87 u8 *data = buf; 88 88 int i = 0; ··· 135 135 if (buf == NULL) 136 136 return -1; 137 137 138 - dmi_table(buf, decode, NULL); 138 + dmi_decode_table(buf, decode, NULL); 139 139 140 140 add_device_randomness(buf, dmi_len); 141 141 ··· 902 902 if (buf == NULL) 903 903 return -1; 904 904 905 - dmi_table(buf, decode, private_data); 905 + dmi_decode_table(buf, decode, private_data); 906 906 907 907 dmi_unmap(buf); 908 908 return 0;