[PATCH] LIS3LV02D: Conform to the new ACPI API

From: Eric Piel
Date: Sun Oct 26 2008 - 04:54:21 EST



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@xxxxxxxxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/