diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-11 22:18:45 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-11 22:18:45 -0400 |
| commit | 19ad7ae47e4ce4eb2a583e437d653a96da7897ac (patch) | |
| tree | 699fda69476d256aae62e44baf7f98495a353204 /include/linux | |
| parent | 1ce48904285fe4b0298864f9153a8502ebeac35c (diff) | |
| parent | 1855256c497ecfefc730df6032243f26855ce52c (diff) | |
Merge branch 'dmi-const' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6
* 'dmi-const' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6:
drivers/firmware: const-ify DMI API and internals
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dmi.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/linux/dmi.h b/include/linux/dmi.h index b8ac7b01c45e..00fc7a9c35ec 100644 --- a/include/linux/dmi.h +++ b/include/linux/dmi.h | |||
| @@ -54,7 +54,7 @@ struct dmi_strmatch { | |||
| 54 | }; | 54 | }; |
| 55 | 55 | ||
| 56 | struct dmi_system_id { | 56 | struct dmi_system_id { |
| 57 | int (*callback)(struct dmi_system_id *); | 57 | int (*callback)(const struct dmi_system_id *); |
| 58 | const char *ident; | 58 | const char *ident; |
| 59 | struct dmi_strmatch matches[4]; | 59 | struct dmi_strmatch matches[4]; |
| 60 | void *driver_data; | 60 | void *driver_data; |
| @@ -71,22 +71,22 @@ struct dmi_device { | |||
| 71 | 71 | ||
| 72 | #ifdef CONFIG_DMI | 72 | #ifdef CONFIG_DMI |
| 73 | 73 | ||
| 74 | extern int dmi_check_system(struct dmi_system_id *list); | 74 | extern int dmi_check_system(const struct dmi_system_id *list); |
| 75 | extern char * dmi_get_system_info(int field); | 75 | extern const char * dmi_get_system_info(int field); |
| 76 | extern struct dmi_device * dmi_find_device(int type, const char *name, | 76 | extern const struct dmi_device * dmi_find_device(int type, const char *name, |
| 77 | struct dmi_device *from); | 77 | const struct dmi_device *from); |
| 78 | extern void dmi_scan_machine(void); | 78 | 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(char *str); | 80 | extern int dmi_name_in_vendors(const char *str); |
| 81 | 81 | ||
| 82 | #else | 82 | #else |
| 83 | 83 | ||
| 84 | static inline int dmi_check_system(struct dmi_system_id *list) { return 0; } | 84 | static inline int dmi_check_system(const struct dmi_system_id *list) { return 0; } |
| 85 | static inline char * dmi_get_system_info(int field) { return NULL; } | 85 | static inline const char * dmi_get_system_info(int field) { return NULL; } |
| 86 | static inline struct dmi_device * dmi_find_device(int type, const char *name, | 86 | static inline const struct dmi_device * dmi_find_device(int type, const char *name, |
| 87 | struct dmi_device *from) { return NULL; } | 87 | const struct dmi_device *from) { return NULL; } |
| 88 | static inline int dmi_get_year(int year) { return 0; } | 88 | static inline int dmi_get_year(int year) { return 0; } |
| 89 | static inline int dmi_name_in_vendors(char *s) { return 0; } | 89 | static inline int dmi_name_in_vendors(const char *s) { return 0; } |
| 90 | 90 | ||
| 91 | #endif | 91 | #endif |
| 92 | 92 | ||
