Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp562766rdh; Tue, 19 Dec 2023 07:09:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IG62963EUKpNfDM6JHpMLvaSkhwXK+4vYuIAMgK77fyCZQhUF7T29C/y+QKppdxc8pFfW4x X-Received: by 2002:a50:d698:0:b0:54c:bb9c:4b88 with SMTP id r24-20020a50d698000000b0054cbb9c4b88mr1280612edi.5.1702998576733; Tue, 19 Dec 2023 07:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702998576; cv=none; d=google.com; s=arc-20160816; b=PGrZ5OpSZrwkngGHHDYFi3BLMOab1y6E9v6W5WCal68uHpeb87KxoqSCaSrOoJWFT0 tyJeyeVM8l/CU1BBcjDDp7Lokge9CkjPCgiX1mCqF9zi5mS2hGLTZUPsErQkVv2E7YrK ZYQchh/Ju4l7JpBNfm4lxAXB4hzcgY6HlSRJRI58UtM5gupxXgLYGJkWJ6jF/mg68JPt RxYxZl+a0OwelC2iUHxSTZN2xBZGhYTiA5+qslUZCqKGig5owsefv5M1zSYFdtQ0dQS+ VMzVWRy4EH5fwnLnbEiac+y/a6rA5D8jaofO7zQYiFGjuEMYeP2r+vbRzIZnokFjdaaa 52nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zQaLYjYBXcfRuKNABTIkZjF+l5ZguY6YkJQC0ZzCdeM=; fh=wEQAHaKgzPbHQOIN0F+VR3nX8Jrax7PB5FIJNva42xU=; b=Fm5rA5rFgxmtrSs+d/6iCTi4wIgvCN/DyFIRcnzDrd3iyXPLqN8QxPBak6vSYhl7sK aPsDbrnj/uN7bTX++SLbfxnnWykGKDoUe/BaKqObwi59hgNs4WdFimof1j1RmcNY9Iif 8omdquccIOtUXIag6MJzg64cHofp38pUhG7ibnrw1pcQmg/aCXPyWRxpPrYLFF0VEDKt Tj9x36GCD8hJhnj2KoLooERWpwpDr4kTk47ZkGT5jnoUw60/AzlBJhdmvXCXCHF8rGp1 iZJ4GI1vpEXQpf+oystg73RfPmTZEud61/d/gRTbOxZkmRcgVrLvcUvGinb0Ab3ZoRG2 XFMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Lxn1w0E6; spf=pass (google.com: domain of linux-kernel+bounces-5449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5449-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x7-20020a05640226c700b005537945c411si1198227edd.411.2023.12.19.07.09.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:09:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Lxn1w0E6; spf=pass (google.com: domain of linux-kernel+bounces-5449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5449-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 00E001F253FF for ; Tue, 19 Dec 2023 15:07:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1052B1C6BB; Tue, 19 Dec 2023 15:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lxn1w0E6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 1B92C1CA82; Tue, 19 Dec 2023 15:06:50 +0000 (UTC) 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-f174.google.com with SMTP id d2e1a72fcca58-6d939e2f594so449355b3a.3; Tue, 19 Dec 2023 07:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702998410; x=1703603210; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zQaLYjYBXcfRuKNABTIkZjF+l5ZguY6YkJQC0ZzCdeM=; b=Lxn1w0E6z5WbooOQpBvcPB3xzQuTskg+vVBb+ZwJqIwMPBxpe3ROxJO4fSe67euHQ/ knS8LL5VpvHkMoI6FfD8NhFNAJMLR5WzglA4Ghif7j41V/t7t1OBtq+iKiQ2sT1+lrCa 3zcYnBs7lVVPiFN39RN8INX8HYMneTnhsG0ybRBG7UTBC0WA4GEFIpDF2Y/hauJBtHY1 DaYlq++hobaBGtZzllsarO39QR1I9rStWZ4vXMeHl7gsm8sLp8m51hcAkfVXoJ7IanWI vEiSpWkXTo3emqUZE/+K2BVXEFYh1rEbRNTLMVbvoJKgTlEJJzmQTEFOHYbbX5V7YuXL 7IKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702998410; x=1703603210; h=in-reply-to: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=zQaLYjYBXcfRuKNABTIkZjF+l5ZguY6YkJQC0ZzCdeM=; b=JCUFoDxXHByjePk70Nt5nzJe34tJV4EpbIol3kPlXi1ACOTdSH9zAPx4umBPGnTWm8 cEMjj5mAVqFGMdagy8dDGjE6I10lAjCJGNmK6+oaOkbmrBnkwoDXSQt+FFEPWY9pB/9J wbx70VQ6QCrxCuqXBy80hEiGz7bOdM45FscYZewSTGm0XwQ7px/oZDuePSuQFAKXFU8V EEgMqnY2fjRhggo7DZKnk3OpWsMcYh6eaQjL/K9OBAy0YuzQZKO103g9Mf3NUV6dPbk2 A0ejL6W5KAwT/rxPzsq4nK4b6mFhGWSgX7EMuYx6QzzmwltMEJ9g92y4NHYXqvkgm+HC QvfA== X-Gm-Message-State: AOJu0YwqklhvCDjkUH+uDUOXWnyLo2d1pv2Irn5qZ9TG4G8pyKK+AFNQ AI/wtVf/o/a1MO4y6dr+oMGRMHNbGhQ= X-Received: by 2002:a05:6a00:9390:b0:6d9:96d:81f5 with SMTP id ka16-20020a056a00939000b006d9096d81f5mr2589907pfb.15.1702998410316; Tue, 19 Dec 2023 07:06:50 -0800 (PST) Received: from rigel (60-241-235-125.tpgi.com.au. [60.241.235.125]) by smtp.gmail.com with ESMTPSA id g14-20020a62e30e000000b006d34571a471sm6245067pfh.29.2023.12.19.07.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:06:49 -0800 (PST) Date: Tue, 19 Dec 2023 23:06:45 +0800 From: Kent Gibson To: Bartosz Golaszewski Cc: Linus Walleij , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH] gpiolib: use __counted_by() for GPIO descriptors Message-ID: References: <20231219125706.23284-1-brgl@bgdev.pl> 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=us-ascii Content-Disposition: inline In-Reply-To: <20231219125706.23284-1-brgl@bgdev.pl> On Tue, Dec 19, 2023 at 01:57:06PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Pull the array of GPIO descriptors into struct gpio_device as a flexible > array and use __counted_by() to control its size. > Looks ok to me, though that might be because it looks a lot like cdev's struct linereq. Cheers, Kent.