diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-11-03 12:29:20 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2008-02-07 20:39:40 -0500 |
commit | 7fce084a0b3e2bb8caef919f8f36065953655bb5 (patch) | |
tree | a5bf95b6321ec488dc8a0667b652bb50479a32da /include | |
parent | df922075f2a55b1ae71a6fe589c1cc1b91381f4f (diff) |
dmi: Let drivers walk the DMI table
Let drivers walk the DMI table for their own needs. Some drivers need
data stored in OEM-specific DMI records for proper operation.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dmi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/dmi.h b/include/linux/dmi.h index b1251b2af568..bbc9992ec374 100644 --- a/include/linux/dmi.h +++ b/include/linux/dmi.h | |||
@@ -79,6 +79,7 @@ extern void dmi_scan_machine(void); | |||
79 | extern int dmi_get_year(int field); | 79 | extern int dmi_get_year(int field); |
80 | extern int dmi_name_in_vendors(const char *str); | 80 | extern int dmi_name_in_vendors(const char *str); |
81 | extern int dmi_available; | 81 | extern int dmi_available; |
82 | extern int dmi_walk(void (*decode)(const struct dmi_header *)); | ||
82 | 83 | ||
83 | #else | 84 | #else |
84 | 85 | ||
@@ -89,6 +90,8 @@ static inline const struct dmi_device * dmi_find_device(int type, const char *na | |||
89 | static inline int dmi_get_year(int year) { return 0; } | 90 | static inline int dmi_get_year(int year) { return 0; } |
90 | static inline int dmi_name_in_vendors(const char *s) { return 0; } | 91 | static inline int dmi_name_in_vendors(const char *s) { return 0; } |
91 | #define dmi_available 0 | 92 | #define dmi_available 0 |
93 | static inline int dmi_walk(void (*decode)(const struct dmi_header *)) | ||
94 | { return -1; } | ||
92 | 95 | ||
93 | #endif | 96 | #endif |
94 | 97 | ||