diff options
Diffstat (limited to 'arch/arm/mach-pxa/spitz_pm.c')
| -rw-r--r-- | arch/arm/mach-pxa/spitz_pm.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-pxa/spitz_pm.c b/arch/arm/mach-pxa/spitz_pm.c index 4209ddf6da61..7fe74067d85f 100644 --- a/arch/arm/mach-pxa/spitz_pm.c +++ b/arch/arm/mach-pxa/spitz_pm.c | |||
| @@ -22,11 +22,10 @@ | |||
| 22 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
| 23 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
| 24 | 24 | ||
| 25 | #include <mach/sharpsl.h> | ||
| 26 | #include <mach/spitz.h> | 25 | #include <mach/spitz.h> |
| 27 | #include <mach/pxa27x.h> | 26 | #include <mach/pxa27x.h> |
| 27 | #include <mach/sharpsl_pm.h> | ||
| 28 | 28 | ||
| 29 | #include "sharpsl.h" | ||
| 30 | #include "generic.h" | 29 | #include "generic.h" |
| 31 | 30 | ||
| 32 | #define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ | 31 | #define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */ |
| @@ -178,11 +177,11 @@ unsigned long spitzpm_read_devdata(int type) | |||
| 178 | case SHARPSL_STATUS_ACIN: | 177 | case SHARPSL_STATUS_ACIN: |
| 179 | return (((~GPLR(SPITZ_GPIO_AC_IN)) & GPIO_bit(SPITZ_GPIO_AC_IN)) != 0); | 178 | return (((~GPLR(SPITZ_GPIO_AC_IN)) & GPIO_bit(SPITZ_GPIO_AC_IN)) != 0); |
| 180 | case SHARPSL_STATUS_LOCK: | 179 | case SHARPSL_STATUS_LOCK: |
| 181 | return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_batlock); | 180 | return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock); |
| 182 | case SHARPSL_STATUS_CHRGFULL: | 181 | case SHARPSL_STATUS_CHRGFULL: |
| 183 | return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_batfull); | 182 | return gpio_get_value(sharpsl_pm.machinfo->gpio_batfull); |
| 184 | case SHARPSL_STATUS_FATAL: | 183 | case SHARPSL_STATUS_FATAL: |
| 185 | return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_fatal); | 184 | return gpio_get_value(sharpsl_pm.machinfo->gpio_fatal); |
| 186 | case SHARPSL_ACIN_VOLT: | 185 | case SHARPSL_ACIN_VOLT: |
| 187 | return sharpsl_pm_pxa_read_max1111(MAX1111_ACIN_VOLT); | 186 | return sharpsl_pm_pxa_read_max1111(MAX1111_ACIN_VOLT); |
| 188 | case SHARPSL_BATT_TEMP: | 187 | case SHARPSL_BATT_TEMP: |
| @@ -212,8 +211,6 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = { | |||
| 212 | .should_wakeup = spitz_should_wakeup, | 211 | .should_wakeup = spitz_should_wakeup, |
| 213 | #if defined(CONFIG_LCD_CORGI) | 212 | #if defined(CONFIG_LCD_CORGI) |
| 214 | .backlight_limit = corgi_lcd_limit_intensity, | 213 | .backlight_limit = corgi_lcd_limit_intensity, |
| 215 | #elif defined(CONFIG_BACKLIGHT_CORGI) | ||
| 216 | .backlight_limit = corgibl_limit_intensity, | ||
| 217 | #endif | 214 | #endif |
| 218 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, | 215 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, |
| 219 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, | 216 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, |
