spitz pm: move definitions to header file
Subsystems (3)
This will allow me to use the definitions from spitz_battery.c module.
Signed-off-by Pavel Machek <[email protected]>
arch/arm/mach-pxa/include/mach/sharpsl_pm.h +18 -0
@@ -110,4 +110,22 @@ void sharpsl_pm_led(int val);int sharpsl_pm_pxa_read_max1111 (int channel);void corgi_lcd_limit_intensity (int limit); + +/* +* Constants +*/ +#define SHARPSL_CHARGE_ON_TIME_INTERVAL (msecs_to_jiffies(1*60*1000))/* 1 min */ +#define SHARPSL_CHARGE_FINISH_TIME (msecs_to_jiffies(10*60*1000))/* 10 min */ +#define SHARPSL_BATCHK_TIME (msecs_to_jiffies(15*1000))/* 15 sec */ +#define SHARPSL_BATCHK_TIME_SUSPEND (60*10)/* 10 min */ + +#define SHARPSL_WAIT_CO_TIME 15/* 15 sec */ +#define SHARPSL_WAIT_DISCHARGE_ON 100/* 100 msec */ +#define SHARPSL_CHECK_BATTERY_WAIT_TIME_TEMP 10/* 10 msec */ +#define SHARPSL_CHECK_BATTERY_WAIT_TIME_VOLT 10/* 10 msec */ +#define SHARPSL_CHECK_BATTERY_WAIT_TIME_ACIN 10/* 10 msec */ +#define SHARPSL_CHARGE_WAIT_TIME 15/* 15 msec */ +#define SHARPSL_CHARGE_CO_CHECK_TIME 5/* 5 msec */ +#define SHARPSL_CHARGE_RETRY_CNT 1/* eqv. 10 min */ +#endif
arch/arm/mach-pxa/sharpsl_pm.c +0 -17
@@ -32,23 +32,6 @@#include <mach/sharpsl_pm.h> /* -* Constants -*/ -#define SHARPSL_CHARGE_ON_TIME_INTERVAL (msecs_to_jiffies(1*60*1000))/* 1 min */ -#define SHARPSL_CHARGE_FINISH_TIME (msecs_to_jiffies(10*60*1000))/* 10 min */ -#define SHARPSL_BATCHK_TIME (msecs_to_jiffies(15*1000))/* 15 sec */ -#define SHARPSL_BATCHK_TIME_SUSPEND (60*10)/* 10 min */ - -#define SHARPSL_WAIT_CO_TIME 15/* 15 sec */ -#define SHARPSL_WAIT_DISCHARGE_ON 100/* 100 msec */ -#define SHARPSL_CHECK_BATTERY_WAIT_TIME_TEMP 10/* 10 msec */ -#define SHARPSL_CHECK_BATTERY_WAIT_TIME_VOLT 10/* 10 msec */ -#define SHARPSL_CHECK_BATTERY_WAIT_TIME_ACIN 10/* 10 msec */ -#define SHARPSL_CHARGE_WAIT_TIME 15/* 15 msec */ -#define SHARPSL_CHARGE_CO_CHECK_TIME 5/* 5 msec */ -#define SHARPSL_CHARGE_RETRY_CNT 1/* eqv. 10 min */ - -/* * Prototypes */ #ifdef CONFIG_PM
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html