{"id":2230084,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230084/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-gpio/patch/20260429074356.118420-4-herve.codina@bootlin.com/","project":{"id":42,"url":"http://patchwork.ozlabs.org/api/1.1/projects/42/?format=json","name":"Linux GPIO development","link_name":"linux-gpio","list_id":"linux-gpio.vger.kernel.org","list_email":"linux-gpio@vger.kernel.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260429074356.118420-4-herve.codina@bootlin.com>","date":"2026-04-29T07:43:39","name":"[v2,03/17] ASoC: simple-amplifier: Remove DRV_NAME defined value","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"a111b0eac108cc431575f837cdf6f6f316fa8fea","submitter":{"id":81983,"url":"http://patchwork.ozlabs.org/api/1.1/people/81983/?format=json","name":"Herve Codina","email":"herve.codina@bootlin.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-gpio/patch/20260429074356.118420-4-herve.codina@bootlin.com/mbox/","series":[{"id":502009,"url":"http://patchwork.ozlabs.org/api/1.1/series/502009/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-gpio/list/?series=502009","date":"2026-04-29T07:43:41","name":"ASoC: Add support for GPIOs driven amplifiers","version":2,"mbox":"http://patchwork.ozlabs.org/series/502009/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230084/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230084/checks/","tags":{},"headers":{"Return-Path":"\n <linux-gpio+bounces-35759-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-gpio@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=PIFscuU1;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35759-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=\"PIFscuU1\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=185.246.84.56","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=bootlin.com"],"Received":["from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g58Xj12jbz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 17:47:33 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id A28CD30A67D8\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 07:44:25 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3030C3A75A1;\n\tWed, 29 Apr 2026 07:44:24 +0000 (UTC)","from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id B291B3A5E84;\n\tWed, 29 Apr 2026 07:44:18 +0000 (UTC)","from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n\tby smtpout-02.galae.net (Postfix) with ESMTPS id 38D6B1A347C;\n\tWed, 29 Apr 2026 07:44:17 +0000 (UTC)","from mail.galae.net (mail.galae.net [212.83.136.155])\n\tby smtpout-01.galae.net (Postfix) with ESMTPS id 08258601DF;\n\tWed, 29 Apr 2026 07:44:17 +0000 (UTC)","from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 0246E10728FEB;\n\tWed, 29 Apr 2026 09:44:13 +0200 (CEST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777448663; cv=none;\n b=bOnrxLDwtO7LJ5Alch2s6efjT8E3zx8lX8wZV8dmXewDPt/P+eKMgAh7u1ZhY6jHe6h9+8gCWc+uIkG7XifV3HEWbWgZIM2YxTkHxu87p3Ctt7TqPedZC+9CVR5SPcz9AbVUHAzUPelZB103nzy2p+WAuzDLmZkVeuJ0GhljcxI=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777448663; c=relaxed/simple;\n\tbh=ReWwt6iaMYqdtIPhdkJViA/sCiJQgZnX+BqD9iMnbMA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=fyCctjcCEwe9XLyejhfUWKUotB28NgA5WqOlleiJfFGX+Rs2pxgJDqh9I/PnohzEtp4gchumEXP5dhEINwkipPjepbtjzwRpupCx8OdieS29CAaM/ATHBzKBA+DWayjR7SXFXlv59qeu5n0Vni8PyCwBdHoXMGFWylEXXlNL0oM=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com;\n spf=pass smtp.mailfrom=bootlin.com;\n dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=PIFscuU1; arc=none smtp.client-ip=185.246.84.56","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n\tt=1777448655; h=from:subject:date:message-id:to:cc:mime-version:\n\t content-transfer-encoding:in-reply-to:references;\n\tbh=6b9GO4bt3gqfGSPPpPA2FX9bro+DbzrPQkDmfCWkm78=;\n\tb=PIFscuU1858CKMRFpyR3RpLpfM/ZbZx2g+q4gAhNF8lcixKRASq1/ZFF4ziBv2caVTSE7R\n\tpdspwggAeFXbPoq4KyIczhQuW1zVZYmnkT8n9aAJe+vT00Tj6/x1Yw8BOLwodqT+dfGbR4\n\tbvF7xNjtMdRi5w7FWuQcrv3g1l8meYVmrQGL1up2snoF2DGN64Z+iuhonlfOPC/j+4o0/U\n\t8qjn8g1MpPF6i3327C9fxX+YVSsjLIEnYfzhDaDEFWPu4cKQyOHgsUHOshPeQQDvRmF1j+\n\tmBMGeD9rW4SCfOlnd1YBMzB4QunW2oAiowdfgkQlVzZcksrTdKaLxhLzmU/k2w==","From":"Herve Codina <herve.codina@bootlin.com>","To":"Herve Codina <herve.codina@bootlin.com>,\n\tBartosz Golaszewski <brgl@kernel.org>,\n\tLinus Walleij <linusw@kernel.org>,\n\tLiam Girdwood <lgirdwood@gmail.com>,\n\tMark Brown <broonie@kernel.org>,\n\tRob Herring <robh@kernel.org>,\n\tKrzysztof Kozlowski <krzk+dt@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tSaravana Kannan <saravanak@kernel.org>,\n\tJaroslav Kysela <perex@perex.cz>,\n\tTakashi Iwai <tiwai@suse.com>","Cc":"linux-sound@vger.kernel.org,\n\tlinux-gpio@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tChristophe Leroy <christophe.leroy@csgroup.eu>,\n\tThomas Petazzoni <thomas.petazzoni@bootlin.com>","Subject":"[PATCH v2 03/17] ASoC: simple-amplifier: Remove DRV_NAME defined\n value","Date":"Wed, 29 Apr 2026 09:43:39 +0200","Message-ID":"<20260429074356.118420-4-herve.codina@bootlin.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260429074356.118420-1-herve.codina@bootlin.com>","References":"<20260429074356.118420-1-herve.codina@bootlin.com>","Precedence":"bulk","X-Mailing-List":"linux-gpio@vger.kernel.org","List-Id":"<linux-gpio.vger.kernel.org>","List-Subscribe":"<mailto:linux-gpio+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-gpio+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Last-TLS-Session-Version":"TLSv1.3"},"content":"DRV_NAME is defined and used only in the simple-amplifier driver\ndeclaration.\n\nRemove the useless defined and use directly the value in the driver\ndeclaration itself.\n\nSigned-off-by: Herve Codina <herve.codina@bootlin.com>\n---\n sound/soc/codecs/simple-amplifier.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)","diff":"diff --git a/sound/soc/codecs/simple-amplifier.c b/sound/soc/codecs/simple-amplifier.c\nindex d306c585b52b..41485445727d 100644\n--- a/sound/soc/codecs/simple-amplifier.c\n+++ b/sound/soc/codecs/simple-amplifier.c\n@@ -9,8 +9,6 @@\n #include <linux/regulator/consumer.h>\n #include <sound/soc.h>\n \n-#define DRV_NAME \"simple-amplifier\"\n-\n struct simple_amp {\n \tstruct gpio_desc *gpiod_enable;\n };\n@@ -97,7 +95,7 @@ MODULE_DEVICE_TABLE(of, simple_amp_ids);\n \n static struct platform_driver simple_amp_driver = {\n \t.driver = {\n-\t\t.name = DRV_NAME,\n+\t\t.name = \"simple-amplifier\",\n \t\t.of_match_table = of_match_ptr(simple_amp_ids),\n \t},\n \t.probe = simple_amp_probe,\n","prefixes":["v2","03/17"]}