0eefbb71a330741a16b98502bf68f6be6d99c43a
[openwrt/openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1152--pcf50633-Add-exported-symbol-to-the-header-file.patch
1 From 555ac92637a4343511a38cd4ff70d1aab6284d60 Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <ich@tamarin.(none)>
3 Date: Tue, 13 May 2008 18:53:40 +0100
4 Subject: [PATCH] [pcf50633] Add exported symbol to the header file
5 Reading the battery volt using the ADC was an exported symbol
6 but not in the header file, add it.
7
8 Signed-Off-By: Holger Freyther <zecke@openmoko.org>
9 ---
10 include/linux/pcf50633.h | 3 +++
11 1 files changed, 3 insertions(+), 0 deletions(-)
12
13 diff --git a/include/linux/pcf50633.h b/include/linux/pcf50633.h
14 index f427985..05b55f3 100644
15 --- a/include/linux/pcf50633.h
16 +++ b/include/linux/pcf50633.h
17 @@ -64,6 +64,9 @@ pcf50633_charge_enable(struct pcf50633_data *pcf, int on);
18 extern void
19 pcf50633_backlight_resume(struct pcf50633_data *pcf);
20
21 +extern u_int16_t
22 +pcf50633_battvolt(struct pcf50633_data *pcf);
23 +
24 #define PCF50633_FEAT_EXTON 0x00000001 /* not yet supported */
25 #define PCF50633_FEAT_MBC 0x00000002
26 #define PCF50633_FEAT_BBC 0x00000004 /* not yet supported */
27 --
28 1.5.6.5
29