linux/drivers/firmware/raspberrypi.c
/**
 * rpi_firmware_get - Get pointer to rpi_firmware structure.
 * @firmware_node:    Pointer to the firmware Device Tree node.
 *
 * Returns NULL is the firmware device is not ready.
 */
Get pointer to rpi_firmware structure.
@firmware_node:    Pointer to the firmware Device Tree node.

Returns NULL is the firmware device is not ready.
Get pointer to rpi_firmware structure . @firmware_node : Pointer to the firmware Device Tree node . Returns NULL is the firmware device is not ready .
struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node)
{
	struct platform_device *pdev = of_find_device_by_node(firmware_node);
	if (!pdev)
		return NULL;
	return platform_get_drvdata(pdev);
}
struct rpi_firmware * rpi_firmware_get ( struct device_node * firmware_node ) { struct platform_device * pdev = of_find_device_by_node ( firmware_node ) ; if ( ! pdev ) return NULL ; return platform_get_drvdata ( pdev ) ; }
rpi_firmware_get - Get pointer to rpi_firmware structure.
rpi_firmware_get - Get pointer to rpi_firmware structure .