Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1301527lqh; Mon, 6 May 2024 03:43:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbpSzO5VtZ70eqg22IJO8obdK2WEEMZQtFqhR679S2H/k7gAD+/CRupJcTkaKeLREwk8Yrp9dWyXgsD0Ou4XRCyCKocZe1JRr7Yk8M3w== X-Google-Smtp-Source: AGHT+IEpX/payYPz8JGC+ijocvtllPUy/PoeUMuRQrwgDvMEZJvSxqLPkZNEyKWx5uGWk7ITfv87 X-Received: by 2002:a05:6214:2488:b0:6a0:ae32:34c5 with SMTP id gi8-20020a056214248800b006a0ae3234c5mr11445142qvb.14.1714992209817; Mon, 06 May 2024 03:43:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714992209; cv=pass; d=google.com; s=arc-20160816; b=RrlDBVD7z8iDd6+vHhyFWBOEK+ULbljPTfJp09Ffq1pbVcWIxIS1fSobxhCHm1GoJE ky4+m+uFfMppmq3VrtUuyov71kQhW3pGxEDIz1L98Q5QD0SxbBX6TJgCwY4mDNtGVoOP ylQLEEUCt1q9d+a6duURfs3NbUuQFHFMriS1bhAtBvUW0cUpHIn2VZp+DRUtLBA8FkJ+ w7nEjC2WmQ3fFbmqZWyG6O4v41pljJMWSwcJypR7FxHX1WUlVGeg+bWa4qmCj88NasrR FMMJdxEr4BCuIK7NGhbMtWeyCQhRPndS5E1tlpf+LmzKiJL8h8uV9n7wp3M6FkUwZkzM ntqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UiZz9KC9jFIFcO10guUDoa2wRE35Np/R9y9L5ksGV/Q=; fh=3/Nke/+/Rvg28V3XbLoI42Lb1YDuozEMK+7wNQHNut0=; b=TeDC1tyXZxGSQ8bgjkgizXI9O3CZCu8fWYwkd8nDFDmMu0cj4F3UHMMlhRRcwgeAA0 Bf4e0tZVkQHi/ne4uFurDflYa1vhikudBk2LPXfknHrMpty+ArhosrHEsDOVx115pIvL WUAJQ6dWfs81RCojLu/T65FddcaVF5piB2vZrPMAukp2jZygS334Opm7OC/kVhZsLpud /zu70lDJuWNyyY/mDwgcEtBOKQzzvFDUuZhblInnSAeqX6SrQKgZ6x+KIVH/KLNN+1zH I+Dg6vof0tU0rVNIkI3754hz6Nq4LFAGEVbC+B9ZTnBk7W14yJBcJmTi784F8Zz+qWL6 Pe4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KKzenqEF; 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-169688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r6-20020a056214212600b006a0ab233d24si9915582qvc.47.2024.05.06.03.43.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 03:43:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KKzenqEF; 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-169688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169688-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 517FE1C21803 for ; Mon, 6 May 2024 10:43:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A4E7142E92; Mon, 6 May 2024 10:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KKzenqEF" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 ED9B275815; Mon, 6 May 2024 10:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714992171; cv=none; b=Q0odef+qcKQ3oEP7oHpK8d56lsWGbLpJvOZZlKNMMpv3UzeK777gpjNT7a+NW7/lkfqOW5JUndbOGG7IsESWggtT2RVn5+2iOp3nsEYlHFR+5rIiRxou9lNMjkkIriGPrC+HzPnvaqfE1NqGp3+dpueCmabEZMNe0P+L7x/PtW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714992171; c=relaxed/simple; bh=UiZz9KC9jFIFcO10guUDoa2wRE35Np/R9y9L5ksGV/Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ccPnhuE3eaYGmfVaxUwjTEsUfjDUJJYc8+E86DDdpFkbx1VG/F0Qm97dTGEnbna81ViX7K21MR21cNzFwLeef2P9Ao95soQW0uZEqPMBjsFc6RLH0851v8XDDUzyQwggJBj5iPwnYoBDU/YPlrqrpXeDhr73izLCTUOXrNoYhSY= 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=KKzenqEF; arc=none smtp.client-ip=209.85.210.178 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-pf1-f178.google.com with SMTP id d2e1a72fcca58-6f44a2d1e3dso1460892b3a.3; Mon, 06 May 2024 03:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714992169; x=1715596969; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=UiZz9KC9jFIFcO10guUDoa2wRE35Np/R9y9L5ksGV/Q=; b=KKzenqEFEbYnVHjhP3Q53umISSc2Jp38rl9URqBHEq2o+f21u/NtKNeUP+HeC6JlhA NetUPr/KruLHJZXXyjWN/uRtNRK1r6REv0KNaSzLuWvR5Rvmg9JY0NGBuoCzIo1suigM rJRaq9UKQ/VS7P00rRIuPwS7WArRfnpWiaW4Rpdgxj0dd58WGg2afQtbDlQ3GBg6xAkO vU62fEGhJ9+yfr6dA2b4+3jtWJd4fXvvDBCCSE/VgXNeEXIaSlNVjhjeqCB5gR7Qy++B ihQ1oEstF2nYXlacn3devijuGvwadaYI57dI1nLnenpZn5adFI73//Ycw/F48Ny5Gewu dhXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714992169; x=1715596969; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UiZz9KC9jFIFcO10guUDoa2wRE35Np/R9y9L5ksGV/Q=; b=nphuF/r0VjY3fZnKbpIyeM+5NfMlniG2vjTE2yUqVbp1gbkXdnXJmh6894oGC5ZipV 7zAkekE/F9opzvYlAXb8ITSCunhDp84/4tZNsDadOO5eef/v+uTlY/tsUk2qzVe9lqW1 lr0uLgc6irmQITlztHqKmrPenFDq0lbGmaj2d1X0k22hBDuqim7Pz9nHNFyFWi0sTCqP 90hQU65HY6aw+Nw5VWjvQ8XsnvUF+19w2tgTgjT6vxBjhvWmc46ywfghTi6BHz55QNjq 5zgWrwSBGlqgcmV80pthFQeoeZRMQI7KVTiA7m6ln5eTM8oW9OpsQv/mrzayN0kXTAoE E/4Q== X-Forwarded-Encrypted: i=1; AJvYcCU2XYZWmDUqhgwLas9Xlxo9ThF0w4qRm8lpwahp11Vu/2soqMN65sKyMrPZdh5nK+zjX+3tVNsL6z6zCUyU+EKbuYJaaQeqrEm2iVuvu3DuKIRXZLBp4gH+6DxE/91rX+GVauWUNdepdQ== X-Gm-Message-State: AOJu0YwlSL6soIgV4ZWBA/PXvocU5R5vX9CuMC08ubbXTRS5zskVsU0x 0P7rihFtVHqHWKPIOqmzUztlrAcTG5GGaILQC1NbvxXzyDPHhHjI X-Received: by 2002:a05:6a00:8cf:b0:6e5:43b5:953b with SMTP id s15-20020a056a0008cf00b006e543b5953bmr10617356pfu.14.1714992169137; Mon, 06 May 2024 03:42:49 -0700 (PDT) Received: from rigel (14-200-166-65.static.tpgi.com.au. [14.200.166.65]) by smtp.gmail.com with ESMTPSA id n23-20020a056a000d5700b006f43eccf19esm7198783pfv.35.2024.05.06.03.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 03:42:48 -0700 (PDT) Date: Mon, 6 May 2024 18:42:43 +0800 From: Kent Gibson To: Andy Shevchenko Cc: Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH v1 1/1] gpiolib: Discourage to use formatting strings in line names Message-ID: <20240506104243.GA47831@rigel> References: <20240505141420.627398-1-andy.shevchenko@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, May 06, 2024 at 01:39:05PM +0300, Andy Shevchenko wrote: > On Mon, May 6, 2024 at 10:19 AM Linus Walleij wrote: > > On Sun, May 5, 2024 at 4:14 PM Andy Shevchenko > > wrote: > > > > > Currently the documentation for line names allows to use %u inside > > > the alternative name. This is broken in character device approach > > > from day 1 and being in use solely in sysfs. > > > > > > Character device interface has a line number as a part of its address, > > > so the users better rely on it. Hence remove the misleading documentation. > > > > > > On top of that, there are no in-kernel users (out of 6, if I'm correct) > > > for such names and moreover if one exists it won't help in distinguishing > > > lines with the same naming as '%u' will also be in them and we will get > > > a warning in gpiochip_set_desc_names() for such cases. > > > > > > Signed-off-by: Andy Shevchenko > > > > Reviewed-by: Linus Walleij > > Thank you! > > Meanwhile, Cc'ing to Kent as well. > I saw it - makes total sense to me too. Reviewed-by: Kent Gibson