Re: PATCH 2.3.41.2: Replace Via support for ACPI

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Mon Jan 24 2000 - 07:35:32 EST


Martin Mares wrote:
>
> Hi Jeff,
>
> > Attached is a patch against 2.3.41-pre2 which adds back Via support. It
> > does so using the new PCI table-driven device matching code, which
> > should make it easy to add other chipsets.
>
> I don't understand why did you introduce the acpi_chip_info[] table
> and especially why does it contain CH_xxx constants which are equivalent
> to entry indices. To me, it looks best to use the driver data field
> in acpi_pci_tbl[] to point directly to the init function.

My approach is due to future expandability -- if you ever need ANY
per-chip information besides the init function, then you have to go my
way of setting up the PCI table. Therefore, why not use my method in
the first place, and make the maintainer's life easier in the long run?
The extra table is __initdata so the extra couple bytes doesn't even
matter...

        Jeff

-- 
Jeff Garzik         | Andre the Giant has a posse.
Building 1024       |
MandrakeSoft, Inc.  |

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:12 EST