commit | 7fa857ed041537ee6cbc7ee4ab0204a1231cfcb9 | [log] [tgz] |
---|---|---|
author | Florian Fainelli <f.fainelli@gmail.com> | Mon Apr 28 11:14:27 2014 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 30 13:31:25 2014 -0400 |
tree | ef2b1467a36a089d3961f60f8d445cb6743bde4a | |
parent | ed036f809a4286a76d078a5be121a5d523d6ecdd [diff] |
net: dsa: add ds_to_priv DSA drivers have a trick which consists in allocating "priv_size" more bytes to account for the DSA driver private context. Add a helper function to access that private context instead of open-coding it in drivers with (void *)(ds + 1). Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>