From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933179AbdDEQDg (ORCPT ); Wed, 5 Apr 2017 12:03:36 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:57725 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752831AbdDEIxV (ORCPT ); Wed, 5 Apr 2017 04:53:21 -0400 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.wolfsonmicro.com Date: Wed, 5 Apr 2017 09:51:54 +0100 From: Charles Keepax To: Javier Martinez Canillas CC: , Jaroslav Kysela , , , "Mark Brown" , Kuninori Morimoto , Takashi Iwai , "Liam Girdwood" , Julia Lawall Subject: Re: [PATCH 5/6] ASoC: wm8978: Add OF device ID table Message-ID: <20170405085154.GY6986@localhost.localdomain> References: <20170404192630.11408-1-javier@osg.samsung.com> <20170404192630.11408-6-javier@osg.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170404192630.11408-6-javier@osg.samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1704050078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 04, 2017 at 03:26:29PM -0400, Javier Martinez Canillas wrote: > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the assumption that a > I2C device registered via OF will always match a legacy I2C device ID and > that the MODALIAS reported will always be of the form i2c:. > > But this could change in the future so the correct approach is to have an > OF device ID table if the devices are registered via OF. > > Before this patch: > > $ modinfo sound/soc/codecs/snd-soc-wm8978.ko | grep alias > alias: i2c:wm8978 > > After this patch: > > $ modinfo sound/soc/codecs/snd-soc-wm8978.ko | grep alias > alias: i2c:wm8978 > alias: of:N*T*Cwlf,wm8978C* > alias: of:N*T*Cwlf,wm8978 > > Signed-off-by: Javier Martinez Canillas > --- Acked-by: Charles Keepax Thanks, Charles