Skip to content

Commit

Permalink
sh: hp6xx: APM build fix and new battery values.
Browse files Browse the repository at this point in the history
Build fixes for the hp6xx APM code, as well as some adjustments for
the battery values.

Signed-off-by: Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Kristoffer Ericson authored and Paul Mundt committed Sep 21, 2007
1 parent 9dd3f22 commit 8c8ee82
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions arch/sh/boards/hp6xx/hp6xx_apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#define APM_CRITICAL 10
#define APM_LOW 30

#define HP680_BATTERY_MAX 875
#define HP680_BATTERY_MIN 600
#define HP680_BATTERY_AC_ON 900
#define HP680_BATTERY_MAX 898
#define HP680_BATTERY_MIN 486
#define HP680_BATTERY_AC_ON 1023

#define MODNAME "hp6x0_apm"

Expand Down Expand Up @@ -65,7 +65,7 @@ static void hp6x0_apm_get_power_status(struct apm_power_info *info)

static irqreturn_t hp6x0_apm_interrupt(int irq, void *dev)
{
if (!apm_suspended)
if (!APM_DISABLED)
apm_queue_event(APM_USER_SUSPEND);

return IRQ_HANDLED;
Expand All @@ -91,7 +91,6 @@ static int __init hp6x0_apm_init(void)
static void __exit hp6x0_apm_exit(void)
{
free_irq(HP680_BTN_IRQ, 0);
apm_get_info = NULL;
}

module_init(hp6x0_apm_init);
Expand Down

0 comments on commit 8c8ee82

Please sign in to comment.