drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / power / tuxonice_checksum.h
CommitLineData
6fa3eb70
S
1/*
2 * kernel/power/tuxonice_checksum.h
3 *
4 * Copyright (C) 2006-2010 Nigel Cunningham (nigel at tuxonice net)
5 *
6 * This file is released under the GPLv2.
7 *
8 * This file contains data checksum routines for TuxOnIce,
9 * using cryptoapi. They are used to locate any modifications
10 * made to pageset 2 while we're saving it.
11 */
12
13#if defined(CONFIG_TOI_CHECKSUM)
14extern int toi_checksum_init(void);
15extern void toi_checksum_exit(void);
16void check_checksums(void);
17int allocate_checksum_pages(void);
18void free_checksum_pages(void);
19char *tuxonice_get_next_checksum(void);
20int tuxonice_calc_checksum(struct page *page, char *checksum_locn);
21#else
22static inline int toi_checksum_init(void)
23{
24 return 0;
25}
26
27static inline void toi_checksum_exit(void)
28{
29}
30
31static inline void check_checksums(void)
32{
33};
34
35static inline int allocate_checksum_pages(void)
36{
37 return 0;
38};
39
40static inline void free_checksum_pages(void)
41{
42};
43
44static inline char *tuxonice_get_next_checksum(void)
45{
46 return NULL;
47};
48
49static inline int tuxonice_calc_checksum(struct page *page, char *checksum_locn)
50{
51 return 0;
52}
53#endif