dell-smbios: return the SMBIOS buffer from dell_smbios_get_buffer()
authorMichał Kępień <kernel@kempniu.pl>
Fri, 22 Jan 2016 14:27:20 +0000 (15:27 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 23 Mar 2016 17:05:40 +0000 (10:05 -0700)
commitbc2104c27aad0c988d23c6abcd46f3313618bdbb
tree33dbed178274d41ef07f41f51e34f45c52c0922f
parentc42831c8a9db32a5a0e2c6c31042014039f11739
dell-smbios: return the SMBIOS buffer from dell_smbios_get_buffer()

Ultimately, the SMBIOS buffer should not be exported from dell-smbios.
Currently, dell-laptop accesses it directly using a global variable, so
make dell_smbios_get_buffer() return a pointer to the SMBIOS buffer and
replace all uses of the global variable with local variables.

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