Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1224617lqh; Mon, 6 May 2024 00:19:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBZykgoEXFZVEJMAyya8n1Fb9y0uQzOPc8Ox4WliBxnvt1TE1hX9XCifUoZ9kUJX6OFzvsforuI7B7ikGVQ3uxxmQz2QgoXF1gzPBV7Q== X-Google-Smtp-Source: AGHT+IGrEhHega2+IkJFbnRLHKZxx7q7960x+/GcozPYYAQGWUDbHfzObH3IdhJRj+ehVml56Cly X-Received: by 2002:a17:902:d2c9:b0:1e8:2c8d:b74a with SMTP id n9-20020a170902d2c900b001e82c8db74amr11141511plc.10.1714979957020; Mon, 06 May 2024 00:19:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714979957; cv=pass; d=google.com; s=arc-20160816; b=POxx3V9RlJQKP0DIXwKasB+IWm0fqrNuC3owVvjm0qM09bNn7D7DZ01zI5CBb0yz9w mtYriZidZiDPOiyMSyMK7z5I+LAakQJ7QlMtIYkWQcNXN2Gd8GBoEuknWoJqxh6/dSHc ffntI2cMHwon+Ahx94Q0fU1ObUMCZJD+SRg7AiNOuoGn/rTOdJFEnPdWKDeyT9QFsHy5 YxB9NQSi0i5B4zABzkBiyKJJNqEqzYa70mUfO+NG+ROiPu/ojzUijIg9n8p53AggKMrX PiAk/kfJSFEYxL87KafRzV99iBcpEvRKvoGcRN73H/5nhAwG9igg8dKVDxNoH75dw+Tc gPRA== 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=BcjeHuKCFNt3g0xtf3X7hwL26jrEaUX08KPgkWV/Fm0=; fh=AtcC3xI9xK4f/0EaqwWk//L1pGRgI+MsGrzNo0RZfws=; b=ozbCWBWJWOUSh3QHa/8TIpe4qw1iobTPrunJxpSbhjPMtFGJuAHrORHgyeFdJ6ZNwB MnM54xw1UO98bqp31kz0CQ3KiJiNT5gJOQE0KC6XCYcEpiab4/xAVpkSP3M+jM0c9Mai mmgvVJGBgsEqeSBt63iUHR61nUQQKUFOED9voA3F+4mBtb/lrnHfHrS/2ty8jxeAIwex hG0ju18GC8+6D87+6CWXxUg4iWPY1niE2oSQ+sA2SR9N/XAwkkRFKURDAjFe3Wi+GOhk vEgGj4LDoryUGC2O10W+OvW0JSa4gbvNbLTzXN1Mtw5G3qsBMSxio9oudcDIyfSSqo/3 GpDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ayoeRg8p; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-169403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p3-20020a170902780300b001ed33483dd0si6049682pll.248.2024.05.06.00.19.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 00:19:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169403-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=@linaro.org header.s=google header.b=ayoeRg8p; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-169403-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 80DF0281506 for ; Mon, 6 May 2024 07:19:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CF897D412; Mon, 6 May 2024 07:19:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ayoeRg8p" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.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 C97894D9E2 for ; Mon, 6 May 2024 07:19:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979952; cv=none; b=lr51azGeASGxOLdxyADv1U1NTFmdXycqrrly/Urx9ktgQlpZLZ4fm8RePVICPVDdWuEb05qxxDq7I3hNwyAXSzFofKjPqLpC2YXOV0Qjn4Tn2QXv9Yz6EYlGBRkBP4z0CzNMkpOQfX16l6vCt47nLZ9HhtjUiQ7calGICj3H7Wo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979952; c=relaxed/simple; bh=BcjeHuKCFNt3g0xtf3X7hwL26jrEaUX08KPgkWV/Fm0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=e11T7PHZhytsCCkcxHKHsyJPj9WOaFli6leW2hxKlggo3e8x9kmoF1wb+ouyPavvEZBM6nNF8RuSZGK1TjinV57c7Czy/s7JhyoaQDkGQPM8CwE9+l6Ju1lgHlQisL1oJL/gL7G90oD5/1wWB0FlBV66vusIv4XOrGRsgF5VzNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ayoeRg8p; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-de45dba157cso1113666276.3 for ; Mon, 06 May 2024 00:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714979949; x=1715584749; 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=BcjeHuKCFNt3g0xtf3X7hwL26jrEaUX08KPgkWV/Fm0=; b=ayoeRg8plY6k2zAO0hGLqfqQUHiFqYC3XSbQ5n6VYswp/HLe03594rVXUY38ANM1F9 XLdnIRilVQ8ketGFiwMW+s5U4NkVyD4WVZjf+TLSmNZAMCd5+Zv9X0X+AdpqhxIjhED9 ijtHQ57Ehck/6W36SvkagRR9tu5PPUw5oYgp0pss+Rasv9CxoQHaD+CskIBG/I2tN7TY m7AH6p7DnKTvxGWY0dXBvkCDEBFdwnFszxfahUgCLLIHz6JNltfNz6c3jf0B3g2My8g7 rw6fbV+Sfos0PXu3OQSvl2RJ+5om/PrCcioTBQ3TttjYSK+wGUyC+m2OqVzEju4EiTCS Qr+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714979949; x=1715584749; 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=BcjeHuKCFNt3g0xtf3X7hwL26jrEaUX08KPgkWV/Fm0=; b=etY9vNJNsBf5nDegiW9AHba3w08PJnWpel50o5K67KeM8HxJRQX7lx5yi8iEJTuFjt P+B1py8HYvwA6+DiTosoKnGA5ASn6tfBV0Lqv8XmYtqp4RCjK/N0os5bXfxbFkit3SMs YDzC8Sky0j5hWtYWbQt4zQjYAWED4gC7mrNINNhxWipQlrMw5iu8UsZ8n08AkftfTdu8 WPxkTKAedQhyJmEGp49YOtdJK5J3VcTHZ4aLs/SRmNjk+wXdOKXSCE8Apn9uGbVypRaO Z5G9iqhW7b3Gts9hVrmPER8V8CnUQqQeqaqnHX4vwqMBudEXkBZYsWD0Lywd8D0rHXdD Viaw== X-Forwarded-Encrypted: i=1; AJvYcCUg3A+f/AqXffzYSU2DNKYA9xSS8qrCRiydlG8mZw/O0SPZrN8uYGBQhRUlO62zWHwDOVAIRGX+v5qGLND8MbZFgT8eyhvzn2dj2x8/ X-Gm-Message-State: AOJu0YxN2nEqK9eibsGWdAYWjQhx3UmQ6zRTnmK42lDfeENaIiuK8MNF YwXHuehGsgClXyK4JChWOoGXZ5gim1P/2L8P256ktjDhTX70CB3/RQrVTzxvMmflxhvsFZ7VsqF ax/y9aEHRATrfl2tNxLmA/J18832XgcbOioV5Cw== X-Received: by 2002:a5b:e92:0:b0:de6:13a2:651a with SMTP id z18-20020a5b0e92000000b00de613a2651amr3365815ybr.39.1714979948907; Mon, 06 May 2024 00:19:08 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240505141420.627398-1-andy.shevchenko@gmail.com> In-Reply-To: <20240505141420.627398-1-andy.shevchenko@gmail.com> From: Linus Walleij Date: Mon, 6 May 2024 09:18:57 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] gpiolib: Discourage to use formatting strings in line names To: Andy Shevchenko Cc: Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , =?UTF-8?B?TWFyZWsgQmVow7pu?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 5, 2024 at 4:14=E2=80=AFPM 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 Yours, Linus Walleij