From: Stephen Warren Date: Fri, 2 Mar 2012 20:05:46 +0000 (-0700) Subject: pinctrl: add usecount to pins for muxing X-Git-Tag: v3.4-rc1~128^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e3db173e2b9fd3b82246516e72c17763eb5f98d;p=pandora-kernel.git pinctrl: add usecount to pins for muxing Multiple mapping table entries could reference the same pin, and hence "own" it. This would be unusual now that pinctrl_get() represents a single state for a client device, but in the future when it represents all known states for a device, this is quite likely. Implement reference counting for pin ownership to handle this. Signed-off-by: Stephen Warren Acked-by: Dong Aisheng Signed-off-by: Linus Walleij --- Reading git-diff-tree failed