From patchwork Tue May 7 23:32:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Curtis Malainey X-Patchwork-Id: 10933879 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 19E6E14B6 for ; Tue, 7 May 2019 23:52:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A4512896A for ; Tue, 7 May 2019 23:52:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2B962896F; Tue, 7 May 2019 23:52:00 +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 74A5D2896A for ; Tue, 7 May 2019 23:51:58 +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 2B3BE17FE; Wed, 8 May 2019 01:33:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2B3BE17FE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1557272049; bh=qlXx5FLmp+XR7szuaKi6H9d78vQ8zEmuQrK5WEFtEs0=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=IGHrahPO8U0mdNOYxy7UgaXQJGFNhbg3cHMOOCDyT8lXsFn5PnjW7bLFgUCCC38m1 G2ZyE8Mm3Aq7LEv1xjQc4Eq99oA4t0bJR5dQy/ptAkAR6LDIVd+dr1fy3LDuLn+1Yw JIZONUVC6pcT9zFEQE0zc9KmHMwSOMTVGvk8m8oM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8DED5F89673; Wed, 8 May 2019 01:33:18 +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 47006F89674; Wed, 8 May 2019 01:33:15 +0200 (CEST) Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 B6DECF80726 for ; Wed, 8 May 2019 01:33:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B6DECF80726 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="RTr7FOtR" Received: by mail-pg1-x542.google.com with SMTP id h17so3101911pgv.0 for ; Tue, 07 May 2019 16:33:10 -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=H7u56jrg2cdEoBFyHiTTGn+Kv1AaPp22fLV9Ae8EXJw=; b=RTr7FOtR13Qy9Vp+Kc/RpoGSgbChjfXumziGOddtD32Z779+8hIInTpOSL+QZtMVSf KE54Yygy6ud/2kAmWl+Vj6v/KPzhqdVba4Ut+/fDholt7Xd54IHFD0HW7GVPmJY32Wh+ YQSB5RgYmgqdfynPpsPHwjbQPi/NZGWKoot7s= 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=H7u56jrg2cdEoBFyHiTTGn+Kv1AaPp22fLV9Ae8EXJw=; b=Jl1uM6cN4DpksyAxYqZMKDnJNMfiwjyRwRbz+o1em9VrKaMn72/p641/omAppUZ3AA 2a1H+nmjfx5MbZuWgjhIWlU3dJyRBiGWlsBl1YlC7Y+4rhNLDFCvBD5wYbsrkXB4Gaik OF9pBGFQmaM/RDVbRnuSokZbDSMv4mI6FH6AE/MIxU1B5enYfm3Y5WovQgAbAAWJRWuA 8C0hXs/CRbQhymKdjd7p3MKLMpp9ZTKRyx4oKd4JTL41xc/gJayX6AlS7XbtDq+lm7IJ UiUCzo/W1XiDvZFPeKHy8SAeFAHoq33tqs2Hzzu9zyfMVaZQ6iq90hk78qtHiY4Ymbxq n8MQ== X-Gm-Message-State: APjAAAUq9pLvHi3NCP7JdEHOJWbX9DMzYBJljDwwTc+LIxJZIJ+yfHD9 QG/disQXvOe1Yyihi0lkXUTJQgikZg== X-Google-Smtp-Source: APXvYqyI+bhcFn9EpwvIMmsM3tDGUsjJEcmuRR39yVRbmFmfLgfZkgVwwNom8rdkEGW6zlEUTEDnlA== X-Received: by 2002:a62:2e46:: with SMTP id u67mr4401163pfu.206.1557271988345; Tue, 07 May 2019 16:33:08 -0700 (PDT) Received: from localhost ([2620:15c:202:201:c87a:31ae:9107:f63d]) by smtp.gmail.com with ESMTPSA id q14sm7017873pgg.10.2019.05.07.16.33.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 16:33:07 -0700 (PDT) From: Curtis Malainey To: alsa-devel@alsa-project.org Date: Tue, 7 May 2019 16:32:13 -0700 Message-Id: <20190507233213.53036-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: Add component driver name 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 Add name to component driver so it is possible to lookup the component when needed. Signed-off-by: Curtis Malainey --- sound/soc/codecs/rt5677.c | 7 ++++--- sound/soc/codecs/rt5677.h | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c index 6fc70e441458..44071c7a4670 100644 --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -4650,7 +4650,7 @@ static int rt5677_to_irq(struct gpio_chip *chip, unsigned offset) } static const struct gpio_chip rt5677_template_chip = { - .label = "rt5677", + .label = RT5677_DRV_NAME, .owner = THIS_MODULE, .direction_output = rt5677_gpio_direction_out, .set = rt5677_gpio_set, @@ -4958,6 +4958,7 @@ static struct snd_soc_dai_driver rt5677_dai[] = { }; static const struct snd_soc_component_driver soc_component_dev_rt5677 = { + .name = RT5677_DRV_NAME, .probe = rt5677_probe, .remove = rt5677_remove, .suspend = rt5677_suspend, @@ -5079,7 +5080,7 @@ static struct regmap_irq rt5677_irqs[] = { }; static struct regmap_irq_chip rt5677_irq_chip = { - .name = "rt5677", + .name = RT5677_DRV_NAME, .irqs = rt5677_irqs, .num_irqs = ARRAY_SIZE(rt5677_irqs), @@ -5267,7 +5268,7 @@ static int rt5677_i2c_remove(struct i2c_client *i2c) static struct i2c_driver rt5677_i2c_driver = { .driver = { - .name = "rt5677", + .name = RT5677_DRV_NAME, .of_match_table = rt5677_of_match, .acpi_match_table = ACPI_PTR(rt5677_acpi_match), }, diff --git a/sound/soc/codecs/rt5677.h b/sound/soc/codecs/rt5677.h index 183d92b03045..11a2ffceec3b 100644 --- a/sound/soc/codecs/rt5677.h +++ b/sound/soc/codecs/rt5677.h @@ -1674,6 +1674,8 @@ #define RT5677_FIRMWARE1 "rt5677_dsp_fw1.bin" #define RT5677_FIRMWARE2 "rt5677_dsp_fw2.bin" +#define RT5677_DRV_NAME "rt5677" + /* System Clock Source */ enum { RT5677_SCLK_S_MCLK,