Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1889812rdb; Tue, 20 Feb 2024 09:54:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVw13IPn5uP1MfDPJxLvKGoKHipQV8rCGcjZw9nEqhflLOzNgTjInFrApLvJAX/O/qYqNGJmklglqzIpkz/7sTxRhWLAV+7gfK+pHYgNA== X-Google-Smtp-Source: AGHT+IE17X7PoBaeObx/Q93h+dCj7oH+LzgBl04oj5CaDrwEnnjsieyLiK9rcPqYVDPE4rYpgow/ X-Received: by 2002:a05:6871:549:b0:21e:ff3f:938d with SMTP id t9-20020a056871054900b0021eff3f938dmr4847399oal.48.1708451695331; Tue, 20 Feb 2024 09:54:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708451695; cv=pass; d=google.com; s=arc-20160816; b=MRu5xVBR84ybodt2quCyx14eR75up56Y74LB8TmpVwFxOcMBqP1dP8dIew0bxv4VLk 28jsYYN7uM2FghQXAsVLfBO/zTt/hlBHNMyo+LhNOKedmQLoHxe74G+c1j7GwFZwNsQm Tr0VYuhHfRki7jR7puBkS7Hzo4G72zhe1spdvn1bvZ6bm7ct4nl4W0vBm23kpljqJtuS nAxcURePm72xNf5JqqVj52p4CCA/hFW2kkAObadD6tGWLXLMfj2rNRt/C0cuuP6Ek3Ra mH9rCX97wcTBopQRp540Yghx6EorgOO53yIoOXGZ53jsNEbcg+TTyleffxCGDwJxuuyF x4HA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=4z6QC+M8rLwpgXw1ZcOkKOzv+dqQjnxMBuKDEQ++J9U=; fh=actNLbEkyjTWUhjmYiuhu+eTPcHeCZgW/7EY4ouWcek=; b=drvZvb+4F6R2F8qdDhmiNQNsvtJeytrlU3sDdkBi+dmRLssmmqAEX5C+R0S02Evssc rANqkFzbw5X7i9K4H/vspnYm+2pz5Tj1Vtq/sdtUR18k7MGiBWM8o+KBN2hcR+Cwmzn3 +H9zU41pQttQ5cFY40H88JEUoPiONeJhJhFPeNll2WTT4Kw6VxV+0FhtjFnyk0w1PcJs WTc404SmnDW+i/b0ZiNF3a1+1PxgaqLUyKS5y7JJjevt5i8z6W1Y6KEvhuWChFB2lLXZ SOBdZ+NywrwFyU3IluotF28L2ze4X77S2uMGuT1GTzm4LdqZDTzVt+hPSj7/dha2lO3O 1TLQ==; 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=PRJWnwET; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-73121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73121-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b19-20020a656693000000b005dc89ac3d7csi6489362pgw.329.2024.02.20.09.54.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 09:54:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=PRJWnwET; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-73121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73121-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 F2432288CD4 for ; Tue, 20 Feb 2024 13:56:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AEBF6BB2A; Tue, 20 Feb 2024 13:54:43 +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="PRJWnwET" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 164E369E12 for ; Tue, 20 Feb 2024 13:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708437282; cv=none; b=S8vQJsBxcP4G/DloA7CVM0EfrQjryka8O7vcsM/M0xJADBoVX9038We2ENtMSX1rfVNGQX2PPafJLnI3TzalHQca/HgKEkICK2HhIgEE+KYmIjNBeBWNG/jguqTLH738ZpUI2W/hnkwAjLxpkDenqSwfVCfL8DbyW3/8QzAkNmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708437282; c=relaxed/simple; bh=vhKYdP7Qcdl4LkhlN58vv/A0U9JCapkwita7zLO8rvU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SAMcJfJMnobhT+QuV8dpkPI0ZPvF3CFtf+bOMWy3gIZE1eh/xsO8T8tJ9+SKDfQ1WSGunoBOLcL0e14gSut8GNdsXS+W3gZmQWEuau9pilh+VnlUyn8KWXEHXg/ww/chvGFl64YDfYP6QsBJeMXbEY2zGp6Djz1QePoHvgJ+8hc= 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=PRJWnwET; arc=none smtp.client-ip=209.85.208.169 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-lj1-f169.google.com with SMTP id 38308e7fff4ca-2d1094b5568so72427171fa.1 for ; Tue, 20 Feb 2024 05:54:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1708437279; x=1709042079; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4z6QC+M8rLwpgXw1ZcOkKOzv+dqQjnxMBuKDEQ++J9U=; b=PRJWnwETGQZJyL2+nPorLqBGIhODkpHMtQ1vBaERAP+q5ze9DWGyOLVtsKjE53O/V2 ux5jXdoFWqZW6inTJQvsWS3Yifrb7vVsx4KQ5Qoja93wK1o1me3DpE6rj30zHUQECVEN ik/8UwoYai/Srj/JaltXF9kdPEI7BY7j5AlEQQOw2YK65quf4JmSYDh1ZBrNCB1KTJXl zljJOWvLcJLfzBFL8PBxgrhVpJmFPFumFWeIySAem1aprXi6ZphefFCgNj5rSEOWV14I k+Mc2KsRuyRbcnwUkLSCdrMGz8qaJQjX+zyTyYi8QVLXWqQe/R95/MmaX33gIKqbMkZv nO+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708437279; x=1709042079; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4z6QC+M8rLwpgXw1ZcOkKOzv+dqQjnxMBuKDEQ++J9U=; b=ZS8i0oS7oru5Xhe6FrwpqFMts27tDIzHBbl/ZjzB8bKrvQj+ie3pJY7gO+2123tPY+ zvvsvsgIBuJkC47Y5Sa4mFcTfBmzpcvu6rjbY7jV+bkB0TRvxPL7G649DlxRUFF0IfL4 u4Cc40Le+xBec5fw+dbQSTVgjvBAGIZfmAQZ4BWyXYjbx+q9CeCcLY/88kD/lwtO/GT6 SMdygLJxvRQZ+ga+yoXUqvmMWy0GJqnfa+iEIQ0D6F9Y8u9p6Z4LcAKSWn/lcSiZOemu B4sH9wkR7NWCCgLQOR6uEX+U0SdbztEY1y41W5ZOMjlU5C1gYtaA65kiAifcf2XkQDfd t0ZA== X-Forwarded-Encrypted: i=1; AJvYcCVnanqIkDP9vfTqwT/OUDgzJ8z3nmOOwTTFZK+RCeNYx38ZNk15r5vjVPecNGL3RyBVMCISMgsFqWUdZUrkdZudUSUk2aEaUbciDUfs X-Gm-Message-State: AOJu0YxuwOurIQr81mPnCwzSlmqF8clQ8AmUXVWJqfBY65fT4e0w7Hg2 4/tdmCLIZtM549x/f+VjoLRJQMth2fhEBkrqxDCtEfojFT1XnI79MOanoF/a0ZHZou/51wPeuOO q X-Received: by 2002:a2e:908c:0:b0:2d2:3b6a:b90a with SMTP id l12-20020a2e908c000000b002d23b6ab90amr3499040ljg.51.1708437279163; Tue, 20 Feb 2024 05:54:39 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:c6ce:c6a0:43ac:8f8e]) by smtp.gmail.com with ESMTPSA id m4-20020a05600c280400b0040fe308ff25sm14441818wmb.24.2024.02.20.05.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 05:54:38 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] gpio: sim: delimit the fwnode name with a ":" when generating labels Date: Tue, 20 Feb 2024 14:54:31 +0100 Message-Id: <20240220135431.22910-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 *swnode, struct device *dev) ret = fwnode_property_read_string(swnode, "gpio-sim,label", &label); if (ret) { - label = devm_kasprintf(dev, GFP_KERNEL, "%s-%pfwP", + label = 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 = kasprintf(GFP_KERNEL, - "gpio-sim.%u-%pfwP", + "gpio-sim.%u:%pfwP", dev->id, bank->swnode); if (!hog->chip_label) { -- 2.40.1