]> Git Repo - linux.git/commit
dmi: add support for exact DMI matches in addition to substring matching
authorJani Nikula <[email protected]>
Wed, 3 Jul 2013 22:05:02 +0000 (15:05 -0700)
committerLinus Torvalds <[email protected]>
Wed, 3 Jul 2013 23:07:42 +0000 (16:07 -0700)
commit5017b2851373ee15c7035151853bb1448800cae2
treeb0f60670bbf5658a44a51930e8eb728b0ea70a20
parent45c64940c8bb64a042464ecec89d95eb4cce9b07
dmi: add support for exact DMI matches in addition to substring matching

dmi_match() considers a substring match to be a successful match.  This is
not always sufficient to distinguish between DMI data for different
systems.  Add support for exact string matching using strcmp() in addition
to the substring matching using strstr().

The specific use case in the i915 driver is to allow us to use an exact
match for D510MO, without also incorrectly matching D510MOV:

  {
.ident = "Intel D510MO",
.matches = {
DMI_MATCH(DMI_BOARD_VENDOR, "Intel"),
DMI_EXACT_MATCH(DMI_BOARD_NAME, "D510MO"),
},
  }

Signed-off-by: Jani Nikula <[email protected]>
Cc: <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Cornel Panceac <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/firmware/dmi_scan.c
include/linux/mod_devicetable.h
This page took 0.057339 seconds and 4 git commands to generate.