From: Florian Fainelli Date: Mon, 28 Apr 2014 18:14:27 +0000 (-0700) Subject: net: dsa: add ds_to_priv X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~295 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fa857ed041537ee6cbc7ee4ab0204a1231cfcb9;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed