From patchwork Thu Nov 30 17:56:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 10086459 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BA9EE60327 for ; Fri, 1 Dec 2017 08:02:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A73872A50A for ; Fri, 1 Dec 2017 08:02:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A6AA2A515; Fri, 1 Dec 2017 08:02:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B50052A50A for ; Fri, 1 Dec 2017 08:02:58 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id F338F2678F9; Fri, 1 Dec 2017 09:02:53 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 38C6E267B1B; Thu, 30 Nov 2017 18:56:23 +0100 (CET) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by alsa0.perex.cz (Postfix) with ESMTP id 74D3A267B16 for ; Thu, 30 Nov 2017 18:56:20 +0100 (CET) Received: by mail-wr0-f194.google.com with SMTP id k61so7479386wrc.4 for ; Thu, 30 Nov 2017 09:56:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pCAMAtPpw6q2yiKkhbpjPyoJcahjh5yl9Ri+5QYP8bM=; b=mwnCW5iplNUqnGG4avsWUoxjeKkJ286p9UH6dfEyCiOR8r3jRN5UaKvDSU8PPTY6BU HHMU7aWbPSadyQt1YGhvQ8pKPtRHYrkDismVK7pPAf4h3SFmq3zbvImEHOowOaK+1OVb kRlAbqd300Pu+epzNoAZ9btqp5dNsKiuysu03Gu5z183fyg5zThJ8UNH7s8KIvxDEl1+ 2HVtZS+6L73+MB6J/2XQcVOvG18CO+h+tOBwOX5ejIi8jFqKebMiTAJqzxGkUPNiunQ6 R8vCl9GoztwyqVmGMX8W71dLY7K62VVWMmdN87nH50qDbbVivvKVVymU/g9JW8TUGkUe Um6g== X-Gm-Message-State: AJaThX7HbpcOB4nGsTMCnG8Lc+ppXdv7iFHTfe8vwOusFTUElikj4Ba1 pvxg/F4tBFhsWhxRsrmhMpTq9w== X-Google-Smtp-Source: AGs4zMaj7BQdxwhJLPAuO9qqXUn+jQ7v5ovCfRDwMfcWiKFYboOM0ps/nc3zXHdY5kRMdZf89BT5CQ== X-Received: by 10.223.151.136 with SMTP id s8mr2942156wrb.94.1512064579987; Thu, 30 Nov 2017 09:56:19 -0800 (PST) Received: from minerva.redhat.com ([90.77.100.34]) by smtp.gmail.com with ESMTPSA id l25sm5089107wmi.35.2017.11.30.09.56.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Nov 2017 09:56:19 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Date: Thu, 30 Nov 2017 18:56:16 +0100 Message-Id: <20171130175616.29073-1-javierm@redhat.com> X-Mailer: git-send-email 2.14.3 X-Mailman-Approved-At: Fri, 01 Dec 2017 09:02:53 +0100 Cc: alsa-devel@alsa-project.org, Liam Girdwood , Takashi Iwai , Javier Martinez Canillas , Mark Brown , Fabio Estevam , Peter Rosin Subject: [alsa-devel] [PATCH] ASoC: tfa9879: Export OF device ID as module alias X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The I2C core always reports a MODALIAS of the form i2c: even if the device was registered via OF, this means that exporting the OF device ID table device aliases in the module is not needed. But in order to change how the core reports modaliases to user-space, it's better to export it. Before this patch: $ modinfo sound/soc/codecs/snd-soc-tfa9879.ko | grep alias alias: i2c:tfa9879 After this patch: $ modinfo sound/soc/codecs/snd-soc-tfa9879.ko | grep alias alias: i2c:tfa9879 alias: of:N*T*Cnxp,tfa9879C* alias: of:N*T*Cnxp,tfa9879 Signed-off-by: Javier Martinez Canillas --- sound/soc/codecs/tfa9879.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9879.c index f8dd67ca0744..e7ca764b5729 100644 --- a/sound/soc/codecs/tfa9879.c +++ b/sound/soc/codecs/tfa9879.c @@ -316,6 +316,7 @@ static const struct of_device_id tfa9879_of_match[] = { { .compatible = "nxp,tfa9879", }, { } }; +MODULE_DEVICE_TABLE(of, tfa9879_of_match); static struct i2c_driver tfa9879_i2c_driver = { .driver = {