dsa: Rename switch chip data to cd

The dsa_switch structure contains a dsa_chip_data member called pd.
However in the rest of the code, pd is used for dsa_platform_data.
This is confusing. Rename it cd, which is already often used in dsa.c
and slave.c for this data type.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Andrew Lunn
2016-05-10 23:27:24 +02:00
committed by David S. Miller
parent c33063d6a0
commit ff04955c2f
5 changed files with 20 additions and 20 deletions

View File

@@ -137,7 +137,7 @@ struct dsa_switch {
/*
* Configuration data for this switch.
*/
struct dsa_chip_data *pd;
struct dsa_chip_data *cd;
/*
* The used switch driver.
@@ -190,7 +190,7 @@ static inline u8 dsa_upstream_port(struct dsa_switch *ds)
if (dst->cpu_switch == ds->index)
return dst->cpu_port;
else
return ds->pd->rtable[dst->cpu_switch];
return ds->cd->rtable[dst->cpu_switch];
}
struct switchdev_trans;