From 30d336cfc5e67d66ed19a84223a9215f42c30135 Mon Sep 17 00:00:00 2001 From: kaloz Date: Fri, 30 May 2008 16:32:35 +0000 Subject: refresh ixp4xx patches to match upstream style git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11297 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-2.6.25/010-rtc_isl1208_new_style.patch | 32 ++++++++++------------ 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'target/linux/ixp4xx/patches-2.6.25/010-rtc_isl1208_new_style.patch') diff --git a/target/linux/ixp4xx/patches-2.6.25/010-rtc_isl1208_new_style.patch b/target/linux/ixp4xx/patches-2.6.25/010-rtc_isl1208_new_style.patch index b29a6a264..e5eac05e2 100644 --- a/target/linux/ixp4xx/patches-2.6.25/010-rtc_isl1208_new_style.patch +++ b/target/linux/ixp4xx/patches-2.6.25/010-rtc_isl1208_new_style.patch @@ -2,10 +2,8 @@ drivers/rtc/rtc-isl1208.c | 357 +++++++++++++++++++++------------------------- 1 file changed, 170 insertions(+), 187 deletions(-) -Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c -=================================================================== ---- linux-2.6.25.4.orig/drivers/rtc/rtc-isl1208.c -+++ linux-2.6.25.4/drivers/rtc/rtc-isl1208.c +--- a/drivers/rtc/rtc-isl1208.c ++++ b/drivers/rtc/rtc-isl1208.c @@ -15,16 +15,15 @@ #include #include @@ -93,7 +91,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c BUG_ON(reg > ISL1208_REG_USR2); BUG_ON(reg + len > ISL1208_REG_USR2 + 1); -@@ -103,15 +84,14 @@ isl1208_i2c_read_regs(struct i2c_client +@@ -103,15 +84,14 @@ /* block write */ static int isl1208_i2c_set_regs(struct i2c_client *client, u8 reg, u8 const buf[], @@ -111,7 +109,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c BUG_ON(reg > ISL1208_REG_USR2); BUG_ON(reg + len > ISL1208_REG_USR2 + 1); -@@ -125,7 +105,8 @@ isl1208_i2c_set_regs(struct i2c_client * +@@ -125,7 +105,8 @@ } /* simple check to see wether we have a isl1208 */ @@ -121,7 +119,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c { u8 regs[ISL1208_RTC_SECTION_LEN] = { 0, }; u8 zero_mask[ISL1208_RTC_SECTION_LEN] = { -@@ -139,24 +120,29 @@ static int isl1208_i2c_validate_client(s +@@ -139,24 +120,29 @@ return ret; for (i = 0; i < ISL1208_RTC_SECTION_LEN; ++i) { @@ -157,7 +155,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c /* The 6bit value in the ATR register controls the load * capacitance C_load * in steps of 0.25pF -@@ -169,51 +155,54 @@ static int isl1208_i2c_get_atr(struct i2 +@@ -169,51 +155,54 @@ * */ @@ -225,7 +223,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c { struct i2c_client *const client = to_i2c_client(dev); int sr, dtr, atr, usr; -@@ -230,20 +219,19 @@ static int isl1208_rtc_proc(struct devic +@@ -230,20 +219,19 @@ (sr & ISL1208_REG_SR_ALM) ? " ALM" : "", (sr & ISL1208_REG_SR_WRTC) ? " WRTC" : "", (sr & ISL1208_REG_SR_XTOSCB) ? " XTOSCB" : "", @@ -249,7 +247,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c usr = isl1208_i2c_get_usr(client); if (usr >= 0) -@@ -252,9 +240,8 @@ static int isl1208_rtc_proc(struct devic +@@ -252,9 +240,8 @@ return 0; } @@ -261,7 +259,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c { int sr; u8 regs[ISL1208_RTC_SECTION_LEN] = { 0, }; -@@ -274,27 +261,30 @@ static int isl1208_i2c_read_time(struct +@@ -274,27 +261,30 @@ tm->tm_sec = BCD2BIN(regs[ISL1208_REG_SC]); tm->tm_min = BCD2BIN(regs[ISL1208_REG_MN]); @@ -299,7 +297,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c { struct rtc_time *const tm = &alarm->time; u8 regs[ISL1208_ALARM_SECTION_LEN] = { 0, }; -@@ -307,7 +297,7 @@ static int isl1208_i2c_read_alarm(struct +@@ -307,7 +297,7 @@ } sr = isl1208_i2c_read_regs(client, ISL1208_REG_SCA, regs, @@ -308,7 +306,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c if (sr < 0) { dev_err(&client->dev, "%s: reading alarm section failed\n", __func__); -@@ -315,23 +305,25 @@ static int isl1208_i2c_read_alarm(struct +@@ -315,23 +305,25 @@ } /* MSB of each alarm register is an enable bit */ @@ -343,7 +341,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c { int sr; u8 regs[ISL1208_RTC_SECTION_LEN] = { 0, }; -@@ -353,7 +345,7 @@ static int isl1208_i2c_set_time(struct i +@@ -353,7 +345,7 @@ } /* set WRTC */ @@ -352,7 +350,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c sr | ISL1208_REG_SR_WRTC); if (sr < 0) { dev_err(&client->dev, "%s: writing SR failed\n", __func__); -@@ -369,7 +361,7 @@ static int isl1208_i2c_set_time(struct i +@@ -369,7 +361,7 @@ } /* clear WRTC again */ @@ -361,7 +359,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c sr & ~ISL1208_REG_SR_WRTC); if (sr < 0) { dev_err(&client->dev, "%s: writing SR failed\n", __func__); -@@ -380,70 +372,69 @@ static int isl1208_i2c_set_time(struct i +@@ -380,70 +372,69 @@ } @@ -460,7 +458,7 @@ Index: linux-2.6.25.4/drivers/rtc/rtc-isl1208.c { int usr = -1; -@@ -460,124 +451,116 @@ static ssize_t isl1208_sysfs_store_usr(s +@@ -460,124 +451,116 @@ return isl1208_i2c_set_usr(to_i2c_client(dev), usr) ? -EIO : count; } -- cgit v1.2.3