]> git.karo-electronics.de Git - linux-beck.git/commit
staging: fsl-mc: fsl_mc_io object refactoring
authorJ. German Rivera <German.Rivera@freescale.com>
Sat, 17 Oct 2015 16:18:14 +0000 (11:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 03:53:38 +0000 (20:53 -0700)
commitffcd52ef0907f56181a28f4ae5ab6f0b39e3cf58
treeb9893afca72dcfdfde1afd7b34fa21a0c62665a5
parent724e50f7c21abd1f9ac0bc4d56fc08e3b51e8596
staging: fsl-mc: fsl_mc_io object refactoring

Each fsl_mc_io object is associated with an fsl_mc_device object
of type "dpmcp" representing the MC portal associated with the
fsl_mc_io object. Before, we were representing this association with
an fsl_mc_resource pointer. To enhance code clarity, it is more
straight forward to use an fsl_mc_device pointer instead.
So, this change replaces the 'resource' field in the fsl_mc_io
object with 'dpmcp_dev'. Also, it changes parameter 'resource' of
fsl_create_mc_io() to be an fsl_mc_device pointer instead.

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-allocator.c
drivers/staging/fsl-mc/bus/mc-sys.c
drivers/staging/fsl-mc/include/mc-sys.h