v4l: rcar-fcp: Add an API to retrieve the FCP device
The new rcar_fcp_get_device() function retrieves the struct device related to the FCP device. This is useful to handle DMA mapping through the right device. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Acked-by: Mauro Cavalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Kieran Bingham

parent
8c71a1a318
commit
02533540ef
@@ -78,6 +78,12 @@ void rcar_fcp_put(struct rcar_fcp_device *fcp)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rcar_fcp_put);
|
||||
|
||||
struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp)
|
||||
{
|
||||
return fcp->dev;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rcar_fcp_get_device);
|
||||
|
||||
/**
|
||||
* rcar_fcp_enable - Enable an FCP
|
||||
* @fcp: The FCP instance
|
||||
|
Reference in New Issue
Block a user