drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / power / tuxonice_checksum.h
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)
14 extern int toi_checksum_init(void);
15 extern void toi_checksum_exit(void);
16 void check_checksums(void);
17 int allocate_checksum_pages(void);
18 void free_checksum_pages(void);
19 char *tuxonice_get_next_checksum(void);
20 int tuxonice_calc_checksum(struct page *page, char *checksum_locn);
21 #else
22 static inline int toi_checksum_init(void)
23 {
24 return 0;
25 }
26
27 static inline void toi_checksum_exit(void)
28 {
29 }
30
31 static inline void check_checksums(void)
32 {
33 };
34
35 static inline int allocate_checksum_pages(void)
36 {
37 return 0;
38 };
39
40 static inline void free_checksum_pages(void)
41 {
42 };
43
44 static inline char *tuxonice_get_next_checksum(void)
45 {
46 return NULL;
47 };
48
49 static inline int tuxonice_calc_checksum(struct page *page, char *checksum_locn)
50 {
51 return 0;
52 }
53 #endif