mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] da9053: add dt_ids to be probed by devicetree
Date: Mon, 9 Jan 2017 11:38:12 +0100	[thread overview]
Message-ID: <20170109103812.wqh7uaai4dbqzrnd@pengutronix.de> (raw)
In-Reply-To: <20161214125227.30923-1-m.grzeschik@pengutronix.de>

On Wed, Dec 14, 2016 at 01:52:27PM +0100, Michael Grzeschik wrote:
> We add the da9052 compatible to get this driver probed by devicetree
> users.
> 
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
>  drivers/mfd/da9053.c | 9 +++++++++
>  1 file changed, 9 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/drivers/mfd/da9053.c b/drivers/mfd/da9053.c
> index 250c055..0de8c66 100644
> --- a/drivers/mfd/da9053.c
> +++ b/drivers/mfd/da9053.c
> @@ -293,9 +293,18 @@ static int da9053_probe(struct device_d *dev)
>  	return 0;
>  }
>  
> +static __maybe_unused struct of_device_id da9053_dt_ids[] = {
> +	{
> +		.compatible = "dlg,da9052",
> +	}, {
> +		/* sentinel */
> +	}
> +};
> +
>  static struct driver_d da9053_driver = {
>  	.name  = DRIVERNAME,
>  	.probe = da9053_probe,
> +	.of_compatible = DRV_OF_COMPAT(da9053_dt_ids),
>  };
>  
>  static int da9053_init(void)
> -- 
> 2.10.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2017-01-09 10:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-14 12:52 Michael Grzeschik
2017-01-09 10:38 ` Sascha Hauer [this message]

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=20170109103812.wqh7uaai4dbqzrnd@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=m.grzeschik@pengutronix.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