From patchwork Fri May 3 19:33:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Curtis Malainey X-Patchwork-Id: 10929159 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 5DC08933 for ; Fri, 3 May 2019 19:35:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46BD527FAE for ; Fri, 3 May 2019 19:35:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 369AC283B1; Fri, 3 May 2019 19:35:17 +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_SIGNED, DKIM_VALID,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 8176D27FAE for ; Fri, 3 May 2019 19:35:16 +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 92AA31801; Fri, 3 May 2019 21:34:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 92AA31801 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1556912114; bh=PE/RZ2hsqubR+JWjgiZ1ydHKGdnaMB53fPCejxGV8u8=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=RnLEk9RxFAdmA3nJq7FJx1TIhDRJbys9hqonENuZZ7sW77vG/zi+Ny+wPTlYeTVnc d+HcVIY8c3UETIpHV6QmU5l5ySESD2v0orT+9SqCcf2HWlat3qrU9mZ6lp+Cy1M7hN ZuauKPU3IJuEz2uPBTt7Q6zvMPG6tmRNR7NDhRnI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0E63FF8075A; Fri, 3 May 2019 21:34:24 +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 97FFDF896CB; Fri, 3 May 2019 21:34:22 +0200 (CEST) Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (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 8D941F80720 for ; Fri, 3 May 2019 21:34:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8D941F80720 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="QjjTc8Em" Received: by mail-pl1-x643.google.com with SMTP id w20so3160751plq.3 for ; Fri, 03 May 2019 12:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dtquEs4dI9tF9E5HTPY6qPCSApYaxMMy1ZM9TNW2ugE=; b=QjjTc8EmizCW5wgv6T1/ubz7FyKpdhqtBs1LXTMHDe76RoC0ZG8CG2vYrQmp4JMrbx Dt8Sk/ncabGqYiAp00zr1n5nOb9Whjh+ESTDH44yFhK5XSIFm4Kb6ZdnegITV9nW59l+ kCTey717mxSdYyNQdxU0kfDv9wK1Gle2zg7IQ= 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:mime-version :content-transfer-encoding; bh=dtquEs4dI9tF9E5HTPY6qPCSApYaxMMy1ZM9TNW2ugE=; b=EuXWtDWD9HruV00qJZGoFu+ifN7gbcs/2m1kkvDCWSv7NhGuTkvuBeHMekQgufjVbb ESPNLRu7QAh8ekeYZ9POb0UzQaWUM7KUbWQjtLTQIFAL3QBv2lgY2iJf9IpE9/hK7qGh z6/QnpcnpX6dXrAVOsafMCVTSMBtd5HH+FgNglKnuoNrt9A5qtWNJ1aLFr+wMhqxLrE7 PCofpufMaI+/BeUU8QIb/X/I3ExLytHaEbAAYZAuBzjLg6gvCXIfVuJkpSwQC52gzv4F U2r9rDsxS8Oqd3gT5FTsj/RQj6VpwMGdkMUc2mXLsfUxWRt9C9f7JJscI9qE8Tap4wz+ UiTg== X-Gm-Message-State: APjAAAURKsT2V1YxzqY6KrZra7dz8qK6i1XaO0lqAuo50ZXBWH+XDSiS GR7iGY0GBTh0VZp0g1uZl7uruGSVFQ== X-Google-Smtp-Source: APXvYqxN7w8Tkg5qb3WJBpBt/XXty1dHrST/7f3rI7U9GIlBdwUltjGuFyzQbYGCap7XQzZVgvFNSA== X-Received: by 2002:a17:902:5a81:: with SMTP id r1mr12566262pli.147.1556912057583; Fri, 03 May 2019 12:34:17 -0700 (PDT) Received: from localhost ([2620:15c:202:201:c87a:31ae:9107:f63d]) by smtp.gmail.com with ESMTPSA id p20sm3381349pgh.83.2019.05.03.12.34.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 12:34:17 -0700 (PDT) From: Curtis Malainey To: alsa-devel@alsa-project.org Date: Fri, 3 May 2019 12:33:42 -0700 Message-Id: <20190503193342.241330-1-cujomalainey@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 Cc: Oder Chiou , Takashi Iwai , Liam Girdwood , Mark Brown , Bard Liao , Curtis Malainey Subject: [alsa-devel] [PATCH] ASoC: rt5677-spi: Rename driver to differentiate from main codec 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP Currently the SPI driver and the main codec share the same name. This will become confusing when looking up components when using both drivers. Signed-off-by: Curtis Malainey --- sound/soc/codecs/rt5677-spi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5677-spi.c b/sound/soc/codecs/rt5677-spi.c index 84b6bd8b50e1..871ccb37318d 100644 --- a/sound/soc/codecs/rt5677-spi.c +++ b/sound/soc/codecs/rt5677-spi.c @@ -29,6 +29,8 @@ #include "rt5677-spi.h" +#define DRV_NAME "rt5677spi" + #define RT5677_SPI_BURST_LEN 240 #define RT5677_SPI_HEADER 5 #define RT5677_SPI_FREQ 6000000 @@ -232,7 +234,7 @@ MODULE_DEVICE_TABLE(acpi, rt5677_spi_acpi_id); static struct spi_driver rt5677_spi_driver = { .driver = { - .name = "rt5677", + .name = DRV_NAME, .acpi_match_table = ACPI_PTR(rt5677_spi_acpi_id), }, .probe = rt5677_spi_probe,