From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH] ASoC: dfbmcs320: make the driver common for other BT modules Date: Thu, 16 May 2013 11:51:56 +0200 Message-ID: <5194AC3C.4080206@metafoo.de> References: <1368687184-12169-1-git-send-email-Baohua.Song@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-153.synserver.de (smtp-out-155.synserver.de [212.40.185.155]) by alsa0.perex.cz (Postfix) with ESMTP id EC685265375 for ; Thu, 16 May 2013 11:52:20 +0200 (CEST) In-Reply-To: <1368687184-12169-1-git-send-email-Baohua.Song@csr.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Barry Song Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, workgroup.linux@csr.com, Graeme Gregory , broonie@kernel.org, linux-arm-kernel@lists.infradead.org List-Id: alsa-devel@alsa-project.org On 05/16/2013 08:53 AM, Barry Song wrote: > DFBM-CS320 is only one of bluetooth modules using CSR bluetooth chips, > we don't want everyone to have a seperate codec driver. anyway, the > feature of Bluetooth handsfree is same on all platforms, so this patch > makes the DFBM-CS320 driver become a common BT handsfree driver. [...] > -static struct platform_driver dfmcs320_driver = { > +static struct platform_driver bt_handsfree_driver = { > .driver = { > - .name = "dfbmcs320", > + .name = "bt-handsfree", > .owner = THIS_MODULE, In my opinion it's a good idea to keep a platform_id list of all the supported devices. > }, > - .probe = dfbmcs320_probe, > - .remove = dfbmcs320_remove, > + .probe = bt_handsfree_probe, > + .remove = bt_handsfree_remove, > }; > > -module_platform_driver(dfmcs320_driver); > +module_platform_driver(bt_handsfree_driver); From mboxrd@z Thu Jan 1 00:00:00 1970 From: lars@metafoo.de (Lars-Peter Clausen) Date: Thu, 16 May 2013 11:51:56 +0200 Subject: [PATCH] ASoC: dfbmcs320: make the driver common for other BT modules In-Reply-To: <1368687184-12169-1-git-send-email-Baohua.Song@csr.com> References: <1368687184-12169-1-git-send-email-Baohua.Song@csr.com> Message-ID: <5194AC3C.4080206@metafoo.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 05/16/2013 08:53 AM, Barry Song wrote: > DFBM-CS320 is only one of bluetooth modules using CSR bluetooth chips, > we don't want everyone to have a seperate codec driver. anyway, the > feature of Bluetooth handsfree is same on all platforms, so this patch > makes the DFBM-CS320 driver become a common BT handsfree driver. [...] > -static struct platform_driver dfmcs320_driver = { > +static struct platform_driver bt_handsfree_driver = { > .driver = { > - .name = "dfbmcs320", > + .name = "bt-handsfree", > .owner = THIS_MODULE, In my opinion it's a good idea to keep a platform_id list of all the supported devices. > }, > - .probe = dfbmcs320_probe, > - .remove = dfbmcs320_remove, > + .probe = bt_handsfree_probe, > + .remove = bt_handsfree_remove, > }; > > -module_platform_driver(dfmcs320_driver); > +module_platform_driver(bt_handsfree_driver);