Commit f587f07f authored by Peter Feuerer's avatar Peter Feuerer Committed by Darren Hart

acerhdf: minor clean up

  * renamed bios_settings_t to bios_settings, as it is no typedef
  * replaced "unsigned char" by u8 in bios_settings struct for better
    readability.

Cc: platform-driver-x86@vger.kernel.org
Cc: Darren Hart <dvhart@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andreas Mohr <andi@lisas.de>
Acked-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarPeter Feuerer <peter@piie.net>
Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
parent 7e8b6d73
...@@ -131,18 +131,18 @@ static const struct manualcmd mcmd = { ...@@ -131,18 +131,18 @@ static const struct manualcmd mcmd = {
}; };
/* BIOS settings */ /* BIOS settings */
struct bios_settings_t { struct bios_settings {
const char *vendor; const char *vendor;
const char *product; const char *product;
const char *version; const char *version;
unsigned char fanreg; u8 fanreg;
unsigned char tempreg; u8 tempreg;
struct fancmd cmd; struct fancmd cmd;
int mcmd_enable; int mcmd_enable;
}; };
/* Register addresses and values for different BIOS versions */ /* Register addresses and values for different BIOS versions */
static const struct bios_settings_t bios_tbl[] = { static const struct bios_settings bios_tbl[] = {
/* AOA110 */ /* AOA110 */
{"Acer", "AOA110", "v0.3109", 0x55, 0x58, {0x1f, 0x00}, 0}, {"Acer", "AOA110", "v0.3109", 0x55, 0x58, {0x1f, 0x00}, 0},
{"Acer", "AOA110", "v0.3114", 0x55, 0x58, {0x1f, 0x00}, 0}, {"Acer", "AOA110", "v0.3114", 0x55, 0x58, {0x1f, 0x00}, 0},
...@@ -256,7 +256,7 @@ static const struct bios_settings_t bios_tbl[] = { ...@@ -256,7 +256,7 @@ static const struct bios_settings_t bios_tbl[] = {
{"", "", "", 0, 0, {0, 0}, 0} {"", "", "", 0, 0, {0, 0}, 0}
}; };
static const struct bios_settings_t *bios_cfg __read_mostly; static const struct bios_settings *bios_cfg __read_mostly;
/* /*
* this struct is used to instruct thermal layer to use bang_bang instead of * this struct is used to instruct thermal layer to use bang_bang instead of
...@@ -619,7 +619,7 @@ static int str_starts_with(const char *str, const char *start) ...@@ -619,7 +619,7 @@ static int str_starts_with(const char *str, const char *start)
static int acerhdf_check_hardware(void) static int acerhdf_check_hardware(void)
{ {
char const *vendor, *version, *product; char const *vendor, *version, *product;
const struct bios_settings_t *bt = NULL; const struct bios_settings *bt = NULL;
/* get BIOS data */ /* get BIOS data */
vendor = dmi_get_system_info(DMI_SYS_VENDOR); vendor = dmi_get_system_info(DMI_SYS_VENDOR);
......
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