From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 2/4] dm: add dev_get_addr prototype
Date: Wed, 21 Jan 2015 13:59:57 +0200 [thread overview]
Message-ID: <54BF94BD.6040604@compulab.co.il> (raw)
In-Reply-To: <1421838596-4176-3-git-send-email-Peng.Fan@freescale.com>
On 01/21/15 13:09, Peng Fan wrote:
> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
I think this should be a part of the first patch, anyway:
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
> ---
> include/dm/device.h | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/include/dm/device.h b/include/dm/device.h
> index 13598a1..ee00c4d 100644
> --- a/include/dm/device.h
> +++ b/include/dm/device.h
> @@ -322,4 +322,13 @@ int device_find_first_child(struct udevice *parent, struct udevice **devp);
> */
> int device_find_next_child(struct udevice **devp);
>
> +
> +/**
> + * dev_get_addr() - Get the reg property of a device
> + *
> + * @dev: Pointer to a device. Returns reg address, or NULL if no DT
> + *
> + * @return addr, or NULL if NO DT
> + */
> +void *dev_get_addr(struct udevice *dev);
> #endif
>
--
Regards,
Igor.
next prev parent reply other threads:[~2015-01-21 11:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 11:09 [U-Boot] [PATCH v3 0/4] dm:gpio:mxc add DT support Peng Fan
2015-01-21 11:09 ` [U-Boot] [PATCH v3 1/4] dm: introduce dev_get_addr interface Peng Fan
2015-01-21 11:58 ` Igor Grinberg
2015-01-22 21:25 ` Simon Glass
2015-02-06 6:44 ` Peng Fan
2015-02-06 15:45 ` Simon Glass
2015-01-21 11:09 ` [U-Boot] [PATCH v3 2/4] dm: add dev_get_addr prototype Peng Fan
2015-01-21 11:59 ` Igor Grinberg [this message]
2015-01-21 11:09 ` [U-Boot] [PATCH v3 3/4] dm:gpio:mxc add a bank_index entry in platdata Peng Fan
2015-01-21 12:01 ` Igor Grinberg
2015-01-22 21:27 ` Simon Glass
2015-01-21 11:09 ` [U-Boot] [PATCH v3 4/4] dm:gpio:mxc add DT support Peng Fan
2015-01-22 1:06 ` Peng Fan
2015-01-22 8:38 ` Igor Grinberg
2015-01-22 18:56 ` Peng Fan
2015-01-22 21:26 ` Simon Glass
2015-01-24 14:34 ` Peng Fan
2015-01-26 13:38 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54BF94BD.6040604@compulab.co.il \
--to=grinberg@compulab.co.il \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox