Re: [PATCH v2 net-next] net: dsa: mv88e6xxx: lookup switch name

2015-11-02 Thread David Miller
From: Vivien Didelot Date: Fri, 30 Oct 2015 19:39:48 -0400 > All the mv88e6xxx drivers use the exact same code in their probe > function to lookup the switch name given its ID. Thus introduce a > mv88e6xxx_switch_id structure and a mv88e6xxx_lookup_name function in > the common mv88e6xxx code. >

Re: [PATCH v2 net-next] net: dsa: mv88e6xxx: lookup switch name

2015-11-02 Thread Andrew Lunn
On Fri, Oct 30, 2015 at 07:39:48PM -0400, Vivien Didelot wrote: > All the mv88e6xxx drivers use the exact same code in their probe > function to lookup the switch name given its ID. Thus introduce a > mv88e6xxx_switch_id structure and a mv88e6xxx_lookup_name function in > the common mv88e6xxx

Re: [PATCH v2 net-next] net: dsa: mv88e6xxx: lookup switch name

2015-11-02 Thread Andrew Lunn
On Fri, Oct 30, 2015 at 07:39:48PM -0400, Vivien Didelot wrote: > All the mv88e6xxx drivers use the exact same code in their probe > function to lookup the switch name given its ID. Thus introduce a > mv88e6xxx_switch_id structure and a mv88e6xxx_lookup_name function in > the common mv88e6xxx

Re: [PATCH v2 net-next] net: dsa: mv88e6xxx: lookup switch name

2015-11-02 Thread David Miller
From: Vivien Didelot Date: Fri, 30 Oct 2015 19:39:48 -0400 > All the mv88e6xxx drivers use the exact same code in their probe > function to lookup the switch name given its ID. Thus introduce a > mv88e6xxx_switch_id structure and a mv88e6xxx_lookup_name

[PATCH v2 net-next] net: dsa: mv88e6xxx: lookup switch name

2015-10-30 Thread Vivien Didelot
All the mv88e6xxx drivers use the exact same code in their probe function to lookup the switch name given its ID. Thus introduce a mv88e6xxx_switch_id structure and a mv88e6xxx_lookup_name function in the common mv88e6xxx code. In the meantime make __mv88e6xxx_reg_{read,write} static since we do

[PATCH v2 net-next] net: dsa: mv88e6xxx: lookup switch name

2015-10-30 Thread Vivien Didelot
All the mv88e6xxx drivers use the exact same code in their probe function to lookup the switch name given its ID. Thus introduce a mv88e6xxx_switch_id structure and a mv88e6xxx_lookup_name function in the common mv88e6xxx code. In the meantime make __mv88e6xxx_reg_{read,write} static since we do