lkml.org 
[lkml]   [2008]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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


\
 
 \ /
  Last update: 2008-10-26 09:57    [W:0.060 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site