public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [PATCH] Add rudimentary device tree support for SSM2518
Date: Thu, 13 Aug 2015 14:27:34 +0200	[thread overview]
Message-ID: <55CC8D36.6040001@metafoo.de> (raw)
In-Reply-To: <alpine.DEB.2.02.1508131404050.27635@lnxricardw1.se.axis.com>

On 08/13/2015 02:12 PM, Ricard Wanderlof wrote:
> 
> For some reason the SSM2518 codec driver doesn't have DT support, even 
> though there are bindings described for it in 
> Documentation/devicetree/sound/ssm2518.txt . This patch adds rudimentary 
> DT support for the compatible property which is a step forward.
> 
> Signed-off-by: Ricard Wanderlof <ricardw@axis.com>

Patch looks mostly good, but make sure to use a patch subject that follows
the general style of the subsystem you are sending the patch for. In this
case it should be something like:

ASoC: ssm2518: Add rudimentary device tree support

Also make sure that when you send a patch to add the maintainers of the
subsystem to your receiver list, so they'll see the patch can pick it up. In
this case that is Mark and Liam

One issue inline.

> ---
>  sound/soc/codecs/ssm2518.c |   12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/sound/soc/codecs/ssm2518.c b/sound/soc/codecs/ssm2518.c
> index 67ea55a..ecf9996 100644
> --- a/sound/soc/codecs/ssm2518.c
> +++ b/sound/soc/codecs/ssm2518.c
[...]
> @@ -821,6 +828,9 @@ static struct i2c_driver ssm2518_driver = {
>  	.driver = {
>  		.name = "ssm2518",
>  		.owner = THIS_MODULE,
> +#ifdef CONFIG_OF
> +		.of_match_table = of_match_ptr(ssm2518_dt_ids),
> +#endif

If you use of_match_ptr() you don't need the #ifdef CONFIG_OF, so just drop
the two lines.

>  	},
>  	.probe = ssm2518_i2c_probe,
>  	.remove = ssm2518_i2c_remove,
> 

      reply	other threads:[~2015-08-13 12:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13 12:12 [PATCH] Add rudimentary device tree support for SSM2518 Ricard Wanderlof
2015-08-13 12:27 ` Lars-Peter Clausen [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=55CC8D36.6040001@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=ricard.wanderlof@axis.com \
    /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