Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6587105rwl; Mon, 9 Jan 2023 10:11:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvo32dy4ChRs7RxaLxZ7QSlLGRe6nqryKlYtVPELAA/w9ZmQzO8YcUSSChlQnuRdpW87eBD X-Received: by 2002:a05:6a00:18a3:b0:582:197e:f6c1 with SMTP id x35-20020a056a0018a300b00582197ef6c1mr49419613pfh.4.1673287889256; Mon, 09 Jan 2023 10:11:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673287889; cv=none; d=google.com; s=arc-20160816; b=pK1N16nM1Le10gPOVf22upDfXe/HfZrvyp8IepmDz51FbxsWoBfC/Mhr2b79qo0q4o zC+fiiJkKTs4+TzWfRyBL+aPN3Cx46FxBnssRqq4Zq5jpdJAHDI6hFzF0rV11VeXL+gB oSCJYID1rsLDu9IteX01IMHdi/58BKZDoCiOFY/hAWl86/VhBQ0FZ5xaXb1Bz+ZRyloY XBwNkiKQ5xFVziDmJIvv8p/L2Mz2yla9L4vXol615pWxYqBoxc5K4I3Z10T61nLMvqfX Tl8A6vLMylyum1PDMcJNihupa5GqaUaRVvdEIioZRok4gy6/olLEI/2Pqhj1J+Hwmmm5 spOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a8ixXd9TVQBAyfiGIXH5jnMFIj3jfWX5FStOyjMg1t0=; b=Ms10Fb8z4qoC+5IV/5GYVv692EavGNuZ4NxUJbW+GbDEBg+avg1l7N4uPAMss7wXmE TK9Sns4bGfAI2ZRHG/JnHucnpukhwR8OJiGaPnLFsYsocrnNtkGUhfvgLYWijtnno411 tNG+ikzQzZ/pzWrFSRtgf/q+72HiwjTjS4G+jmqkkrZtbXzMUiUK041Aaao2SBTQCHcD paJYo1xN/aGmTjPdnd3cppxFL8IWVE1sGp09BuVyBE8WC5ewBZiVxaSKOzDkzBCOzLv2 DuGeSq7rxRUjl7XCTplgBiUgiEoFb+k4mj/ezN9zeuZspdiDUlXK5uXGAP0uutJKPddH h3bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=kZz+X+m8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a056a00085500b00565ba4c501asi10404751pfk.276.2023.01.09.10.11.22; Mon, 09 Jan 2023 10:11:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=kZz+X+m8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237442AbjAISGT (ORCPT + 53 others); Mon, 9 Jan 2023 13:06:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237411AbjAISFv (ORCPT ); Mon, 9 Jan 2023 13:05:51 -0500 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3933AB3A; Mon, 9 Jan 2023 10:05:16 -0800 (PST) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id B562C1C09F6; Mon, 9 Jan 2023 19:05:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1673287514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a8ixXd9TVQBAyfiGIXH5jnMFIj3jfWX5FStOyjMg1t0=; b=kZz+X+m88xTC5wo4EsR6tsPToGsRRkHscnRve1geahx+WhEA/LfOTnjZ6RhN0fQb9jYNTg Hy4VkO+wwSInvTRO+q7sF3yBx6IDfb1hpV/UOVED92aRZVN+hV6X1LDGjWd9S2PgDYypc2 gxSqiKZIaMdEuJfnfrMgxHPRlQXDRrA= Date: Mon, 9 Jan 2023 19:05:14 +0100 From: Pavel Machek To: Ian Pilcher Cc: lee@kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, kabel@kernel.org Subject: Re: [PATCH v13 1/2] docs: Add block device (blkdev) LED trigger documentation Message-ID: References: <20221227225226.546489-1-arequipeno@gmail.com> <20221227225226.546489-2-arequipeno@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pTfp1MHXw0zAMTER" Content-Disposition: inline In-Reply-To: <20221227225226.546489-2-arequipeno@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pTfp1MHXw0zAMTER Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! This is the crazy interface I'm complaining about: > * /sys/class/leds//link_dev_by_path > * /sys/class/leds//unlink_dev_by_path > * /sys/class/leds//unlink_dev_by_name > * /sys/class/leds//linked_devices Echoing filenames into files (with symlink resolution) is quite strange, is it? As is having two different unlink interfaces. I believe we do have other places handling similar N:M configuration problems, so this should be similar to some of them. Obvious improvement would be having only "link_dev_by_name" and "unlink_dev_by_name", but then, unlink should really be rm. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --pTfp1MHXw0zAMTER Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCY7xXWgAKCRAw5/Bqldv6 8pVvAJ0flK8MI/FofLXmIrMV1cmW6/qFgQCeKQh+kE0AF57LI1iY2SJ4Wjh7IbM= =oY/d -----END PGP SIGNATURE----- --pTfp1MHXw0zAMTER--