mcb: Introduce type safety for to_mcb_*
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 26 Aug 2016 07:34:59 +0000 (09:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 11:16:24 +0000 (13:16 +0200)
commit68d9671a845e11c4eec1976876c1af5687a55279
tree4e7b5afc87c0c64ba7858894ee3dd5dc77b152f9
parentffc7bb3857e42acab131271e485735cbf673d0f0
mcb: Introduce type safety for to_mcb_*

The to_mcb_{bus,device,driver}() macros lacked type safety, so convert them to
inline functions to enforce compile time type checking.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/mcb.h