]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fsl-mc: abstract test for whether a dprc is a root dprc
authorItai Katz <itai.katz@freescale.com>
Sun, 4 Oct 2015 07:09:51 +0000 (10:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:55:45 +0000 (09:55 +0100)
commit5f71ee8d60bbeff26953e436f0b3301b86114803
treee99c8a5a0fb352ee4a234c6c90d3b23c36c2a348
parentcef5cc60145f80cba526b77dd1570e4bc7e9bf61
staging: fsl-mc: abstract test for whether a dprc is a root dprc

Instead of relying on assumptions about fields in data
structures, abstract the test for whether a dprc is a root
dprc into a function.

Signed-off-by: Itai Katz <itai.katz@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-bus.c