diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-03-30 21:46:44 +0200 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-03-30 21:46:44 +0200 |
commit | e7a19c5624c66afa8118b10cd59f87ee407646bc (patch) | |
tree | 4e70f99aa84cdd18f13c673980afebe4a268359e /drivers/platform | |
parent | hwmon: Define a standard interface for chassis intrusion detection (diff) | |
download | linux-e7a19c5624c66afa8118b10cd59f87ee407646bc.tar.xz linux-e7a19c5624c66afa8118b10cd59f87ee407646bc.zip |
dmi: Let dmi_walk() users pass private data
At the moment, dmi_walk() lacks flexibility, users can't pass data to
the callback function. Add a pointer for private data to make this
function more flexible.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/dell-laptop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index 16e11c2ee19a..af9f43021172 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c @@ -103,7 +103,7 @@ static void parse_da_table(const struct dmi_header *dm) da_num_tokens += tokens; } -static void find_tokens(const struct dmi_header *dm) +static void find_tokens(const struct dmi_header *dm, void *dummy) { switch (dm->type) { case 0xd4: /* Indexed IO */ @@ -356,7 +356,7 @@ static int __init dell_init(void) if (!dmi_check_system(dell_device_table)) return -ENODEV; - dmi_walk(find_tokens); + dmi_walk(find_tokens, NULL); if (!da_tokens) { printk(KERN_INFO "dell-laptop: Unable to find dmi tokens\n"); |