public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm.com>
To: jianqun <xjq@rock-chips.com>
Cc: "heiko@sntech.de" <heiko@sntech.de>,
	"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
	"broonie@kernel.org" <broonie@kernel.org>,
	"perex@perex.cz" <perex@perex.cz>,
	"tiwai@suse.de" <tiwai@suse.de>,
	"grant.likely@linaro.org" <grant.likely@linaro.org>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"zhangqing@rock-chips.com" <zhangqing@rock-chips.com>,
	"hj@rock-chips.com" <hj@rock-chips.com>,
	"kever.yang@rock-chips.com" <kever.yang@rock-chips.com>,
	"huangtao@rock-chips.com" <huangtao@rock-chips.com>,
	"zyw@rock-chips.com" <zyw@rock-chips.com>,
	"yzq@rock-chips.com" <yzq@rock-chips.com>,
	"zhenfu.fang@rock-chips.com" <zhenfu.fang@rock-chips.com>,
	"cf@rock-chips.com" <cf@rock-chips.com>,
	"kfx@rock-chips.com" <kfx@rock-chips.com>
Subject: Re: [PATCH 2/2] ASoC: add driver for Rockchip RK3xxx I2S controller
Date: Tue, 1 Jul 2014 10:01:14 +0100	[thread overview]
Message-ID: <20140701090114.GJ28740@leverpostej> (raw)
In-Reply-To: <1404204458-30881-1-git-send-email-xjq@rock-chips.com>

On Tue, Jul 01, 2014 at 09:47:38AM +0100, jianqun wrote:
> From: Jianqun Xu <xjq@rock-chips.com>
>
> Add driver for I2S controller in Rockchip RK3xxx SoCs.
>
> This driver patch has been tested on the RK3288 SDK board.
>
> Signed-off-by: Jianqun Xu <xjq@rock-chips.com>
> ---
>  sound/soc/Kconfig                 |    1 +
>  sound/soc/Makefile                |    1 +
>  sound/soc/rockchip/Kconfig        |   16 +
>  sound/soc/rockchip/Makefile       |    6 +
>  sound/soc/rockchip/i2s.h          |  222 +++++++++++++
>  sound/soc/rockchip/pcm.h          |   14 +
>  sound/soc/rockchip/rockchip_i2s.c |  622 +++++++++++++++++++++++++++++++++++++
>  sound/soc/rockchip/rockchip_pcm.c |   64 ++++
>  8 files changed, 946 insertions(+)
>  create mode 100644 sound/soc/rockchip/Kconfig
>  create mode 100644 sound/soc/rockchip/Makefile
>  create mode 100644 sound/soc/rockchip/i2s.h
>  create mode 100644 sound/soc/rockchip/pcm.h
>  create mode 100644 sound/soc/rockchip/rockchip_i2s.c
>  create mode 100644 sound/soc/rockchip/rockchip_pcm.c

[...]

> +static int rockchip_i2s_probe(struct platform_device *pdev)
> +{
> +       struct device_node *np = pdev->dev.of_node;
> +       struct rk_i2s_dev *i2s;
> +       struct resource *res;
> +       int ret;
> +
> +       i2s = devm_kzalloc(&pdev->dev, sizeof(struct rk_i2s_dev),
> +                               GFP_KERNEL);

You can use sizeof(*i2s) here.

[...]

> +       /* Try to set the I2S Channel id from dt */
> +       pdev->id = of_alias_get_id(np, "i2s");
> +       dev_set_name(&pdev->dev, "%s.%d",
> +                               pdev->dev.driver->name,
> +                               pdev->id);

This wasn't mentioned in the binding.

Cheers,
Mark.

  reply	other threads:[~2014-07-01  9:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01  8:37 [PATCH 0/2] add rockchip i2s driver jianqun
2014-07-01  8:37 ` [PATCH 1/2] ASoC: dt-bindings: add rockchip i2s bindings jianqun
2014-07-01  8:54   ` Mark Rutland
2014-07-01 10:08     ` jianqun
2014-07-04  7:26   ` [PATCH v2 " jianqun
2014-07-04 16:55     ` Mark Rutland
2014-07-05 11:10     ` [PATCH v3 " jianqun
2014-07-09  7:40       ` Mark Brown
2014-07-01  8:47 ` [PATCH 2/2] ASoC: add driver for Rockchip RK3xxx I2S controller jianqun
2014-07-01  9:01   ` Mark Rutland [this message]
2014-07-01  9:51   ` [alsa-devel] " Lars-Peter Clausen
2014-07-01 17:07   ` Mark Brown
2014-07-02  1:01     ` Huang Tao
2014-07-02 10:23       ` Mark Brown
2014-07-02 10:57       ` Jianqun
2014-07-02 11:16         ` Mark Brown
2014-07-04  7:29   ` [PATCH v2 " jianqun
2014-07-05 11:13     ` [PATCH v3 " jianqun
  -- strict thread matches above, loose matches on Subject: below --
2014-07-01  8:39 [PATCH " jianqun
2014-07-01  9:32 ` Varka Bhadram
2014-07-01 10:11   ` Heiko Stübner
2014-07-11  9:54 [PATCH 0/2] add rockchip i2s driver jianqun
2014-07-11  9:58 ` [PATCH 2/2] ASoC: add driver for Rockchip RK3xxx I2S controller jianqun

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=20140701090114.GJ28740@leverpostej \
    --to=mark.rutland@arm.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=cf@rock-chips.com \
    --cc=devicetree@vger.kernel.org \
    --cc=grant.likely@linaro.org \
    --cc=heiko@sntech.de \
    --cc=hj@rock-chips.com \
    --cc=huangtao@rock-chips.com \
    --cc=kever.yang@rock-chips.com \
    --cc=kfx@rock-chips.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=robh+dt@kernel.org \
    --cc=tiwai@suse.de \
    --cc=xjq@rock-chips.com \
    --cc=yzq@rock-chips.com \
    --cc=zhangqing@rock-chips.com \
    --cc=zhenfu.fang@rock-chips.com \
    --cc=zyw@rock-chips.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