thinkpad-acpi: store fw version with strict checking
commite9bb407c2514dbd5127344c79e90d0cebb4b7ac4
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 6 Jun 2009 15:49:52 +0000 (6 12:49 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 6 Jun 2009 15:49:52 +0000 (6 12:49 -0300)
tree4a9f8b6e134e5571c4b79d8bc977f92785c619c2
parent6293e737156e1872de9e36b117afc234a607d537
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