From patchwork Mon Apr 22 19:12:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel G X-Patchwork-Id: 10912021 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BEB81575 for ; Tue, 23 Apr 2019 07:13:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37CDF287F2 for ; Tue, 23 Apr 2019 07:13:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28CBF287FF; Tue, 23 Apr 2019 07:13:11 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1C5DB287F2 for ; Tue, 23 Apr 2019 07:13:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 788AB848; Tue, 23 Apr 2019 08:33:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 788AB848 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1556001274; bh=bq4NJG+1slYM/LXsdascuhnHGkL8VTlUGEaI+h6LWzw=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=ccYVgyp6kRhBZ95DbAnApGONzJ8tE1DYy3tGBE3qfTkARMczN48mOmrIqzzx5XOHA 7NZkdvy8fEBeLSUQO/yOMsuCOg8sXpXakMhZf7l19t927Z5FENUOc8H+4KGsDv9dfL +th3YjU5d6KCMtTeeo7oMePRPNmaO5s8JkFXHAug= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D3264F8070C; Tue, 23 Apr 2019 08:32:07 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id EA353F896CC; Mon, 22 Apr 2019 21:13:18 +0200 (CEST) Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0ACF8F80730 for ; Mon, 22 Apr 2019 21:13:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0ACF8F80730 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ucjcGihb" Received: by mail-lf1-x143.google.com with SMTP id h5so9783034lfm.1 for ; Mon, 22 Apr 2019 12:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Xjov/BMiw1CFXDZXBKip+N5qDiAJ85/3ngGG7yaAL8E=; b=ucjcGihbn/yyHfx6glxlIkH5Ff3/dG0Dyk1IxMr5tfgRXg/Q911YHF3VT/0me63QY0 xuDDFMFKifCsqAZ6pFrjEatntwkPJ3GoaI01bexZP8cNKNutNWC8mq66+jTJODMiLD3A OR6VA0OEFId9syiaRQPh1kz5bh5hgopjqACInTT2p18vZCQ8WsRtBukEDU9RiQvpYzKD Qkbd5vrXAsLm1mBrBcIVNsb6jxyt7quf46oAQmS6ZcxGCUBjBhDD2q+MgLL8v87FVuRU n99YIZ5AY78Sj6TLLl+efzujmlEXZ2ytB5thiVAu5Y5+Vzl1Ua+Kvvfo7Sh769dupaZh ISrA== 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=Xjov/BMiw1CFXDZXBKip+N5qDiAJ85/3ngGG7yaAL8E=; b=XqV/8KfsZXYrTLlS3SMlFezx1+gEKQTA/KhC5E6+/exnx8rgiE6EMUR/il3sb0ILLN 3ma339ryeWNrfR7vcCaH0I7Ut4h+LyI8eLCCPYM9D3iVtKvfcJ6Ds6cmQY79ePvNm5/D qMOupyKYhUnLRLJHTfbBOi5ZkM+gORaQ+aa7lt747u4n/Qdmu9B7/E/5eVtnRGLE6HSc TBR5rlkfXBFPLwA7fxOnlXRVgCa35jhDwaPfTF/A+ufrnRLx8OX4PZz0Vf43v3vy+dq/ zADYqxyQXTRQY2CKVrTCswVAFpxZVXoJ1ca7iGIWiQiVl6ONRMK9TQboRUVuXK/3BbMn Gn2Q== X-Gm-Message-State: APjAAAWE7NFbFbarWNjvfHCW1PbYPa4y3/8E38dfM4Rurg2xbDiN9bNx 1fvmxjhOfUHiDpfVKlyuSzQ= X-Google-Smtp-Source: APXvYqy3IkVN5S3zsojsEGeS3BrVKfPh2JhUxb8cuUIx/znFqJW7Oywc+b//OPqDi8MkAbqO+v0Dpw== X-Received: by 2002:a19:cc52:: with SMTP id c79mr11261219lfg.30.1555960395022; Mon, 22 Apr 2019 12:13:15 -0700 (PDT) Received: from localhost.localdomain (80-167-223-88-cable.dk.customer.tdc.net. [80.167.223.88]) by smtp.gmail.com with ESMTPSA id o12sm3067503lfl.66.2019.04.22.12.13.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Apr 2019 12:13:14 -0700 (PDT) From: Daniel Gomez To: lars@metafoo.de, lgirdwood@gmail.com, broonie@kernel.org Date: Mon, 22 Apr 2019 21:12:33 +0200 Message-Id: <1555960353-8836-1-git-send-email-dagmcr@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Tue, 23 Apr 2019 08:32:00 +0200 Cc: alsa-devel@alsa-project.org, javier@dowhile0.org, tiwai@suse.com, dagmcr@gmail.com Subject: [alsa-devel] [PATCH] spi: AD ASoC: declare missing of table X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" X-Virus-Scanned: ClamAV using ClamSMTP Add missing table for SPI driver relying on SPI device match since compatible is in a DT binding or in a DTS. Before this patch: modinfo sound/soc/codecs/snd-soc-adau1977-spi.ko | grep alias alias: spi:adau1979 alias: spi:adau1978 alias: spi:adau1977 After this patch: modinfo sound/soc/codecs/snd-soc-adau1977-spi.ko | grep alias alias: of:N*T*Cadi,adau1979C* alias: of:N*T*Cadi,adau1979 alias: of:N*T*Cadi,adau1978C* alias: of:N*T*Cadi,adau1978 alias: of:N*T*Cadi,adau1977C* alias: of:N*T*Cadi,adau1977 alias: spi:adau1979 alias: spi:adau1978 alias: spi:adau1977 Reported-by: Javier Martinez Canillas Signed-off-by: Daniel Gomez --- sound/soc/codecs/adau1977-spi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/codecs/adau1977-spi.c b/sound/soc/codecs/adau1977-spi.c index 84ffbde..2baf615 100644 --- a/sound/soc/codecs/adau1977-spi.c +++ b/sound/soc/codecs/adau1977-spi.c @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #include @@ -54,9 +56,18 @@ static const struct spi_device_id adau1977_spi_ids[] = { }; MODULE_DEVICE_TABLE(spi, adau1977_spi_ids); +static const struct of_device_id adau1977_spi_of_match[] = { + { .compatible = "adi,adau1977" }, + { .compatible = "adi,adau1978" }, + { .compatible = "adi,adau1979" }, + { }, +}; +MODULE_DEVICE_TABLE(of, adau1977_spi_of_match); + static struct spi_driver adau1977_spi_driver = { .driver = { .name = "adau1977", + .of_match_table = of_match_ptr(adau1977_spi_of_match), }, .probe = adau1977_spi_probe, .id_table = adau1977_spi_ids,