]> git.baikalelectronics.ru Git - kernel.git/commit
MFD: mcp-core: fix mcp_priv() to be more type safe
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Jan 2012 09:28:53 +0000 (09:28 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Jan 2012 15:46:25 +0000 (15:46 +0000)
commitfdee8d4a6f9382ffd05e3320ec36cc790e831f2e
treeaa7bd825268bcd0438f502dbf90de03844cf90c5
parent8eb2cda5dec5eca963057ae39e698ad112dc5ff7
MFD: mcp-core: fix mcp_priv() to be more type safe

mcp_priv() does unexpected things when passed a void pointer.  Make it
a typed inline function, which ensures that it works correctly in
these cases.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/linux/mfd/mcp.h