mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eric Piel <eric.piel@tremplin-utc.net>
To: Andrew Morton <akpm@osdl.org>
Cc: Pavel Machek <pavel@suse.cz>,
	kernel list <linux-kernel@vger.kernel.org>,
	Yan Burman <burman.yan@gmail.com>,
	Pau Oliva Fora <pau@eslack.org>
Subject: [PATCH] LIS3LV02D: Conform to the new ACPI API
Date: Sun, 26 Oct 2008 09:53:56 +0100	[thread overview]
Message-ID: <49043024.2010008@tremplin-utc.net> (raw)
In-Reply-To: <20081022154459.GA26291@elf.ucw.cz>


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


  parent reply	other threads:[~2008-10-26  8:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-22 15:44 [PATCH] LIS3LV02Dx Accelerometer driver Pavel Machek
2008-10-22 17:54 ` Éric Piel
2008-10-26  8:53 ` Eric Piel [this message]
2008-10-27  6:39 ` Andrew Morton
2008-10-27  9:01   ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49043024.2010008@tremplin-utc.net \
    --to=eric.piel@tremplin-utc.net \
    --cc=akpm@osdl.org \
    --cc=burman.yan@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pau@eslack.org \
    --cc=pavel@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome