diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-03-30 15:46:44 -0400 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-03-30 15:46:44 -0400 |
commit | e7a19c5624c66afa8118b10cd59f87ee407646bc (patch) | |
tree | 4e70f99aa84cdd18f13c673980afebe4a268359e /drivers/hwmon | |
parent | ec19920944246b4686c7772a58507a20c361dc9d (diff) |
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/hwmon')
-rw-r--r-- | drivers/hwmon/fschmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/fschmd.c b/drivers/hwmon/fschmd.c index d07f4ef75092..b557f2ebd9ae 100644 --- a/drivers/hwmon/fschmd.c +++ b/drivers/hwmon/fschmd.c | |||
@@ -856,7 +856,7 @@ static struct file_operations watchdog_fops = { | |||
856 | 856 | ||
857 | /* DMI decode routine to read voltage scaling factors from special DMI tables, | 857 | /* DMI decode routine to read voltage scaling factors from special DMI tables, |
858 | which are available on FSC machines with an fscher or later chip. */ | 858 | which are available on FSC machines with an fscher or later chip. */ |
859 | static void fschmd_dmi_decode(const struct dmi_header *header) | 859 | static void fschmd_dmi_decode(const struct dmi_header *header, void *dummy) |
860 | { | 860 | { |
861 | int i, mult[3] = { 0 }, offset[3] = { 0 }, vref = 0, found = 0; | 861 | int i, mult[3] = { 0 }, offset[3] = { 0 }, vref = 0, found = 0; |
862 | 862 | ||
@@ -991,7 +991,7 @@ static int fschmd_probe(struct i2c_client *client, | |||
991 | 991 | ||
992 | /* Read the special DMI table for fscher and newer chips */ | 992 | /* Read the special DMI table for fscher and newer chips */ |
993 | if ((kind == fscher || kind >= fschrc) && dmi_vref == -1) { | 993 | if ((kind == fscher || kind >= fschrc) && dmi_vref == -1) { |
994 | dmi_walk(fschmd_dmi_decode); | 994 | dmi_walk(fschmd_dmi_decode, NULL); |
995 | if (dmi_vref == -1) { | 995 | if (dmi_vref == -1) { |
996 | dev_warn(&client->dev, | 996 | dev_warn(&client->dev, |
997 | "Couldn't get voltage scaling factors from " | 997 | "Couldn't get voltage scaling factors from " |