Messages in this thread Patch in this message | | | Date | Sun, 26 Oct 2008 09:53:56 +0100 | From | Eric Piel <> | Subject | [PATCH] LIS3LV02D: Conform to the new ACPI API |
| |
ACPI API has been updated to allow 64bit return values in acpi_evaluate_integer(). Update also the lis3lv02d driver so that it works with 2.6.28-rc1.
Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net> --- drivers/hwmon/lis3lv02d.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/hwmon/lis3lv02d.c index 06d544e..752b5c4 100644 --- a/drivers/hwmon/lis3lv02d.c +++ b/drivers/hwmon/lis3lv02d.c @@ -112,7 +112,7 @@ static acpi_status lis3lv02d_acpi_read(acpi_handle handle, int reg, u8 *ret) { union acpi_object arg0 = { ACPI_TYPE_INTEGER }; struct acpi_object_list args = { 1, &arg0 }; - unsigned long lret; + unsigned long long lret; acpi_status status;
arg0.integer.value = reg; @@ -132,7 +132,7 @@ static acpi_status lis3lv02d_acpi_read(acpi_handle handle, int reg, u8 *ret) */ static acpi_status lis3lv02d_acpi_write(acpi_handle handle, int reg, u8 val) { - unsigned long ret; /* Not used when writting */ + unsigned long long ret; /* Not used when writting */ union acpi_object in_obj[2]; struct acpi_object_list args = { 2, in_obj };
-- 1.6.0.2
| |