]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dell-smbios: implement new function for finding DMI table 0xDA tokens
authorMichał Kępień <kernel@kempniu.pl>
Fri, 22 Jan 2016 14:27:22 +0000 (15:27 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 23 Mar 2016 17:05:41 +0000 (10:05 -0700)
commit96f7ef90cc373f805a38f2a3e96a8b1948706954
treecf8756af0ced4de72d6500882ae211cd6421a166
parent92ebd0d1a80930c52eb091d497d4527c4fe556ca
dell-smbios: implement new function for finding DMI table 0xDA tokens

Ultimately, the da_tokens table should not be exported from dell-smbios.
Currently, in some cases, dell-laptop accesses that table's members
directly, so implement a new function, dell_smbios_find_token(), which
returns a pointer to an entry inside the da_tokens table with the given
token ID (or NULL if it is not found).

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>
drivers/platform/x86/dell-smbios.c
drivers/platform/x86/dell-smbios.h