thinkpad-acpi: store fw version with strict checking
commita9c257e29c6b7de4a4ca77695da9f62908f45486
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 5 Jul 2009 00:35:22 +0000 (4 21:35 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 5 Jul 2009 00:35:22 +0000 (4 21:35 -0300)
treee526c1fb0ab92af8fa108b77604d3cc8bb0c822c
parent2f9e66202481eb1dd0b6d498f4e0d2e5e5bc6918
thinkpad-acpi: store fw version with strict checking

Extend the thinkpad model and firmware identification data with the
release serial number for the BIOS and firmware (when available), as
that is easier to parse and compare than the version strings.

We're going to greatly extend the use of the ThinkPad DMI data through
quirk lists, so it is best to be quite strict and make sure what we
get from DMI is exactly what we expect, otherwise quirk matching may
result in quite insane things.

IBM (and Lenovo, at least for the ThinkPad line) uses this schema for
firmware versioning and model:

Firmware model: Two digits, [0-9A-Z]

Firmware version: AABBCCDD, where
  AA = firmware model, see above
  BB = "ET" for BIOS, "HT" for EC
  CC = release version, two digits, [0-9A-Z],
       "00" < "09" < "0A" < "10" < "A0" < "ZZ"
  DD = "WW"

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/platform/x86/thinkpad_acpi.c