Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp831065rdb; Fri, 23 Feb 2024 00:58:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXSkWUf3KhlbMRYWW+3BmmulPy6/1OPC2Wzl+S1jMGr6KkoEe5KkboK4+EcvDyvJrxTzBSnYdyOdmF3gkqoX/YddFDNiScX66X3rHeZlw== X-Google-Smtp-Source: AGHT+IFrdrQd7lIczmy0/yaCaE6Fakvi24Ltw2SQ5umEWP+ALaYD/hxu4Rd7kzH41lcLr5voZvKO X-Received: by 2002:a05:6808:1406:b0:3c1:4e89:f119 with SMTP id w6-20020a056808140600b003c14e89f119mr1513011oiv.0.1708678686828; Fri, 23 Feb 2024 00:58:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708678686; cv=pass; d=google.com; s=arc-20160816; b=vU1FPbAZ4/5zXqsLyLBkoC/SBB6Ck1GnYJLAjzTTN7pQqSwfrSz0+rrMPauzvuXvYJ sm1haeJlywhVoPuUzEr4EYL9edBOY2dfs+vzmq80iiYWjAI+yiJIZN3aozF1RqSoaN71 tHhDdkNHbAjY5Ir6bmCze24lxyg1ZVmgsNDoRsgoPWI8EZBQIKdDtz5AarmzGZTnKfnZ /b//xYTqEMt2BLxnbiT/e17pj4NyUqypDUNEFaZ9scUZJsLVdrv8mgwOlqA9W5YjxPvC MxDEKVeT0uQwR0bhN3a82GxslEj36Kk27LaTSj6JLKetMG0YTv0i1wKEeUQjLkKBDj3U 70Bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=CjhPEhBa12TItlvxQZxsnnjXxJoCDUZerm30n59NmwU=; fh=2Dn7I4GHFiWJs4RikgMpQJacq31ylgvC5Ptn7MWyUdQ=; b=TPkWyH6iE2TkLytWiTZoBe1evGZEp/ozrpCSEoPiutQHcrLB1uKXPjT98ECBodvenV nEaXQWy8X1FFMmNxMf5o/RH0aYnQndt/Bi2ediy+9ETPwVigSpmBhDY7z8+savt06ruo PZTjOEUxKK14dlTF3Y8JSZvKpJNaz6ikaXCbwKEYhEX1VKpeDmPoW9EbcYpawKMyKKh2 ImV0f7VgPH8wH914nYBszDjtaxIVe80aLyv7Oeyrm4JfqlnrQVPq01H0pIU8/VQW4P0c O2zOOg5llY3/mFGlFs3KWIjnGXOmZxdNfOeKiwQlJpbHvRSNb9W8kU0p8OXtpQUyNyA8 opkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=hsc9L+4q; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-77959-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77959-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q4-20020a056a00084400b006e4e8e49f07si167687pfk.268.2024.02.23.00.58.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 00:58:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77959-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=hsc9L+4q; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-77959-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77959-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8228D281DDA for ; Fri, 23 Feb 2024 08:58:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4320B1AAD2; Fri, 23 Feb 2024 08:58:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="hsc9L+4q" Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) (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 0B8D018E11 for ; Fri, 23 Feb 2024 08:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708678679; cv=none; b=h8//Wrn0huc+HzUCxh7xumt5YkkXwY/zHaH8AGO/xOymruu3ryuJHicCqNRBoWEqwtqGlwWGypW7PKB/5Tk6vKVm1Axv2D9KrhL0OC0vw4NeNs/2nYiNCO6sMeXqOFY0pRs6bzcYvYXONlQAGVgM7WJGGFE6mqT8n6JGX7S5N6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708678679; c=relaxed/simple; bh=nlK5qHaZhiykL1gGFylKHCeTVd6rL0Q153oLIBBktCA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BJsYI7Wv42XRrdufnDKFo9zQn/pGCRFPvvIwlSTdZXpg5IpUlPNXxl13i6FIHElb8tUmYZPtbC1v3UbZfZI7a/6+sd5RxUtXpErhLkqG7DX9BVGOkqugQ7Hq8K6aXmXvdpyxNrObe9D7g6gISKRyVeD1Z/jYluWTovi89/Z3S4U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=hsc9L+4q; arc=none smtp.client-ip=209.85.217.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-vs1-f50.google.com with SMTP id ada2fe7eead31-46d60c75683so70877137.1 for ; Fri, 23 Feb 2024 00:57:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1708678677; x=1709283477; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CjhPEhBa12TItlvxQZxsnnjXxJoCDUZerm30n59NmwU=; b=hsc9L+4qeDS6W1HqxbjC7PeBfOfJt1ODkai83guOCktqMmL1LDOgoaLtMfyTRBkoWf xXQ1vbZ5r4/ojrbDZUCHa7J3Gy+qcXzl9mNM8XBfv2M3q9UlbVYvxD/lEto9KoVbVv24 FIwrLb+gFmcdh4GhjU24KSzyCK/d/78lBA0Til/50FYmnEQnW0PvqL+ARiNWnkfZbbPK 1+Dtb8u5s1cIgY8+n8W7Jn+RXGncrYfYOUoD1bXYgmkDhIQjCDPeZzvY7QwMe3gi1VSt GzKXdCIt79vNCMzhN/mZlSjzTjN227vvUasKylRDepNWUl3tKuO7y8P3gxGW1cuDG+zv QoeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708678677; x=1709283477; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CjhPEhBa12TItlvxQZxsnnjXxJoCDUZerm30n59NmwU=; b=tPNucMhZtAdLp2v4AkmoAh5Wze4G8jrW1yMQ1PzzzHgu1IrlwnS9wQXTD+ZTo6dvYQ b+kAeUZYpc53fblwZUy2UyHmL20CVrhpXmUijqdFfoI+eqv8Gb5ENyCN76PqxzNN0JmJ D1nG/TjKuqT+5gUVF7BSRD+eznHgSprLBwBjMma/rNrB1uYvJ1TSiFGzjl3VzvR+fsrt JqRGP9ZHoc9DNPXqUo2I1vzhu0K9UuSX9gOO+NkwZAh29bn7gOsAym3DIRBU/8uVp9Ct P9Fsc1IvdgzA5sgE34yhE2cvI2RjUK0+9LghQrRVI04gdPOjWieL3G98jN4UQ3sfRISz 4h5w== X-Forwarded-Encrypted: i=1; AJvYcCV/lalMS/mPm22PpsS7M6cFo/3SpQ9CHM4xsjub9icCgmxbwdNZjbJMZ/eQK1S4jTziEjjGqx63Aeqb7zTQM12mALTido0SmZe2wNCH X-Gm-Message-State: AOJu0YxWLOD1z/tquBDhj9+v3m1fI0oIfUoZN2IRphrgZWc1mfNJg3dt /mYFFEfDVjjjE6NC3lTphKa5TugRvSXSP7yUTNhm7VBmo92PRQ9lpgK6bVjIaSpdgRG57FPIDS2 tEX+wokNM7N+9wChKHx5c8N4zQDVzyssKPMYgJw== X-Received: by 2002:a05:6102:2910:b0:471:c4ad:4119 with SMTP id cz16-20020a056102291000b00471c4ad4119mr1380211vsb.8.1708678676895; Fri, 23 Feb 2024 00:57:56 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240220135431.22910-1-brgl@bgdev.pl> In-Reply-To: <20240220135431.22910-1-brgl@bgdev.pl> From: Bartosz Golaszewski Date: Fri, 23 Feb 2024 09:57:46 +0100 Message-ID: Subject: Re: [PATCH] gpio: sim: delimit the fwnode name with a ":" when generating labels To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 20, 2024 at 2:54=E2=80=AFPM Bartosz Golaszewski = wrote: > > From: Bartosz Golaszewski > > Typically, whenever a human-readable name is created for objects using > a software node, its name is delimited with ":" as dashes are often used > in other parts of the name. Make gpio-sim use the same pattern. This > results in better looking default names: > > gpio-sim.0:node0 > gpio-sim.0:node1 > gpio-sim.1:node0 > > Signed-off-by: Bartosz Golaszewski > --- > drivers/gpio/gpio-sim.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpio-sim.c b/drivers/gpio/gpio-sim.c > index c4106e37e6db..1f3dd95dd6da 100644 > --- a/drivers/gpio/gpio-sim.c > +++ b/drivers/gpio/gpio-sim.c > @@ -420,7 +420,7 @@ static int gpio_sim_add_bank(struct fwnode_handle *sw= node, struct device *dev) > > ret =3D fwnode_property_read_string(swnode, "gpio-sim,label", &la= bel); > if (ret) { > - label =3D devm_kasprintf(dev, GFP_KERNEL, "%s-%pfwP", > + label =3D devm_kasprintf(dev, GFP_KERNEL, "%s:%pfwP", > dev_name(dev), swnode); > if (!label) > return -ENOMEM; > @@ -833,7 +833,7 @@ static int gpio_sim_add_hogs(struct gpio_sim_device *= dev) > GFP_KERNEL); > else > hog->chip_label =3D kasprintf(GFP_KERNEL, > - "gpio-sim.%u-%pfw= P", > + "gpio-sim.%u:%pfw= P", > dev->id, > bank->swnode); > if (!hog->chip_label) { > -- > 2.40.1 > Patch applied. Bart