diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2008-10-10 02:22:59 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-11 02:47:33 -0400 |
commit | 27663c5855b10af9ec67bc7dfba001426ba21222 (patch) | |
tree | 2b8c520bb57a792045d7d072398a4d840fada6c0 /drivers/misc/fujitsu-laptop.c | |
parent | 3fa8749e584b55f1180411ab1b51117190bac1e5 (diff) |
ACPI: Change acpi_evaluate_integer to support 64-bit on 32-bit kernels
As of version 2.0, ACPI can return 64-bit integers. The current
acpi_evaluate_integer only supports 64-bit integers on 64-bit platforms.
Change the argument to take a pointer to an acpi_integer so we support
64-bit integers on all platforms.
lenb: replaced use of "acpi_integer" with "unsigned long long"
lenb: fixed bug in acpi_thermal_trips_update()
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc/fujitsu-laptop.c')
-rw-r--r-- | drivers/misc/fujitsu-laptop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/fujitsu-laptop.c b/drivers/misc/fujitsu-laptop.c index 3e56203e4947..efd395a64720 100644 --- a/drivers/misc/fujitsu-laptop.c +++ b/drivers/misc/fujitsu-laptop.c | |||
@@ -224,7 +224,7 @@ static int set_lcd_level_alt(int level) | |||
224 | 224 | ||
225 | static int get_lcd_level(void) | 225 | static int get_lcd_level(void) |
226 | { | 226 | { |
227 | unsigned long state = 0; | 227 | unsigned long long state = 0; |
228 | acpi_status status = AE_OK; | 228 | acpi_status status = AE_OK; |
229 | 229 | ||
230 | vdbg_printk(FUJLAPTOP_DBG_TRACE, "get lcd level via GBLL\n"); | 230 | vdbg_printk(FUJLAPTOP_DBG_TRACE, "get lcd level via GBLL\n"); |
@@ -246,7 +246,7 @@ static int get_lcd_level(void) | |||
246 | 246 | ||
247 | static int get_max_brightness(void) | 247 | static int get_max_brightness(void) |
248 | { | 248 | { |
249 | unsigned long state = 0; | 249 | unsigned long long state = 0; |
250 | acpi_status status = AE_OK; | 250 | acpi_status status = AE_OK; |
251 | 251 | ||
252 | vdbg_printk(FUJLAPTOP_DBG_TRACE, "get max lcd level via RBLL\n"); | 252 | vdbg_printk(FUJLAPTOP_DBG_TRACE, "get max lcd level via RBLL\n"); |
@@ -263,7 +263,7 @@ static int get_max_brightness(void) | |||
263 | 263 | ||
264 | static int get_lcd_level_alt(void) | 264 | static int get_lcd_level_alt(void) |
265 | { | 265 | { |
266 | unsigned long state = 0; | 266 | unsigned long long state = 0; |
267 | acpi_status status = AE_OK; | 267 | acpi_status status = AE_OK; |
268 | 268 | ||
269 | vdbg_printk(FUJLAPTOP_DBG_TRACE, "get lcd level via GBLS\n"); | 269 | vdbg_printk(FUJLAPTOP_DBG_TRACE, "get lcd level via GBLS\n"); |
@@ -384,7 +384,7 @@ static ssize_t store_lcd_level(struct device *dev, | |||
384 | 384 | ||
385 | static int get_irb(void) | 385 | static int get_irb(void) |
386 | { | 386 | { |
387 | unsigned long state = 0; | 387 | unsigned long long state = 0; |
388 | acpi_status status = AE_OK; | 388 | acpi_status status = AE_OK; |
389 | 389 | ||
390 | vdbg_printk(FUJLAPTOP_DBG_TRACE, "Get irb\n"); | 390 | vdbg_printk(FUJLAPTOP_DBG_TRACE, "Get irb\n"); |