[PATCH 1/3] mfd: allow mfd_cell association with device tree node

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Sep 21 22:49:36 EST 2011


On Wed, Sep 21, 2011 at 01:01:48PM +0100, Daniel Drake wrote:

> @@ -37,6 +38,9 @@ struct mfd_cell {
>  	void			*platform_data;
>  	size_t			pdata_size;
>  
> +	/* association with device tree node (optional) */
> +	struct device_node	*of_node;
> +

This doesn't seem great as it means that the mfd_cells can't be static
data, they have to be allocated per device.  Why can't the MFD cells get
at the OF node by using the parent device in the same way as they
(mostly) get platform data at the minute?


More information about the devicetree-discuss mailing list