Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge master.kernel.org:/home/rmk/linux-2.6-serial

* master.kernel.org:/home/rmk/linux-2.6-serial:
[SERIAL] 8250: constify some serial structs
[SERIAL] Make uart_match_port() work with all memory mapped UARTs

+11 -9
+8 -9
drivers/serial/8250_pci.c
··· 458 458 * growing *huge*, we use this function to collapse some 70 entries 459 459 * in the PCI table into one, for sanity's and compactness's sake. 460 460 */ 461 - static unsigned short timedia_single_port[] = { 461 + static const unsigned short timedia_single_port[] = { 462 462 0x4025, 0x4027, 0x4028, 0x5025, 0x5027, 0 463 463 }; 464 464 465 - static unsigned short timedia_dual_port[] = { 465 + static const unsigned short timedia_dual_port[] = { 466 466 0x0002, 0x4036, 0x4037, 0x4038, 0x4078, 0x4079, 0x4085, 467 467 0x4088, 0x4089, 0x5037, 0x5078, 0x5079, 0x5085, 0x6079, 468 468 0x7079, 0x8079, 0x8137, 0x8138, 0x8237, 0x8238, 0x9079, ··· 470 470 0xD079, 0 471 471 }; 472 472 473 - static unsigned short timedia_quad_port[] = { 473 + static const unsigned short timedia_quad_port[] = { 474 474 0x4055, 0x4056, 0x4095, 0x4096, 0x5056, 0x8156, 0x8157, 475 475 0x8256, 0x8257, 0x9056, 0x9156, 0x9157, 0x9158, 0x9159, 476 476 0x9256, 0x9257, 0xA056, 0xA157, 0xA158, 0xA159, 0xB056, 477 477 0xB157, 0 478 478 }; 479 479 480 - static unsigned short timedia_eight_port[] = { 480 + static const unsigned short timedia_eight_port[] = { 481 481 0x4065, 0x4066, 0x5065, 0x5066, 0x8166, 0x9066, 0x9166, 482 482 0x9167, 0x9168, 0xA066, 0xA167, 0xA168, 0 483 483 }; 484 484 485 485 static const struct timedia_struct { 486 486 int num; 487 - unsigned short *ids; 487 + const unsigned short *ids; 488 488 } timedia_data[] = { 489 489 { 1, timedia_single_port }, 490 490 { 2, timedia_dual_port }, 491 491 { 4, timedia_quad_port }, 492 - { 8, timedia_eight_port }, 493 - { 0, NULL } 492 + { 8, timedia_eight_port } 494 493 }; 495 494 496 495 static int pci_timedia_init(struct pci_dev *dev) 497 496 { 498 - unsigned short *ids; 497 + const unsigned short *ids; 499 498 int i, j; 500 499 501 - for (i = 0; timedia_data[i].num; i++) { 500 + for (i = 0; i < ARRAY_SIZE(timedia_data); i++) { 502 501 ids = timedia_data[i].ids; 503 502 for (j = 0; ids[j]; j++) 504 503 if (dev->subsystem_device == ids[j])
+3
drivers/serial/serial_core.c
··· 2377 2377 return (port1->iobase == port2->iobase) && 2378 2378 (port1->hub6 == port2->hub6); 2379 2379 case UPIO_MEM: 2380 + case UPIO_MEM32: 2381 + case UPIO_AU: 2382 + case UPIO_TSI: 2380 2383 return (port1->mapbase == port2->mapbase); 2381 2384 } 2382 2385 return 0;