aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/b2c2/flexcop-sram.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/b2c2/flexcop-sram.c')
-rw-r--r--drivers/media/dvb/b2c2/flexcop-sram.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-sram.c b/drivers/media/dvb/b2c2/flexcop-sram.c
index 01570ec80962..cda69528548a 100644
--- a/drivers/media/dvb/b2c2/flexcop-sram.c
+++ b/drivers/media/dvb/b2c2/flexcop-sram.c
@@ -90,7 +90,7 @@ static void flexcop_sram_write(struct adapter *adapter, u32 bank, u32 addr, u8 *
90 }; 90 };
91 91
92 if (retries == 0) 92 if (retries == 0)
93 printk("%s: SRAM timeout\n", __FUNCTION__); 93 printk("%s: SRAM timeout\n", __func__);
94 94
95 write_reg_dw(adapter, 0x700, command); 95 write_reg_dw(adapter, 0x700, command);
96 96
@@ -115,7 +115,7 @@ static void flex_sram_read(struct adapter *adapter, u32 bank, u32 addr, u8 *buf,
115 }; 115 };
116 116
117 if (retries == 0) 117 if (retries == 0)
118 printk("%s: SRAM timeout\n", __FUNCTION__); 118 printk("%s: SRAM timeout\n", __func__);
119 119
120 write_reg_dw(adapter, 0x700, command); 120 write_reg_dw(adapter, 0x700, command);
121 121
@@ -127,7 +127,7 @@ static void flex_sram_read(struct adapter *adapter, u32 bank, u32 addr, u8 *buf,
127 }; 127 };
128 128
129 if (retries == 0) 129 if (retries == 0)
130 printk("%s: SRAM timeout\n", __FUNCTION__); 130 printk("%s: SRAM timeout\n", __func__);
131 131
132 value = read_reg_dw(adapter, 0x700) >> 0x10; 132 value = read_reg_dw(adapter, 0x700) >> 0x10;
133 133
@@ -240,13 +240,13 @@ static void sram_init(struct adapter *adapter)
240 240
241 adapter->dw_sram_type = tmp & 0x30000; 241 adapter->dw_sram_type = tmp & 0x30000;
242 242
243 ddprintk("%s: dw_sram_type = %x\n", __FUNCTION__, adapter->dw_sram_type); 243 ddprintk("%s: dw_sram_type = %x\n", __func__, adapter->dw_sram_type);
244 244
245 } else { 245 } else {
246 246
247 adapter->dw_sram_type = 0x10000; 247 adapter->dw_sram_type = 0x10000;
248 248
249 ddprintk("%s: dw_sram_type = %x\n", __FUNCTION__, adapter->dw_sram_type); 249 ddprintk("%s: dw_sram_type = %x\n", __func__, adapter->dw_sram_type);
250 } 250 }
251 251
252 /* return value is never used? */ 252 /* return value is never used? */
@@ -257,7 +257,7 @@ static int sram_test_location(struct adapter *adapter, u32 mask, u32 addr)
257{ 257{
258 u8 tmp1, tmp2; 258 u8 tmp1, tmp2;
259 259
260 dprintk("%s: mask = %x, addr = %x\n", __FUNCTION__, mask, addr); 260 dprintk("%s: mask = %x, addr = %x\n", __func__, mask, addr);
261 261
262 sram_set_size(adapter, mask); 262 sram_set_size(adapter, mask);
263 sram_init(adapter); 263 sram_init(adapter);
@@ -275,7 +275,7 @@ static int sram_test_location(struct adapter *adapter, u32 mask, u32 addr)
275 sram_read(adapter, addr, &tmp2, 1); 275 sram_read(adapter, addr, &tmp2, 1);
276 sram_read(adapter, addr, &tmp2, 1); 276 sram_read(adapter, addr, &tmp2, 1);
277 277
278 dprintk("%s: wrote 0xa5, read 0x%2x\n", __FUNCTION__, tmp2); 278 dprintk("%s: wrote 0xa5, read 0x%2x\n", __func__, tmp2);
279 279
280 if (tmp2 != 0xa5) 280 if (tmp2 != 0xa5)
281 return 0; 281 return 0;
@@ -293,7 +293,7 @@ static int sram_test_location(struct adapter *adapter, u32 mask, u32 addr)
293 sram_read(adapter, addr, &tmp2, 1); 293 sram_read(adapter, addr, &tmp2, 1);
294 sram_read(adapter, addr, &tmp2, 1); 294 sram_read(adapter, addr, &tmp2, 1);
295 295
296 dprintk("%s: wrote 0x5a, read 0x%2x\n", __FUNCTION__, tmp2); 296 dprintk("%s: wrote 0x5a, read 0x%2x\n", __func__, tmp2);
297 297
298 if (tmp2 != 0x5a) 298 if (tmp2 != 0x5a)
299 return 0; 299 return 0;
@@ -340,7 +340,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
340 340
341 tmp3 = read_reg_dw(adapter, 0x71c); 341 tmp3 = read_reg_dw(adapter, 0x71c);
342 342
343 dprintk("%s: tmp3 = %x\n", __FUNCTION__, tmp3); 343 dprintk("%s: tmp3 = %x\n", __func__, tmp3);
344 344
345 write_reg_dw(adapter, 0x71c, tmp2); 345 write_reg_dw(adapter, 0x71c, tmp2);
346 346
@@ -351,7 +351,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
351 sram_init(adapter); 351 sram_init(adapter);
352 write_reg_dw(adapter, 0x208, tmp); 352 write_reg_dw(adapter, 0x208, tmp);
353 353
354 dprintk("%s: sram size = 32K\n", __FUNCTION__); 354 dprintk("%s: sram size = 32K\n", __func__);
355 355
356 return 32; 356 return 32;
357 } 357 }
@@ -361,7 +361,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
361 sram_init(adapter); 361 sram_init(adapter);
362 write_reg_dw(adapter, 0x208, tmp); 362 write_reg_dw(adapter, 0x208, tmp);
363 363
364 dprintk("%s: sram size = 128K\n", __FUNCTION__); 364 dprintk("%s: sram size = 128K\n", __func__);
365 365
366 return 128; 366 return 128;
367 } 367 }
@@ -371,7 +371,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
371 sram_init(adapter); 371 sram_init(adapter);
372 write_reg_dw(adapter, 0x208, tmp); 372 write_reg_dw(adapter, 0x208, tmp);
373 373
374 dprintk("%s: sram size = 64K\n", __FUNCTION__); 374 dprintk("%s: sram size = 64K\n", __func__);
375 375
376 return 64; 376 return 64;
377 } 377 }
@@ -381,7 +381,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
381 sram_init(adapter); 381 sram_init(adapter);
382 write_reg_dw(adapter, 0x208, tmp); 382 write_reg_dw(adapter, 0x208, tmp);
383 383
384 dprintk("%s: sram size = 32K\n", __FUNCTION__); 384 dprintk("%s: sram size = 32K\n", __func__);
385 385
386 return 32; 386 return 32;
387 } 387 }
@@ -390,7 +390,7 @@ static int flexcop_sram_detect(struct flexcop_device *fc)
390 sram_init(adapter); 390 sram_init(adapter);
391 write_reg_dw(adapter, 0x208, tmp); 391 write_reg_dw(adapter, 0x208, tmp);
392 392
393 dprintk("%s: SRAM detection failed. Set to 32K \n", __FUNCTION__); 393 dprintk("%s: SRAM detection failed. Set to 32K \n", __func__);
394 394
395 return 0; 395 return 0;
396} 396}