diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2008-05-30 16:32:35 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2008-05-30 16:32:35 +0000 |
commit | 9285574b20298c1499aedee162f5659e1e356862 (patch) | |
tree | d5f50bfbd765bba8d95d15fa170f7d487a7d1d49 /target/linux/ixp4xx/patches-2.6.25/011-rtc_pcf8563_new_style.patch | |
parent | f664b7cb17d20e7a32e9bd07e85c9bb7ecb9e2ce (diff) | |
download | mtk-20170518-9285574b20298c1499aedee162f5659e1e356862.zip mtk-20170518-9285574b20298c1499aedee162f5659e1e356862.tar.gz mtk-20170518-9285574b20298c1499aedee162f5659e1e356862.tar.bz2 |
refresh ixp4xx patches to match upstream style
SVN-Revision: 11297
Diffstat (limited to 'target/linux/ixp4xx/patches-2.6.25/011-rtc_pcf8563_new_style.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-2.6.25/011-rtc_pcf8563_new_style.patch | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.25/011-rtc_pcf8563_new_style.patch b/target/linux/ixp4xx/patches-2.6.25/011-rtc_pcf8563_new_style.patch index f0ce41f..400da84 100644 --- a/target/linux/ixp4xx/patches-2.6.25/011-rtc_pcf8563_new_style.patch +++ b/target/linux/ixp4xx/patches-2.6.25/011-rtc_pcf8563_new_style.patch @@ -2,10 +2,8 @@ drivers/rtc/rtc-pcf8563.c | 109 +++++++++++++--------------------------------- 1 file changed, 32 insertions(+), 77 deletions(-) -Index: linux-2.6.25.4/drivers/rtc/rtc-pcf8563.c -=================================================================== ---- linux-2.6.25.4.orig/drivers/rtc/rtc-pcf8563.c -+++ linux-2.6.25.4/drivers/rtc/rtc-pcf8563.c +--- a/drivers/rtc/rtc-pcf8563.c ++++ b/drivers/rtc/rtc-pcf8563.c @@ -18,17 +18,7 @@ #include <linux/bcd.h> #include <linux/rtc.h> @@ -25,7 +23,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-pcf8563.c #define PCF8563_REG_ST1 0x00 /* status */ #define PCF8563_REG_ST2 0x01 -@@ -53,8 +43,10 @@ I2C_CLIENT_INSMOD; +@@ -53,8 +43,10 @@ #define PCF8563_SC_LV 0x80 /* low voltage */ #define PCF8563_MO_C 0x80 /* century */ @@ -37,7 +35,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-pcf8563.c /* * The meaning of MO_C bit varies by the chip type. * From PCF8563 datasheet: this bit is toggled when the years -@@ -72,16 +64,13 @@ struct pcf8563 { +@@ -72,16 +64,13 @@ int c_polarity; /* 0: MO_C=1 means 19xx, otherwise MO_C=1 means 20xx */ }; @@ -55,7 +53,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-pcf8563.c unsigned char buf[13] = { PCF8563_REG_ST1 }; struct i2c_msg msgs[] = { -@@ -138,7 +127,7 @@ static int pcf8563_get_datetime(struct i +@@ -138,7 +127,7 @@ static int pcf8563_set_datetime(struct i2c_client *client, struct rtc_time *tm) { @@ -64,7 +62,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-pcf8563.c int i, err; unsigned char buf[9]; -@@ -257,100 +246,66 @@ static const struct rtc_class_ops pcf856 +@@ -257,100 +246,66 @@ .set_time = pcf8563_rtc_set_time, }; |