[PATCH 4/8] of/base.c: export property access/modification functions

Grant Likely grant.likely at secretlab.ca
Sat Jul 17 04:33:57 EST 2010


On Fri, Jul 16, 2010 at 12:13 PM, Stephen Neuendorffer
<stephen.neuendorffer at xilinx.com> wrote:
> These functions can be usefully used by device drivers.

I'd like a little more description of the intended use case.  What are
the circumstances where a driver needs to modify the data (this
information should be part of the patch description)?

g.

>
> Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
> ---
>  drivers/of/base.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/of/base.c b/drivers/of/base.c
> index e3f7af8..9ee27f6 100644
> --- a/drivers/of/base.c
> +++ b/drivers/of/base.c
> @@ -763,6 +763,7 @@ int prom_add_property(struct device_node *np, struct property *prop)
>
>        return 0;
>  }
> +EXPORT_SYMBOL(prom_add_property);
>
>  /**
>  * prom_remove_property - Remove a property from a node.
> @@ -804,6 +805,7 @@ int prom_remove_property(struct device_node *np, struct property *prop)
>
>        return 0;
>  }
> +EXPORT_SYMBOL(prom_remove_property);
>
>  /*
>  * prom_update_property - Update a property in a node.
> @@ -848,6 +850,7 @@ int prom_update_property(struct device_node *np,
>
>        return 0;
>  }
> +EXPORT_SYMBOL(prom_update_property);
>
>  #if defined(CONFIG_OF_DYNAMIC)
>  /*
> --
> 1.5.6.6
>
>
>
> This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
>
>
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.


More information about the devicetree-discuss mailing list