Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp630118ybh; Wed, 15 Jul 2020 10:57:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqP9tsPuhMyY6CDUfP+6f6vpPeVaeymvuIp5V1S3P8tAjE7My3mq8emzvqds/9hLkEAKFb X-Received: by 2002:a17:906:924d:: with SMTP id c13mr134714ejx.518.1594835860797; Wed, 15 Jul 2020 10:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594835860; cv=none; d=google.com; s=arc-20160816; b=FaN21bWn4XwKvj+5VCw+mDtNKDOeumxQwD8b7qpC2bLgzJuIOX9+N7Pw3qbLm82i2v WaOIS6lxmRXcUs2wxxWRwVylEnyDzUnvOXh2DxviBZdcfAIrLCI0fJQouIYtG/ESFaNI blEt5QfUxFaAt3sgvFFwCCTevCymyErq6uI5eYS/ZfhO9SzMigqF9zCadTNpAVVSH6nT +P623LueFjr82oz7OwrTLR9gNF3R7jCS7OxntGym7vRN3BER3D0L55+bi8OWXI5YXdBT /TltuqJ67A85yHXgThUaJ1YcCvMRXYEctdMv3aD652SBLmqlNIXyjyoRuT4G8UI8IUgu 59zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=xT88ESdPeKx/9gmoR9gThgSo6Rd499DWjI9izfMKuFI=; b=Ea9ApFhg0AlTwxeqNbAzpIAKxWwEcsw42TJuf0tcdl2GZo+sFZ6uC4uN3lSvRflRz4 jOMqUhFkcGpsKY6ymZGGVwEF0TUwr9cpfZbqHERIwojz9ipzNAfDF0fPiZPNpbUOLbzy d95R1L6/UvoTuGrFb2hAVMM7yQgo+u2SoDGKyKQvxW6cRxnmNuQZsj6yUSzfml/2a1i7 QX+ToISarIeUQ6s+pOnxz1oEfsUD0bXMIKUDqtpQjjdQky7oLBOuOjco9tRFSp77DC5l cFE9mXl5UTfUxJJLhN46WBVV5dNMpVoSHrvU8y/ywDGW5WmxqVJIejL/pEUgXNNXCb+T yv4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=cH4CfOD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si1659331edq.122.2020.07.15.10.57.17; Wed, 15 Jul 2020 10:57:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=cH4CfOD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbgGORzZ (ORCPT + 99 others); Wed, 15 Jul 2020 13:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbgGORzZ (ORCPT ); Wed, 15 Jul 2020 13:55:25 -0400 Received: from mail.nic.cz (lists.nic.cz [IPv6:2001:1488:800:400::400]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11DCDC061755; Wed, 15 Jul 2020 10:55:25 -0700 (PDT) Received: from dellmb.labs.office.nic.cz (unknown [IPv6:2001:1488:fffe:6:cac7:3539:7f1f:463]) by mail.nic.cz (Postfix) with ESMTPSA id 45215140968; Wed, 15 Jul 2020 19:55:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1594835722; bh=7+9idVmjLR/tQkAJdiSW4x+SiZuCUKSlqB3cJYxNQh8=; h=Date:From:To; b=cH4CfOD91qVcGKacdO4AAbynkr+IuLHFqwAPS2nlXRgZOkqzKO8+tr5HK1PKIGyr/ Z6ZX628VXkp2nNs4mk4/OhUeeGNYxnZkYE4+xeUbsfmddA3z3WYC4X9OIFCc+k21Im iZ1uFUxwmxqfHijcc5niHDgiwPNk1XiRK1lEWBgM= Date: Wed, 15 Jul 2020 19:55:21 +0200 From: Marek =?ISO-8859-1?Q?Beh=FAn?= To: Pavel Machek Cc: Ondrej Jirman , linux-kernel@vger.kernel.org, Jacek Anaszewski , Dan Murphy , "open list:LED SUBSYSTEM" Subject: Re: [PATCH RFC] leds: Add support for per-LED device triggers Message-ID: <20200715195521.330824f1@dellmb.labs.office.nic.cz> In-Reply-To: <20200715190727.4bb528dc@dellmb.labs.office.nic.cz> References: <20200702144712.1994685-1-megous@megous.com> <20200711100409.GA18901@amd> <20200715190727.4bb528dc@dellmb.labs.office.nic.cz> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-100.0 required=5.9 tests=SHORTCIRCUIT, USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jul 2020 19:07:27 +0200 Marek Beh=C3=BAn wrote: > This should instead check: > the names are same and both trigger have the same type (either none > or same). In that case return -EEXIST. My bad, this is of course wrong. -EEXIST should be returned if the names are same and triggers have same type or one of them has no type.