Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp572332lqt; Thu, 6 Jun 2024 11:31:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRFfOrlHSHmSm4p7RRvcdZGSOyyAyb7Vds6dvNn3FrYGBbaQIzMhyNEd3LxuMES4Uqxw4G6MJlPcIyzpLAPVtrCSat96jSrFpFncqv6w== X-Google-Smtp-Source: AGHT+IFm0k/3QLN6XyJR0d0a3s5tqwMVEnkwWlUZ12hLay2L4vXjaT3CdfT59uvo6I/dvgXSl9SG X-Received: by 2002:a17:903:41d0:b0:1f6:83c5:1f06 with SMTP id d9443c01a7336-1f6d02dda50mr5371775ad.28.1717698682803; Thu, 06 Jun 2024 11:31:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717698682; cv=pass; d=google.com; s=arc-20160816; b=ziEI0DBapBIoeABePVmLmt62nG2f9GjRg/nmwTZx57aBukIcB0mRQvXfL0I1/VJPCL 8a1kRVZGff6H0sym3jZFw3mQmc4/kaxnG8qjfQgxM1i2GNY99QJQ8MhK2bY5z/6rQOR1 OSARKsom5cJlHZWyzuK1alDwr5+J85r7IW7kKJfxLjzh1OUqTPSePckwIG4MtnrG9opR k3orEFMfFRVxbg3+S2WYPBXz5yIe19+YyM9L71JXNpkzlkN/xFBYIncQT6/s6QMiAY3Z SAFnWePKHtjkXhJuyfsww5/Iurpg5yuBrPOUaIuhZznMsy7FItFK+nvr48n7MOOyCRjE Di3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Bzgl98bn7gL5PMnWW0uBPTQqYfyzdwW025Pm9JSfbr4=; fh=ia+9JhAHvs7gwkWp6fnMI+iDgor3fRhV548DAQXjMWU=; b=f+t3gJP/HkFuEWtHwX4jBSgabRFRzD74CcPqeBwkCeFFRQEolFRV7lepXJMsL13J6J IgEiczSlGpcDPqAm6djrl9XHq7e8Ve5yfYpAneQJXPpNxxBkypPsJXOeylVbqoVR+853 kuK2dW/m4dfbyaU3X2g2c94+cMXC2oTRLc688d0J+C40sE8F/s1pfCOLCrywdFsVz6oD 4HbV7wq7cO/rzx6e7uug43AS5Ib6oFzFXVZQhWTvVKMC5yxQ1ERsMCAAwdlMZ6AuvMhu 7kXqoiG/+Y0qS+xRVjEYFzSUNS/Wvsi4s9/ce4FrI3l1mKc+TpRQxRxzA6JyLf+f1srz AjHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kiArbu5z; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-204845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7d604csi16022115ad.255.2024.06.06.11.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 11:31:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kiArbu5z; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-204845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4DF08B25FF3 for ; Thu, 6 Jun 2024 17:57:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3388C199255; Thu, 6 Jun 2024 17:57:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kiArbu5z" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC6A538DD4; Thu, 6 Jun 2024 17:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717696638; cv=none; b=JuhjPA3W3+7hiM8agupBEH8f935eo33fCwsPTwIV8/f35S/I/BMPEEOTwDXQ9ENZCUUGrIaLgipy+ik0AfTnprmiGw/6GI4oht4nlKq0FEoFaWK9tidMGvAHaovyZ5mu+dZOJHui5pXQCJd0oZIDT+3DyywYTKe49FhCwUtGmmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717696638; c=relaxed/simple; bh=gkCUgE7P7NzShBjfKiNhvn1MyEbe7axgv1vrcTnyD4w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CNlZjbZStwaugOAWWm+AtbUra+A99/mn6Eux2gmsMMMAy75ypXYUIT+U2cM7VsmWWRouDUQxszzkQUhMA3yvTJ4Sp4imgOGi+QKgyaVjuC9Kwo4BPm+XSBMH/4XEy4Q7iF4GwhZ5wX2JLMZTNDmybt45nBb7ZrgkZHShPqDOKEc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kiArbu5z; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-52b94ad88cbso1952161e87.0; Thu, 06 Jun 2024 10:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717696635; x=1718301435; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Bzgl98bn7gL5PMnWW0uBPTQqYfyzdwW025Pm9JSfbr4=; b=kiArbu5zpuqIRhfIF0CWwpTYZ064glSRwvBmT/0gVv7vkzhWAZcV+lXDRsHd/DZkRS GjXwmMAp+DnsQU4a1AS/fVbCh4Aku9yAqf4S/vJyHMoOBUxMs7VhkSelE4ttV7ND8Fu4 9Xmiqh+JXyoXvjTiQ5XuYrf0PpjTMjQx8mz36nh+DgxvPXSwsvb5V8BVuVVUK9xOo+om FkZpUNYMAO2Vu7li1KpY2ypiIf++AZygvZDoLy1naux6u1WJ67kAJbdXw6SP2TgxXd7F M3vBW8OM2w8rgZaY7YLD/ZP2qQctoO6tYr9Q33XQq7l9g22dlCJDguWTYH8D3fB+YpPy dA4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717696635; x=1718301435; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Bzgl98bn7gL5PMnWW0uBPTQqYfyzdwW025Pm9JSfbr4=; b=KFIdFCGM1tToRSU4SerFF9z9mNQfClRcQwyxb0wtTFoMjpoH80GTIm8NADC3tAf11K dPr0BChXsZGe/cOIPUqaX5LOAB2WVec4Yp8Ekx1Gzuw8EOAq7WEkb9//qvHFau8n83n4 CogqvS9khHF/OX0Xp1XmLxnfUvghszH70ZS7BoIdxe6TgcLYxZVbqoCQAp/GFh8mfTEd LUQTHq8JHDXoKPnN5Y3ZHFYcGOUOAg4GPKpY7XP89s2OJG5IJnMP/y4tfMD72cf7RWrP pSBI0EBAwgWsQPIq7z1BfX22umCe1Ux64+7WDXy/Ce0mJe8aRq/RwRBw7pzfaPuUr6oa kxxg== X-Forwarded-Encrypted: i=1; AJvYcCX7BSGNj9pWnpbKBp9V8vnS+mEeDn4BeZNGOc4DPETDbN8fkkhL5AxUG8OWaHxX2TkawB371GnphjxnSasFahheXZH1u7FynXihQ5LVe2vabOBf+ybo33eAeYsUn2AtCzI5OdFENPMs7a8CDGrZ2mej2CDh/mM88ClzAcMPAsa1i3+AKWPj X-Gm-Message-State: AOJu0YzmYavh6zjQovDmmqL5Ba23qhoNTd8YmtTSvbPz+/e8Qum4NbLi MIaVE6u0GU8wRSMgkmYnxTGJSzt8aD8c5hxupRMfSghhNtOuotSO X-Received: by 2002:ac2:4472:0:b0:52b:872f:228e with SMTP id 2adb3069b0e04-52bb9f8a542mr317359e87.41.1717696634711; Thu, 06 Jun 2024 10:57:14 -0700 (PDT) Received: from [10.0.0.42] (host-85-29-124-88.kaisa-laajakaista.fi. [85.29.124.88]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52bb423d528sm258759e87.191.2024.06.06.10.57.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jun 2024 10:57:14 -0700 (PDT) Message-ID: Date: Thu, 6 Jun 2024 21:00:47 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ASoC: ti: omap-hdmi: Fix too long driver name To: Primoz Fiser , Jarkko Nikula , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: upstream@lists.phytec.de References: <20240606070645.3519459-1-primoz.fiser@norik.com> Content-Language: en-US From: =?UTF-8?Q?P=C3=A9ter_Ujfalusi?= In-Reply-To: <20240606070645.3519459-1-primoz.fiser@norik.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 6/6/24 10:06 AM, Primoz Fiser wrote: > Set driver name to DRV_NAME. This simplifies the code and gets rid of > the following error messages: > > ASoC: driver name too long 'HDMI 58040000.encoder' -> 'HDMI_58040000_e' > > Signed-off-by: Primoz Fiser > --- > sound/soc/ti/omap-hdmi.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/sound/soc/ti/omap-hdmi.c b/sound/soc/ti/omap-hdmi.c > index 639bc83f4263..3f35eedeea41 100644 > --- a/sound/soc/ti/omap-hdmi.c > +++ b/sound/soc/ti/omap-hdmi.c > @@ -354,11 +354,7 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) > if (!card) > return -ENOMEM; > > - card->name = devm_kasprintf(dev, GFP_KERNEL, > - "HDMI %s", dev_name(ad->dssdev)); > - if (!card->name) > - return -ENOMEM; > - > + card->name = DRV_NAME; I think it would be better to name is simply "HDMI" instead > card->owner = THIS_MODULE; > card->dai_link = > devm_kzalloc(dev, sizeof(*(card->dai_link)), GFP_KERNEL); -- Péter