]> git.baikalelectronics.ru Git - kernel.git/commit
fsl-mc: add helper macro to determine if a device is of fsl_mc type
authorNipun Gupta <nipun.gupta@nxp.com>
Wed, 29 Jun 2016 17:14:39 +0000 (22:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:32:26 +0000 (18:32 +0200)
commitfdc0184f150ad3b367af48a4006e9969e590b858
treefeb9cdbe6b3292d4600ebddac111d6e7ec3d75cd
parent6f9870f18400d5043f4e89bebee9c0ac7fed16c7
fsl-mc: add helper macro to determine if a device is of fsl_mc type

Add a helper macro to return if a device has a bus type of fsl_mc.
This makes the bus driver code more readable and provides a way for
drivers like the SMMU driver to easily check the bus type.

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Signed-off-by: Bharat Bhushan <bharat.bhushan@nxp.com>
Acked-by: Stuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dprc-driver.c
drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c
drivers/staging/fsl-mc/bus/mc-allocator.c
drivers/staging/fsl-mc/bus/mc-bus.c
drivers/staging/fsl-mc/include/mc.h