Re: [PATCH 3/5, RFC] Introduce pci_slot

2007-11-13 Thread Matthew Wilcox
On Tue, Nov 13, 2007 at 01:56:46PM -0600, Linas Vepstas wrote: > On Mon, Nov 12, 2007 at 05:14:47PM -0700, Alex Chiang wrote: > > +/* pci_slot represents a physical slot */ > > +struct pci_slot { > > + struct pci_bus *bus;/* The bus this slot is on */ > > + struct pci_slot *next;

Re: [PATCH 3/5, RFC] Introduce pci_slot

2007-11-13 Thread Linas Vepstas
On Mon, Nov 12, 2007 at 05:14:47PM -0700, Alex Chiang wrote: > +/* pci_slot represents a physical slot */ > +struct pci_slot { > + struct pci_bus *bus;/* The bus this slot is on */ > + struct pci_slot *next; /* Next slot on this bus */ > + struct hotplug_slot

Re: [PATCH 3/5, RFC] Introduce pci_slot

2007-11-13 Thread Linas Vepstas
On Mon, Nov 12, 2007 at 05:14:47PM -0700, Alex Chiang wrote: +/* pci_slot represents a physical slot */ +struct pci_slot { + struct pci_bus *bus;/* The bus this slot is on */ + struct pci_slot *next; /* Next slot on this bus */ + struct hotplug_slot *hotplug;

Re: [PATCH 3/5, RFC] Introduce pci_slot

2007-11-13 Thread Matthew Wilcox
On Tue, Nov 13, 2007 at 01:56:46PM -0600, Linas Vepstas wrote: On Mon, Nov 12, 2007 at 05:14:47PM -0700, Alex Chiang wrote: +/* pci_slot represents a physical slot */ +struct pci_slot { + struct pci_bus *bus;/* The bus this slot is on */ + struct pci_slot *next;

[PATCH 3/5, RFC] Introduce pci_slot

2007-11-12 Thread Alex Chiang
Introduce struct pci_slot - Make pci_slot the primary sysfs entity. hotplug_slot becomes a subsidiary structure. - Change the prototype of pci_hp_register() to take the bus and slot number (on parent bus) as parameters. - Remove all the ->get_address methods since this functionality

[PATCH 3/5, RFC] Introduce pci_slot

2007-11-12 Thread Alex Chiang
Introduce struct pci_slot - Make pci_slot the primary sysfs entity. hotplug_slot becomes a subsidiary structure. - Change the prototype of pci_hp_register() to take the bus and slot number (on parent bus) as parameters. - Remove all the -get_address methods since this functionality