diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-12-10 14:07:21 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-12-29 07:39:34 -0500 |
commit | d61c72e52b98411d1cfef1fdb3f5a8bb070f8966 (patch) | |
tree | a32263f85d0b518cac00cf0758e738eee52a7f73 /include | |
parent | 5ccfca974f3ce3c33be72f1fcb2b42747714ec79 (diff) | |
download | op-kernel-dev-d61c72e52b98411d1cfef1fdb3f5a8bb070f8966.zip op-kernel-dev-d61c72e52b98411d1cfef1fdb3f5a8bb070f8966.tar.gz |
DMI: add dmi_match
Add a wrapper for testing system_info which will handle also NULL
system infos.
This will be used by the ata PIIX driver.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alexandru Romanescu <a_romanescu@yahoo.co.uk>
Cc: Tejun Heo <tj@kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jgarzik@redhat.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 2bfda17..3416190 100644 --- a/include/linux/dmi.h +++ b/include/linux/dmi.h @@ -47,6 +47,7 @@ extern int dmi_name_in_vendors(const char *str); extern int dmi_name_in_serial(const char *str); extern int dmi_available; extern int dmi_walk(void (*decode)(const struct dmi_header *)); +extern bool dmi_match(enum dmi_field f, const char *str); #else @@ -61,6 +62,8 @@ static inline int dmi_name_in_serial(const char *s) { return 0; } #define dmi_available 0 static inline int dmi_walk(void (*decode)(const struct dmi_header *)) { return -1; } +static inline bool dmi_match(enum dmi_field f, const char *str) + { return false; } #endif |