Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755094AbbGPL1a (ORCPT ); Thu, 16 Jul 2015 07:27:30 -0400 Received: from regular1.263xmail.com ([211.150.99.131]:35078 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754965AbbGPL12 (ORCPT ); Thu, 16 Jul 2015 07:27:28 -0400 X-Greylist: delayed 115506 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Jul 2015 07:27:26 EDT X-263anti-spam: KSV:0;BIG:0;ABS:1;DNS:0;ATT:0;SPF:S; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ADDR-CHECKED: 0 X-RL-SENDER: zhengxing@rock-chips.com X-FST-TO: pebolle@tiscali.nl X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: zhengxing@rock-chips.com X-UNIQUE-TAG: <8f470835237ebdb8da4faf9553212c88> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Message-ID: <55A79394.5090905@rock-chips.com> Date: Thu, 16 Jul 2015 19:20:52 +0800 From: zhengxing User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: Paul Bolle CC: dgreid@chromium.org, dianders@chromium.org, heiko@sntech.de, sonnyrao@chromium.org, linux-rockchip@lists.infradead.org, Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] ASoC: rockchip: Add machine driver for max98090 codec References: <1436930143-31361-1-git-send-email-zhengxing@rock-chips.com> <1436930143-31361-2-git-send-email-zhengxing@rock-chips.com> <1437033944.27428.11.camel@tiscali.nl> In-Reply-To: <1437033944.27428.11.camel@tiscali.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1780 Lines: 58 Hi Paul, Thank you for your reply. On 2015年07月16日 16:05, Paul Bolle wrote: > On wo, 2015-07-15 at 11:15 +0800, Xing Zheng wrote: >> +static const struct of_device_id rockchip_max98090_of_match[] = { >> + { .compatible = "rockchip,rockchip-audio-max98090", }, >> + {}, >> +}; >> + >> +static struct platform_driver snd_rk_mc_driver = { >> + .probe = snd_rk_mc_probe, >> + .remove = snd_rk_mc_remove, >> + .driver = { >> + .name = DRV_NAME, >> + .owner = THIS_MODULE, >> + .pm =&snd_soc_pm_ops, >> + .of_match_table = rockchip_max98090_of_match, >> + }, >> +}; >> + >> +module_platform_driver(snd_rk_mc_driver); > Nit: empty line here. Done. > >> +MODULE_AUTHOR("jianqun"); >> +MODULE_DESCRIPTION("Rockchip max98090 machine ASoC driver"); >> +MODULE_LICENSE("GPL v2"); >> +MODULE_ALIAS("platform:" DRV_NAME); > This seems only useful if there's a corresponding struct > platform_device. Ie, a platform_device with a "rockchip-snd-max98090" > .name, which will trigger a "MODALIAS=platform:rockchip-snd-max98090" > uevent when it's created. But I couldn't find where such a > platform_device is created. > > Did I miss something? Or is there another way this alias is useful here? Yes, I didn't care about this but I think it maybe correct. >> +MODULE_DEVICE_TABLE(of, rockchip_max98090_of_match); > The common pattern is to put MODULE_DEVICE_TABLE() directly after the > table it exports. Done. > Likewise for 2/2 (except the empty line nit, that is). OK, done. > Thanks, > > > Paul Bolle > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/