X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fpda_power.h;h=cb7d10f3076343f2e60e5a853411c05aefd6eb0f;hb=5ed487bc2c44ca4e9668ef9cb54c830e2a9fac47;hp=1375f15797e7d919970735796a6d7093df0cfec7;hpb=5be808467347fc99bdd216883c5dbd123d6ad9d6;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/pda_power.h b/include/linux/pda_power.h index 1375f15797e..cb7d10f3076 100644 --- a/include/linux/pda_power.h +++ b/include/linux/pda_power.h @@ -16,16 +16,21 @@ #define PDA_POWER_CHARGE_AC (1 << 0) #define PDA_POWER_CHARGE_USB (1 << 1) +struct device; + struct pda_power_pdata { + int (*init)(struct device *dev); int (*is_ac_online)(void); int (*is_usb_online)(void); void (*set_charge)(int flags); + void (*exit)(struct device *dev); char **supplied_to; size_t num_supplicants; unsigned int wait_for_status; /* msecs, default is 500 */ unsigned int wait_for_charger; /* msecs, default is 500 */ + unsigned int polling_interval; /* msecs, default is 2000 */ }; #endif /* __PDA_POWER_H__ */