Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75673
b: refs/heads/master
c: f89e3b0
h: refs/heads/master
i:
  75671: b0c41d8
v: v3
  • Loading branch information
Len Brown committed Jan 24, 2008
1 parent c59dfca commit 4d680b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81b4e1f6269cea345f17d3aa349ec9beb31a8cd3
refs/heads/master: f89e3b0620a0dc19f313218f55373b9361142203
8 changes: 8 additions & 0 deletions trunk/drivers/firmware/dmi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,11 @@ int dmi_get_year(int field)
return year;
}

/**
* dmi_get_slot - return dmi_ident[slot]
* @slot: index into dmi_ident[]
*/
char *dmi_get_slot(int slot)
{
return(dmi_ident[slot]);
}
2 changes: 2 additions & 0 deletions trunk/include/linux/dmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ extern void dmi_scan_machine(void);
extern int dmi_get_year(int field);
extern int dmi_name_in_vendors(const char *str);
extern int dmi_available;
extern char *dmi_get_slot(int slot);

#else

Expand All @@ -89,6 +90,7 @@ static inline const struct dmi_device * dmi_find_device(int type, const char *na
static inline int dmi_get_year(int year) { return 0; }
static inline int dmi_name_in_vendors(const char *s) { return 0; }
#define dmi_available 0
static inline char *dmi_get_slot(int slot) { return NULL; }

#endif

Expand Down

0 comments on commit 4d680b1

Please sign in to comment.