diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 05:12:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:17 -0400 |
commit | 2a4e2b8780c6df42b19c053243dada7fa4d311ee (patch) | |
tree | 4970af3a9ee9c2a8b3e4861ac552cb9262acbaa0 /drivers/rtc | |
parent | dca03a51549bc645685fb8a77efa64df531666c3 (diff) |
rtc: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-at91rm9200.c | 12 | ||||
-rw-r--r-- | drivers/rtc/rtc-at91sam9.c | 2 | ||||
-rw-r--r-- | drivers/rtc/rtc-ds1302.c | 2 | ||||
-rw-r--r-- | drivers/rtc/rtc-ds1672.c | 14 | ||||
-rw-r--r-- | drivers/rtc/rtc-max6900.c | 6 | ||||
-rw-r--r-- | drivers/rtc/rtc-max6902.c | 4 | ||||
-rw-r--r-- | drivers/rtc/rtc-pcf8563.c | 14 | ||||
-rw-r--r-- | drivers/rtc/rtc-rs5c313.c | 4 | ||||
-rw-r--r-- | drivers/rtc/rtc-rs5c372.c | 10 | ||||
-rw-r--r-- | drivers/rtc/rtc-s3c.c | 6 | ||||
-rw-r--r-- | drivers/rtc/rtc-sh.c | 2 | ||||
-rw-r--r-- | drivers/rtc/rtc-v3020.c | 4 | ||||
-rw-r--r-- | drivers/rtc/rtc-x1205.c | 40 |
13 files changed, 60 insertions, 60 deletions
diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c index 52abffc86bcd..39e64ab1ecb7 100644 --- a/drivers/rtc/rtc-at91rm9200.c +++ b/drivers/rtc/rtc-at91rm9200.c | |||
@@ -83,7 +83,7 @@ static int at91_rtc_readtime(struct device *dev, struct rtc_time *tm) | |||
83 | tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); | 83 | tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); |
84 | tm->tm_year = tm->tm_year - 1900; | 84 | tm->tm_year = tm->tm_year - 1900; |
85 | 85 | ||
86 | pr_debug("%s(): %4d-%02d-%02d %02d:%02d:%02d\n", __FUNCTION__, | 86 | pr_debug("%s(): %4d-%02d-%02d %02d:%02d:%02d\n", __func__, |
87 | 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, | 87 | 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, |
88 | tm->tm_hour, tm->tm_min, tm->tm_sec); | 88 | tm->tm_hour, tm->tm_min, tm->tm_sec); |
89 | 89 | ||
@@ -97,7 +97,7 @@ static int at91_rtc_settime(struct device *dev, struct rtc_time *tm) | |||
97 | { | 97 | { |
98 | unsigned long cr; | 98 | unsigned long cr; |
99 | 99 | ||
100 | pr_debug("%s(): %4d-%02d-%02d %02d:%02d:%02d\n", __FUNCTION__, | 100 | pr_debug("%s(): %4d-%02d-%02d %02d:%02d:%02d\n", __func__, |
101 | 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, | 101 | 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, |
102 | tm->tm_hour, tm->tm_min, tm->tm_sec); | 102 | tm->tm_hour, tm->tm_min, tm->tm_sec); |
103 | 103 | ||
@@ -142,7 +142,7 @@ static int at91_rtc_readalarm(struct device *dev, struct rtc_wkalrm *alrm) | |||
142 | alrm->enabled = (at91_sys_read(AT91_RTC_IMR) & AT91_RTC_ALARM) | 142 | alrm->enabled = (at91_sys_read(AT91_RTC_IMR) & AT91_RTC_ALARM) |
143 | ? 1 : 0; | 143 | ? 1 : 0; |
144 | 144 | ||
145 | pr_debug("%s(): %4d-%02d-%02d %02d:%02d:%02d\n", __FUNCTION__, | 145 | pr_debug("%s(): %4d-%02d-%02d %02d:%02d:%02d\n", __func__, |
146 | 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, | 146 | 1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, |
147 | tm->tm_hour, tm->tm_min, tm->tm_sec); | 147 | tm->tm_hour, tm->tm_min, tm->tm_sec); |
148 | 148 | ||
@@ -178,7 +178,7 @@ static int at91_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm) | |||
178 | if (alrm->enabled) | 178 | if (alrm->enabled) |
179 | at91_sys_write(AT91_RTC_IER, AT91_RTC_ALARM); | 179 | at91_sys_write(AT91_RTC_IER, AT91_RTC_ALARM); |
180 | 180 | ||
181 | pr_debug("%s(): %4d-%02d-%02d %02d:%02d:%02d\n", __FUNCTION__, | 181 | pr_debug("%s(): %4d-%02d-%02d %02d:%02d:%02d\n", __func__, |
182 | at91_alarm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour, | 182 | at91_alarm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour, |
183 | tm.tm_min, tm.tm_sec); | 183 | tm.tm_min, tm.tm_sec); |
184 | 184 | ||
@@ -193,7 +193,7 @@ static int at91_rtc_ioctl(struct device *dev, unsigned int cmd, | |||
193 | { | 193 | { |
194 | int ret = 0; | 194 | int ret = 0; |
195 | 195 | ||
196 | pr_debug("%s(): cmd=%08x, arg=%08lx.\n", __FUNCTION__, cmd, arg); | 196 | pr_debug("%s(): cmd=%08x, arg=%08lx.\n", __func__, cmd, arg); |
197 | 197 | ||
198 | switch (cmd) { | 198 | switch (cmd) { |
199 | case RTC_AIE_OFF: /* alarm off */ | 199 | case RTC_AIE_OFF: /* alarm off */ |
@@ -265,7 +265,7 @@ static irqreturn_t at91_rtc_interrupt(int irq, void *dev_id) | |||
265 | 265 | ||
266 | rtc_update_irq(rtc, 1, events); | 266 | rtc_update_irq(rtc, 1, events); |
267 | 267 | ||
268 | pr_debug("%s(): num=%ld, events=0x%02lx\n", __FUNCTION__, | 268 | pr_debug("%s(): num=%ld, events=0x%02lx\n", __func__, |
269 | events >> 8, events & 0x000000FF); | 269 | events >> 8, events & 0x000000FF); |
270 | 270 | ||
271 | return IRQ_HANDLED; | 271 | return IRQ_HANDLED; |
diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c index 56728a2a3385..38d8742a4bdf 100644 --- a/drivers/rtc/rtc-at91sam9.c +++ b/drivers/rtc/rtc-at91sam9.c | |||
@@ -288,7 +288,7 @@ static irqreturn_t at91_rtc_interrupt(int irq, void *_rtc) | |||
288 | 288 | ||
289 | rtc_update_irq(rtc->rtcdev, 1, events); | 289 | rtc_update_irq(rtc->rtcdev, 1, events); |
290 | 290 | ||
291 | pr_debug("%s: num=%ld, events=0x%02lx\n", __FUNCTION__, | 291 | pr_debug("%s: num=%ld, events=0x%02lx\n", __func__, |
292 | events >> 8, events & 0x000000FF); | 292 | events >> 8, events & 0x000000FF); |
293 | 293 | ||
294 | return IRQ_HANDLED; | 294 | return IRQ_HANDLED; |
diff --git a/drivers/rtc/rtc-ds1302.c b/drivers/rtc/rtc-ds1302.c index 7b002ceeaa7d..b9397818f73a 100644 --- a/drivers/rtc/rtc-ds1302.c +++ b/drivers/rtc/rtc-ds1302.c | |||
@@ -122,7 +122,7 @@ static int ds1302_rtc_read_time(struct device *dev, struct rtc_time *tm) | |||
122 | 122 | ||
123 | dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, " | 123 | dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, " |
124 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 124 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
125 | __FUNCTION__, | 125 | __func__, |
126 | tm->tm_sec, tm->tm_min, tm->tm_hour, | 126 | tm->tm_sec, tm->tm_min, tm->tm_hour, |
127 | tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday); | 127 | tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday); |
128 | 128 | ||
diff --git a/drivers/rtc/rtc-ds1672.c b/drivers/rtc/rtc-ds1672.c index e0900ca678ec..6fa4556f5f5c 100644 --- a/drivers/rtc/rtc-ds1672.c +++ b/drivers/rtc/rtc-ds1672.c | |||
@@ -50,13 +50,13 @@ static int ds1672_get_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
50 | 50 | ||
51 | /* read date registers */ | 51 | /* read date registers */ |
52 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { | 52 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { |
53 | dev_err(&client->dev, "%s: read error\n", __FUNCTION__); | 53 | dev_err(&client->dev, "%s: read error\n", __func__); |
54 | return -EIO; | 54 | return -EIO; |
55 | } | 55 | } |
56 | 56 | ||
57 | dev_dbg(&client->dev, | 57 | dev_dbg(&client->dev, |
58 | "%s: raw read data - counters=%02x,%02x,%02x,%02x\n", | 58 | "%s: raw read data - counters=%02x,%02x,%02x,%02x\n", |
59 | __FUNCTION__, buf[0], buf[1], buf[2], buf[3]); | 59 | __func__, buf[0], buf[1], buf[2], buf[3]); |
60 | 60 | ||
61 | time = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; | 61 | time = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; |
62 | 62 | ||
@@ -64,7 +64,7 @@ static int ds1672_get_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
64 | 64 | ||
65 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " | 65 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " |
66 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 66 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
67 | __FUNCTION__, tm->tm_sec, tm->tm_min, tm->tm_hour, | 67 | __func__, tm->tm_sec, tm->tm_min, tm->tm_hour, |
68 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); | 68 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); |
69 | 69 | ||
70 | return 0; | 70 | return 0; |
@@ -84,7 +84,7 @@ static int ds1672_set_mmss(struct i2c_client *client, unsigned long secs) | |||
84 | 84 | ||
85 | xfer = i2c_master_send(client, buf, 6); | 85 | xfer = i2c_master_send(client, buf, 6); |
86 | if (xfer != 6) { | 86 | if (xfer != 6) { |
87 | dev_err(&client->dev, "%s: send: %d\n", __FUNCTION__, xfer); | 87 | dev_err(&client->dev, "%s: send: %d\n", __func__, xfer); |
88 | return -EIO; | 88 | return -EIO; |
89 | } | 89 | } |
90 | 90 | ||
@@ -98,7 +98,7 @@ static int ds1672_set_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
98 | dev_dbg(&client->dev, | 98 | dev_dbg(&client->dev, |
99 | "%s: secs=%d, mins=%d, hours=%d, " | 99 | "%s: secs=%d, mins=%d, hours=%d, " |
100 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 100 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
101 | __FUNCTION__, | 101 | __func__, |
102 | tm->tm_sec, tm->tm_min, tm->tm_hour, | 102 | tm->tm_sec, tm->tm_min, tm->tm_hour, |
103 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); | 103 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); |
104 | 104 | ||
@@ -133,7 +133,7 @@ static int ds1672_get_control(struct i2c_client *client, u8 *status) | |||
133 | 133 | ||
134 | /* read control register */ | 134 | /* read control register */ |
135 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { | 135 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { |
136 | dev_err(&client->dev, "%s: read error\n", __FUNCTION__); | 136 | dev_err(&client->dev, "%s: read error\n", __func__); |
137 | return -EIO; | 137 | return -EIO; |
138 | } | 138 | } |
139 | 139 | ||
@@ -199,7 +199,7 @@ static int ds1672_probe(struct i2c_adapter *adapter, int address, int kind) | |||
199 | struct i2c_client *client; | 199 | struct i2c_client *client; |
200 | struct rtc_device *rtc; | 200 | struct rtc_device *rtc; |
201 | 201 | ||
202 | dev_dbg(&adapter->dev, "%s\n", __FUNCTION__); | 202 | dev_dbg(&adapter->dev, "%s\n", __func__); |
203 | 203 | ||
204 | if (!i2c_check_functionality(adapter, I2C_FUNC_I2C)) { | 204 | if (!i2c_check_functionality(adapter, I2C_FUNC_I2C)) { |
205 | err = -ENODEV; | 205 | err = -ENODEV; |
diff --git a/drivers/rtc/rtc-max6900.c b/drivers/rtc/rtc-max6900.c index 7683412970c4..ded3c0abad83 100644 --- a/drivers/rtc/rtc-max6900.c +++ b/drivers/rtc/rtc-max6900.c | |||
@@ -98,7 +98,7 @@ static int max6900_i2c_read_regs(struct i2c_client *client, u8 *buf) | |||
98 | rc = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); | 98 | rc = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); |
99 | if (rc != ARRAY_SIZE(msgs)) { | 99 | if (rc != ARRAY_SIZE(msgs)) { |
100 | dev_err(&client->dev, "%s: register read failed\n", | 100 | dev_err(&client->dev, "%s: register read failed\n", |
101 | __FUNCTION__); | 101 | __func__); |
102 | return -EIO; | 102 | return -EIO; |
103 | } | 103 | } |
104 | return 0; | 104 | return 0; |
@@ -150,7 +150,7 @@ static int max6900_i2c_write_regs(struct i2c_client *client, u8 const *buf) | |||
150 | 150 | ||
151 | write_failed: | 151 | write_failed: |
152 | dev_err(&client->dev, "%s: register write failed\n", | 152 | dev_err(&client->dev, "%s: register write failed\n", |
153 | __FUNCTION__); | 153 | __func__); |
154 | return -EIO; | 154 | return -EIO; |
155 | } | 155 | } |
156 | 156 | ||
@@ -214,7 +214,7 @@ static int max6900_i2c_clear_write_protect(struct i2c_client *client) | |||
214 | rc = i2c_smbus_write_byte_data (client, MAX6900_REG_CONTROL_WRITE, 0); | 214 | rc = i2c_smbus_write_byte_data (client, MAX6900_REG_CONTROL_WRITE, 0); |
215 | if (rc < 0) { | 215 | if (rc < 0) { |
216 | dev_err(&client->dev, "%s: control register write failed\n", | 216 | dev_err(&client->dev, "%s: control register write failed\n", |
217 | __FUNCTION__); | 217 | __func__); |
218 | return -EIO; | 218 | return -EIO; |
219 | } | 219 | } |
220 | return 0; | 220 | return 0; |
diff --git a/drivers/rtc/rtc-max6902.c b/drivers/rtc/rtc-max6902.c index 1f956dc5d56e..12f0310ae89c 100644 --- a/drivers/rtc/rtc-max6902.c +++ b/drivers/rtc/rtc-max6902.c | |||
@@ -140,7 +140,7 @@ static int max6902_get_datetime(struct device *dev, struct rtc_time *dt) | |||
140 | dt->tm_year -= 1900; | 140 | dt->tm_year -= 1900; |
141 | 141 | ||
142 | #ifdef MAX6902_DEBUG | 142 | #ifdef MAX6902_DEBUG |
143 | printk("\n%s : Read RTC values\n",__FUNCTION__); | 143 | printk("\n%s : Read RTC values\n",__func__); |
144 | printk("tm_hour: %i\n",dt->tm_hour); | 144 | printk("tm_hour: %i\n",dt->tm_hour); |
145 | printk("tm_min : %i\n",dt->tm_min); | 145 | printk("tm_min : %i\n",dt->tm_min); |
146 | printk("tm_sec : %i\n",dt->tm_sec); | 146 | printk("tm_sec : %i\n",dt->tm_sec); |
@@ -158,7 +158,7 @@ static int max6902_set_datetime(struct device *dev, struct rtc_time *dt) | |||
158 | dt->tm_year = dt->tm_year+1900; | 158 | dt->tm_year = dt->tm_year+1900; |
159 | 159 | ||
160 | #ifdef MAX6902_DEBUG | 160 | #ifdef MAX6902_DEBUG |
161 | printk("\n%s : Setting RTC values\n",__FUNCTION__); | 161 | printk("\n%s : Setting RTC values\n",__func__); |
162 | printk("tm_sec : %i\n",dt->tm_sec); | 162 | printk("tm_sec : %i\n",dt->tm_sec); |
163 | printk("tm_min : %i\n",dt->tm_min); | 163 | printk("tm_min : %i\n",dt->tm_min); |
164 | printk("tm_hour: %i\n",dt->tm_hour); | 164 | printk("tm_hour: %i\n",dt->tm_hour); |
diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c index a1e2f39521f8..a41681d26eba 100644 --- a/drivers/rtc/rtc-pcf8563.c +++ b/drivers/rtc/rtc-pcf8563.c | |||
@@ -80,7 +80,7 @@ static int pcf8563_get_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
80 | 80 | ||
81 | /* read registers */ | 81 | /* read registers */ |
82 | if ((i2c_transfer(client->adapter, msgs, 2)) != 2) { | 82 | if ((i2c_transfer(client->adapter, msgs, 2)) != 2) { |
83 | dev_err(&client->dev, "%s: read error\n", __FUNCTION__); | 83 | dev_err(&client->dev, "%s: read error\n", __func__); |
84 | return -EIO; | 84 | return -EIO; |
85 | } | 85 | } |
86 | 86 | ||
@@ -91,7 +91,7 @@ static int pcf8563_get_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
91 | dev_dbg(&client->dev, | 91 | dev_dbg(&client->dev, |
92 | "%s: raw data is st1=%02x, st2=%02x, sec=%02x, min=%02x, hr=%02x, " | 92 | "%s: raw data is st1=%02x, st2=%02x, sec=%02x, min=%02x, hr=%02x, " |
93 | "mday=%02x, wday=%02x, mon=%02x, year=%02x\n", | 93 | "mday=%02x, wday=%02x, mon=%02x, year=%02x\n", |
94 | __FUNCTION__, | 94 | __func__, |
95 | buf[0], buf[1], buf[2], buf[3], | 95 | buf[0], buf[1], buf[2], buf[3], |
96 | buf[4], buf[5], buf[6], buf[7], | 96 | buf[4], buf[5], buf[6], buf[7], |
97 | buf[8]); | 97 | buf[8]); |
@@ -112,7 +112,7 @@ static int pcf8563_get_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
112 | 112 | ||
113 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " | 113 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " |
114 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 114 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
115 | __FUNCTION__, | 115 | __func__, |
116 | tm->tm_sec, tm->tm_min, tm->tm_hour, | 116 | tm->tm_sec, tm->tm_min, tm->tm_hour, |
117 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); | 117 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); |
118 | 118 | ||
@@ -133,7 +133,7 @@ static int pcf8563_set_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
133 | 133 | ||
134 | dev_dbg(&client->dev, "%s: secs=%d, mins=%d, hours=%d, " | 134 | dev_dbg(&client->dev, "%s: secs=%d, mins=%d, hours=%d, " |
135 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 135 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
136 | __FUNCTION__, | 136 | __func__, |
137 | tm->tm_sec, tm->tm_min, tm->tm_hour, | 137 | tm->tm_sec, tm->tm_min, tm->tm_hour, |
138 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); | 138 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); |
139 | 139 | ||
@@ -163,7 +163,7 @@ static int pcf8563_set_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
163 | if (err != sizeof(data)) { | 163 | if (err != sizeof(data)) { |
164 | dev_err(&client->dev, | 164 | dev_err(&client->dev, |
165 | "%s: err=%d addr=%02x, data=%02x\n", | 165 | "%s: err=%d addr=%02x, data=%02x\n", |
166 | __FUNCTION__, err, data[0], data[1]); | 166 | __func__, err, data[0], data[1]); |
167 | return -EIO; | 167 | return -EIO; |
168 | } | 168 | } |
169 | }; | 169 | }; |
@@ -208,7 +208,7 @@ static int pcf8563_validate_client(struct i2c_client *client) | |||
208 | if (xfer != ARRAY_SIZE(msgs)) { | 208 | if (xfer != ARRAY_SIZE(msgs)) { |
209 | dev_err(&client->dev, | 209 | dev_err(&client->dev, |
210 | "%s: could not read register 0x%02X\n", | 210 | "%s: could not read register 0x%02X\n", |
211 | __FUNCTION__, pattern[i].reg); | 211 | __func__, pattern[i].reg); |
212 | 212 | ||
213 | return -EIO; | 213 | return -EIO; |
214 | } | 214 | } |
@@ -220,7 +220,7 @@ static int pcf8563_validate_client(struct i2c_client *client) | |||
220 | dev_dbg(&client->dev, | 220 | dev_dbg(&client->dev, |
221 | "%s: pattern=%d, reg=%x, mask=0x%02x, min=%d, " | 221 | "%s: pattern=%d, reg=%x, mask=0x%02x, min=%d, " |
222 | "max=%d, value=%d, raw=0x%02X\n", | 222 | "max=%d, value=%d, raw=0x%02X\n", |
223 | __FUNCTION__, i, pattern[i].reg, pattern[i].mask, | 223 | __func__, i, pattern[i].reg, pattern[i].mask, |
224 | pattern[i].min, pattern[i].max, | 224 | pattern[i].min, pattern[i].max, |
225 | value, buf); | 225 | value, buf); |
226 | 226 | ||
diff --git a/drivers/rtc/rtc-rs5c313.c b/drivers/rtc/rtc-rs5c313.c index 664e89a817ed..1c14d4497c4d 100644 --- a/drivers/rtc/rtc-rs5c313.c +++ b/drivers/rtc/rtc-rs5c313.c | |||
@@ -228,7 +228,7 @@ static int rs5c313_rtc_read_time(struct device *dev, struct rtc_time *tm) | |||
228 | ndelay(700); /* CE:L */ | 228 | ndelay(700); /* CE:L */ |
229 | 229 | ||
230 | if (cnt++ > 100) { | 230 | if (cnt++ > 100) { |
231 | dev_err(dev, "%s: timeout error\n", __FUNCTION__); | 231 | dev_err(dev, "%s: timeout error\n", __func__); |
232 | return -EIO; | 232 | return -EIO; |
233 | } | 233 | } |
234 | } | 234 | } |
@@ -289,7 +289,7 @@ static int rs5c313_rtc_set_time(struct device *dev, struct rtc_time *tm) | |||
289 | ndelay(700); /* CE:L */ | 289 | ndelay(700); /* CE:L */ |
290 | 290 | ||
291 | if (cnt++ > 100) { | 291 | if (cnt++ > 100) { |
292 | dev_err(dev, "%s: timeout error\n", __FUNCTION__); | 292 | dev_err(dev, "%s: timeout error\n", __func__); |
293 | return -EIO; | 293 | return -EIO; |
294 | } | 294 | } |
295 | } | 295 | } |
diff --git a/drivers/rtc/rtc-rs5c372.c b/drivers/rtc/rtc-rs5c372.c index 67d8768c1b64..7e63074708eb 100644 --- a/drivers/rtc/rtc-rs5c372.c +++ b/drivers/rtc/rtc-rs5c372.c | |||
@@ -166,7 +166,7 @@ static int rs5c372_get_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
166 | 166 | ||
167 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " | 167 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " |
168 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 168 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
169 | __FUNCTION__, | 169 | __func__, |
170 | tm->tm_sec, tm->tm_min, tm->tm_hour, | 170 | tm->tm_sec, tm->tm_min, tm->tm_hour, |
171 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); | 171 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); |
172 | 172 | ||
@@ -181,7 +181,7 @@ static int rs5c372_set_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
181 | 181 | ||
182 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d " | 182 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d " |
183 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 183 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
184 | __FUNCTION__, | 184 | __func__, |
185 | tm->tm_sec, tm->tm_min, tm->tm_hour, | 185 | tm->tm_sec, tm->tm_min, tm->tm_hour, |
186 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); | 186 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); |
187 | 187 | ||
@@ -195,7 +195,7 @@ static int rs5c372_set_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
195 | buf[7] = BIN2BCD(tm->tm_year - 100); | 195 | buf[7] = BIN2BCD(tm->tm_year - 100); |
196 | 196 | ||
197 | if ((i2c_master_send(client, buf, 8)) != 8) { | 197 | if ((i2c_master_send(client, buf, 8)) != 8) { |
198 | dev_err(&client->dev, "%s: write error\n", __FUNCTION__); | 198 | dev_err(&client->dev, "%s: write error\n", __func__); |
199 | return -EIO; | 199 | return -EIO; |
200 | } | 200 | } |
201 | 201 | ||
@@ -220,7 +220,7 @@ static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) | |||
220 | *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; | 220 | *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; |
221 | 221 | ||
222 | if (trim) { | 222 | if (trim) { |
223 | dev_dbg(&client->dev, "%s: raw trim=%x\n", __FUNCTION__, tmp); | 223 | dev_dbg(&client->dev, "%s: raw trim=%x\n", __func__, tmp); |
224 | tmp &= RS5C372_TRIM_MASK; | 224 | tmp &= RS5C372_TRIM_MASK; |
225 | if (tmp & 0x3e) { | 225 | if (tmp & 0x3e) { |
226 | int t = tmp & 0x3f; | 226 | int t = tmp & 0x3f; |
@@ -500,7 +500,7 @@ static int rs5c372_probe(struct i2c_client *client) | |||
500 | struct rs5c372 *rs5c372; | 500 | struct rs5c372 *rs5c372; |
501 | struct rtc_time tm; | 501 | struct rtc_time tm; |
502 | 502 | ||
503 | dev_dbg(&client->dev, "%s\n", __FUNCTION__); | 503 | dev_dbg(&client->dev, "%s\n", __func__); |
504 | 504 | ||
505 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { | 505 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { |
506 | err = -ENODEV; | 506 | err = -ENODEV; |
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index 9f4d5129a496..f26e0cad8f16 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c | |||
@@ -68,7 +68,7 @@ static void s3c_rtc_setaie(int to) | |||
68 | { | 68 | { |
69 | unsigned int tmp; | 69 | unsigned int tmp; |
70 | 70 | ||
71 | pr_debug("%s: aie=%d\n", __FUNCTION__, to); | 71 | pr_debug("%s: aie=%d\n", __func__, to); |
72 | 72 | ||
73 | tmp = readb(s3c_rtc_base + S3C2410_RTCALM) & ~S3C2410_RTCALM_ALMEN; | 73 | tmp = readb(s3c_rtc_base + S3C2410_RTCALM) & ~S3C2410_RTCALM_ALMEN; |
74 | 74 | ||
@@ -82,7 +82,7 @@ static void s3c_rtc_setpie(int to) | |||
82 | { | 82 | { |
83 | unsigned int tmp; | 83 | unsigned int tmp; |
84 | 84 | ||
85 | pr_debug("%s: pie=%d\n", __FUNCTION__, to); | 85 | pr_debug("%s: pie=%d\n", __func__, to); |
86 | 86 | ||
87 | spin_lock_irq(&s3c_rtc_pie_lock); | 87 | spin_lock_irq(&s3c_rtc_pie_lock); |
88 | tmp = readb(s3c_rtc_base + S3C2410_TICNT) & ~S3C2410_TICNT_ENABLE; | 88 | tmp = readb(s3c_rtc_base + S3C2410_TICNT) & ~S3C2410_TICNT_ENABLE; |
@@ -457,7 +457,7 @@ static int s3c_rtc_probe(struct platform_device *pdev) | |||
457 | struct resource *res; | 457 | struct resource *res; |
458 | int ret; | 458 | int ret; |
459 | 459 | ||
460 | pr_debug("%s: probe=%p\n", __FUNCTION__, pdev); | 460 | pr_debug("%s: probe=%p\n", __func__, pdev); |
461 | 461 | ||
462 | /* find the IRQs */ | 462 | /* find the IRQs */ |
463 | 463 | ||
diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index c594b34c6767..110699bb4787 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c | |||
@@ -361,7 +361,7 @@ static int sh_rtc_read_time(struct device *dev, struct rtc_time *tm) | |||
361 | 361 | ||
362 | dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, " | 362 | dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, " |
363 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 363 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
364 | __FUNCTION__, | 364 | __func__, |
365 | tm->tm_sec, tm->tm_min, tm->tm_hour, | 365 | tm->tm_sec, tm->tm_min, tm->tm_hour, |
366 | tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday); | 366 | tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday); |
367 | 367 | ||
diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c index 24203a06051a..10025d840268 100644 --- a/drivers/rtc/rtc-v3020.c +++ b/drivers/rtc/rtc-v3020.c | |||
@@ -107,7 +107,7 @@ static int v3020_read_time(struct device *dev, struct rtc_time *dt) | |||
107 | dt->tm_year = BCD2BIN(tmp)+100; | 107 | dt->tm_year = BCD2BIN(tmp)+100; |
108 | 108 | ||
109 | #ifdef DEBUG | 109 | #ifdef DEBUG |
110 | printk("\n%s : Read RTC values\n",__FUNCTION__); | 110 | printk("\n%s : Read RTC values\n",__func__); |
111 | printk("tm_hour: %i\n",dt->tm_hour); | 111 | printk("tm_hour: %i\n",dt->tm_hour); |
112 | printk("tm_min : %i\n",dt->tm_min); | 112 | printk("tm_min : %i\n",dt->tm_min); |
113 | printk("tm_sec : %i\n",dt->tm_sec); | 113 | printk("tm_sec : %i\n",dt->tm_sec); |
@@ -126,7 +126,7 @@ static int v3020_set_time(struct device *dev, struct rtc_time *dt) | |||
126 | struct v3020 *chip = dev_get_drvdata(dev); | 126 | struct v3020 *chip = dev_get_drvdata(dev); |
127 | 127 | ||
128 | #ifdef DEBUG | 128 | #ifdef DEBUG |
129 | printk("\n%s : Setting RTC values\n",__FUNCTION__); | 129 | printk("\n%s : Setting RTC values\n",__func__); |
130 | printk("tm_sec : %i\n",dt->tm_sec); | 130 | printk("tm_sec : %i\n",dt->tm_sec); |
131 | printk("tm_min : %i\n",dt->tm_min); | 131 | printk("tm_min : %i\n",dt->tm_min); |
132 | printk("tm_hour: %i\n",dt->tm_hour); | 132 | printk("tm_hour: %i\n",dt->tm_hour); |
diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c index bb3290360091..095282f63523 100644 --- a/drivers/rtc/rtc-x1205.c +++ b/drivers/rtc/rtc-x1205.c | |||
@@ -99,14 +99,14 @@ static int x1205_get_datetime(struct i2c_client *client, struct rtc_time *tm, | |||
99 | 99 | ||
100 | /* read date registers */ | 100 | /* read date registers */ |
101 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { | 101 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { |
102 | dev_err(&client->dev, "%s: read error\n", __FUNCTION__); | 102 | dev_err(&client->dev, "%s: read error\n", __func__); |
103 | return -EIO; | 103 | return -EIO; |
104 | } | 104 | } |
105 | 105 | ||
106 | dev_dbg(&client->dev, | 106 | dev_dbg(&client->dev, |
107 | "%s: raw read data - sec=%02x, min=%02x, hr=%02x, " | 107 | "%s: raw read data - sec=%02x, min=%02x, hr=%02x, " |
108 | "mday=%02x, mon=%02x, year=%02x, wday=%02x, y2k=%02x\n", | 108 | "mday=%02x, mon=%02x, year=%02x, wday=%02x, y2k=%02x\n", |
109 | __FUNCTION__, | 109 | __func__, |
110 | buf[0], buf[1], buf[2], buf[3], | 110 | buf[0], buf[1], buf[2], buf[3], |
111 | buf[4], buf[5], buf[6], buf[7]); | 111 | buf[4], buf[5], buf[6], buf[7]); |
112 | 112 | ||
@@ -121,7 +121,7 @@ static int x1205_get_datetime(struct i2c_client *client, struct rtc_time *tm, | |||
121 | 121 | ||
122 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " | 122 | dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " |
123 | "mday=%d, mon=%d, year=%d, wday=%d\n", | 123 | "mday=%d, mon=%d, year=%d, wday=%d\n", |
124 | __FUNCTION__, | 124 | __func__, |
125 | tm->tm_sec, tm->tm_min, tm->tm_hour, | 125 | tm->tm_sec, tm->tm_min, tm->tm_hour, |
126 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); | 126 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); |
127 | 127 | ||
@@ -139,7 +139,7 @@ static int x1205_get_status(struct i2c_client *client, unsigned char *sr) | |||
139 | 139 | ||
140 | /* read status register */ | 140 | /* read status register */ |
141 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { | 141 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { |
142 | dev_err(&client->dev, "%s: read error\n", __FUNCTION__); | 142 | dev_err(&client->dev, "%s: read error\n", __func__); |
143 | return -EIO; | 143 | return -EIO; |
144 | } | 144 | } |
145 | 145 | ||
@@ -162,7 +162,7 @@ static int x1205_set_datetime(struct i2c_client *client, struct rtc_time *tm, | |||
162 | 162 | ||
163 | dev_dbg(&client->dev, | 163 | dev_dbg(&client->dev, |
164 | "%s: secs=%d, mins=%d, hours=%d\n", | 164 | "%s: secs=%d, mins=%d, hours=%d\n", |
165 | __FUNCTION__, | 165 | __func__, |
166 | tm->tm_sec, tm->tm_min, tm->tm_hour); | 166 | tm->tm_sec, tm->tm_min, tm->tm_hour); |
167 | 167 | ||
168 | buf[CCR_SEC] = BIN2BCD(tm->tm_sec); | 168 | buf[CCR_SEC] = BIN2BCD(tm->tm_sec); |
@@ -175,7 +175,7 @@ static int x1205_set_datetime(struct i2c_client *client, struct rtc_time *tm, | |||
175 | if (datetoo) { | 175 | if (datetoo) { |
176 | dev_dbg(&client->dev, | 176 | dev_dbg(&client->dev, |
177 | "%s: mday=%d, mon=%d, year=%d, wday=%d\n", | 177 | "%s: mday=%d, mon=%d, year=%d, wday=%d\n", |
178 | __FUNCTION__, | 178 | __func__, |
179 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); | 179 | tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); |
180 | 180 | ||
181 | buf[CCR_MDAY] = BIN2BCD(tm->tm_mday); | 181 | buf[CCR_MDAY] = BIN2BCD(tm->tm_mday); |
@@ -191,12 +191,12 @@ static int x1205_set_datetime(struct i2c_client *client, struct rtc_time *tm, | |||
191 | 191 | ||
192 | /* this sequence is required to unlock the chip */ | 192 | /* this sequence is required to unlock the chip */ |
193 | if ((xfer = i2c_master_send(client, wel, 3)) != 3) { | 193 | if ((xfer = i2c_master_send(client, wel, 3)) != 3) { |
194 | dev_err(&client->dev, "%s: wel - %d\n", __FUNCTION__, xfer); | 194 | dev_err(&client->dev, "%s: wel - %d\n", __func__, xfer); |
195 | return -EIO; | 195 | return -EIO; |
196 | } | 196 | } |
197 | 197 | ||
198 | if ((xfer = i2c_master_send(client, rwel, 3)) != 3) { | 198 | if ((xfer = i2c_master_send(client, rwel, 3)) != 3) { |
199 | dev_err(&client->dev, "%s: rwel - %d\n", __FUNCTION__, xfer); | 199 | dev_err(&client->dev, "%s: rwel - %d\n", __func__, xfer); |
200 | return -EIO; | 200 | return -EIO; |
201 | } | 201 | } |
202 | 202 | ||
@@ -208,7 +208,7 @@ static int x1205_set_datetime(struct i2c_client *client, struct rtc_time *tm, | |||
208 | if (xfer != 3) { | 208 | if (xfer != 3) { |
209 | dev_err(&client->dev, | 209 | dev_err(&client->dev, |
210 | "%s: xfer=%d addr=%02x, data=%02x\n", | 210 | "%s: xfer=%d addr=%02x, data=%02x\n", |
211 | __FUNCTION__, | 211 | __func__, |
212 | xfer, rdata[1], rdata[2]); | 212 | xfer, rdata[1], rdata[2]); |
213 | return -EIO; | 213 | return -EIO; |
214 | } | 214 | } |
@@ -216,7 +216,7 @@ static int x1205_set_datetime(struct i2c_client *client, struct rtc_time *tm, | |||
216 | 216 | ||
217 | /* disable further writes */ | 217 | /* disable further writes */ |
218 | if ((xfer = i2c_master_send(client, diswe, 3)) != 3) { | 218 | if ((xfer = i2c_master_send(client, diswe, 3)) != 3) { |
219 | dev_err(&client->dev, "%s: diswe - %d\n", __FUNCTION__, xfer); | 219 | dev_err(&client->dev, "%s: diswe - %d\n", __func__, xfer); |
220 | return -EIO; | 220 | return -EIO; |
221 | } | 221 | } |
222 | 222 | ||
@@ -249,11 +249,11 @@ static int x1205_get_dtrim(struct i2c_client *client, int *trim) | |||
249 | 249 | ||
250 | /* read dtr register */ | 250 | /* read dtr register */ |
251 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { | 251 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { |
252 | dev_err(&client->dev, "%s: read error\n", __FUNCTION__); | 252 | dev_err(&client->dev, "%s: read error\n", __func__); |
253 | return -EIO; | 253 | return -EIO; |
254 | } | 254 | } |
255 | 255 | ||
256 | dev_dbg(&client->dev, "%s: raw dtr=%x\n", __FUNCTION__, dtr); | 256 | dev_dbg(&client->dev, "%s: raw dtr=%x\n", __func__, dtr); |
257 | 257 | ||
258 | *trim = 0; | 258 | *trim = 0; |
259 | 259 | ||
@@ -281,11 +281,11 @@ static int x1205_get_atrim(struct i2c_client *client, int *trim) | |||
281 | 281 | ||
282 | /* read atr register */ | 282 | /* read atr register */ |
283 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { | 283 | if ((i2c_transfer(client->adapter, &msgs[0], 2)) != 2) { |
284 | dev_err(&client->dev, "%s: read error\n", __FUNCTION__); | 284 | dev_err(&client->dev, "%s: read error\n", __func__); |
285 | return -EIO; | 285 | return -EIO; |
286 | } | 286 | } |
287 | 287 | ||
288 | dev_dbg(&client->dev, "%s: raw atr=%x\n", __FUNCTION__, atr); | 288 | dev_dbg(&client->dev, "%s: raw atr=%x\n", __func__, atr); |
289 | 289 | ||
290 | /* atr is a two's complement value on 6 bits, | 290 | /* atr is a two's complement value on 6 bits, |
291 | * perform sign extension. The formula is | 291 | * perform sign extension. The formula is |
@@ -294,11 +294,11 @@ static int x1205_get_atrim(struct i2c_client *client, int *trim) | |||
294 | if (atr & 0x20) | 294 | if (atr & 0x20) |
295 | atr |= 0xC0; | 295 | atr |= 0xC0; |
296 | 296 | ||
297 | dev_dbg(&client->dev, "%s: raw atr=%x (%d)\n", __FUNCTION__, atr, atr); | 297 | dev_dbg(&client->dev, "%s: raw atr=%x (%d)\n", __func__, atr, atr); |
298 | 298 | ||
299 | *trim = (atr * 250) + 11000; | 299 | *trim = (atr * 250) + 11000; |
300 | 300 | ||
301 | dev_dbg(&client->dev, "%s: real=%d\n", __FUNCTION__, *trim); | 301 | dev_dbg(&client->dev, "%s: real=%d\n", __func__, *trim); |
302 | 302 | ||
303 | return 0; | 303 | return 0; |
304 | } | 304 | } |
@@ -352,7 +352,7 @@ static int x1205_validate_client(struct i2c_client *client) | |||
352 | if ((xfer = i2c_transfer(client->adapter, msgs, 2)) != 2) { | 352 | if ((xfer = i2c_transfer(client->adapter, msgs, 2)) != 2) { |
353 | dev_err(&client->dev, | 353 | dev_err(&client->dev, |
354 | "%s: could not read register %x\n", | 354 | "%s: could not read register %x\n", |
355 | __FUNCTION__, probe_zero_pattern[i]); | 355 | __func__, probe_zero_pattern[i]); |
356 | 356 | ||
357 | return -EIO; | 357 | return -EIO; |
358 | } | 358 | } |
@@ -360,7 +360,7 @@ static int x1205_validate_client(struct i2c_client *client) | |||
360 | if ((buf & probe_zero_pattern[i+1]) != 0) { | 360 | if ((buf & probe_zero_pattern[i+1]) != 0) { |
361 | dev_err(&client->dev, | 361 | dev_err(&client->dev, |
362 | "%s: register=%02x, zero pattern=%d, value=%x\n", | 362 | "%s: register=%02x, zero pattern=%d, value=%x\n", |
363 | __FUNCTION__, probe_zero_pattern[i], i, buf); | 363 | __func__, probe_zero_pattern[i], i, buf); |
364 | 364 | ||
365 | return -ENODEV; | 365 | return -ENODEV; |
366 | } | 366 | } |
@@ -380,7 +380,7 @@ static int x1205_validate_client(struct i2c_client *client) | |||
380 | if ((xfer = i2c_transfer(client->adapter, msgs, 2)) != 2) { | 380 | if ((xfer = i2c_transfer(client->adapter, msgs, 2)) != 2) { |
381 | dev_err(&client->dev, | 381 | dev_err(&client->dev, |
382 | "%s: could not read register %x\n", | 382 | "%s: could not read register %x\n", |
383 | __FUNCTION__, probe_limits_pattern[i].reg); | 383 | __func__, probe_limits_pattern[i].reg); |
384 | 384 | ||
385 | return -EIO; | 385 | return -EIO; |
386 | } | 386 | } |
@@ -391,7 +391,7 @@ static int x1205_validate_client(struct i2c_client *client) | |||
391 | value < probe_limits_pattern[i].min) { | 391 | value < probe_limits_pattern[i].min) { |
392 | dev_dbg(&client->dev, | 392 | dev_dbg(&client->dev, |
393 | "%s: register=%x, lim pattern=%d, value=%d\n", | 393 | "%s: register=%x, lim pattern=%d, value=%d\n", |
394 | __FUNCTION__, probe_limits_pattern[i].reg, | 394 | __func__, probe_limits_pattern[i].reg, |
395 | i, value); | 395 | i, value); |
396 | 396 | ||
397 | return -ENODEV; | 397 | return -ENODEV; |