Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp316102rdh; Wed, 7 Feb 2024 05:49:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVLcv+n58IFeycbv/9vNqwcOFEQaD2QLb3pYAFVumRBMOpEd2x+kgVhX4cVN2miVC5x1wz//rB+OBtITtqBiSyaaKs2KpaIW/H++wrQKg== X-Google-Smtp-Source: AGHT+IEsVnI1SktUEDgs6O9a6LYjGnjVXkPkUnIbNF8T5kqwhmb7rPmJYqFtAtr5SGt5sYrWSFZb X-Received: by 2002:aa7:d40b:0:b0:55f:2c48:abe0 with SMTP id z11-20020aa7d40b000000b0055f2c48abe0mr4301177edq.23.1707313788062; Wed, 07 Feb 2024 05:49:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707313788; cv=pass; d=google.com; s=arc-20160816; b=StvvU9A+Y08oxFEFzXn/jsvnQmXU44610HzfCRFghx4kF/qAXrYslHt7Uia0hD+MGM TFRjT3LEB1fFkfzwc4M6Imi8kiKH8kM9Rel96K0kD56YAfBZ2bhGF6BzasBvi3S1pyYx RgH61LjaFbhWLDdLsdomK6Cz1Cc2x2Mbkw+wGXvXRDgoo3Hm/+mpRBGWzKgdstDIGe6B Uo9/opnIibLZe9KenGjdnp7GPe+N9OBy0Ah+1ETk73Fi6H5RDzV6sH5f7iNlHCUGmiT6 NInLbEXEqszO+pOyUk3pBhlXJhOrPifzWSylQniA4hARDRJSRz37rbSMdw0PIo2DsVt7 WK4Q== 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=czs2GKrxBSoEqsoNLb/GHBGfnv0DDDjXSA6ui/JN7fg=; fh=PpKo6QNlcAZzMpE5QCCWECQruC1j7r+n+j2cAR2GoRU=; b=Q6pUxOCs2FCuD5OQlJkeJ4UXW7EdJFNt7JEh5UaG6QJyivxS2diHn5D5H7LCfi8GtF oLYc3O8KtmS1F9wThbDWiqvr62eNHw5Ve7LH+yY07Bzm0p/hwa1zQdE5iTZi8Ctemois VVzq80vfOMP07jfH9CPdOVT1lAyyPgw1jDHx+f2Uf3USkIylXvJia9StpNGhCI65/niu ATGP32lbDPUVNzBM3Ng7SKKnNjljzCS8z0FlRoBuZWF6KxlU+7q4SW3NyU1ZI4Qs79Bp ukeKxnVKeU5uxOq2NQvC3ic2PXhMsvPkmNPrBSZGBI2vFiDFFKDJApOdgkCTtZxZjKMv oLZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D6XHv7C9; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-56581-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56581-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=2; AJvYcCWLJrv5ghiaKA35D3nn394r3r7H7LrGNn7w+t2JQItARninkpra8xK3ACQYA2R7c5Rw6YzIrcsj15hDaW18DvUFNJinXVM+auBV2INf+Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j17-20020aa7c411000000b00560255c6219si896453edq.585.2024.02.07.05.49.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 05:49:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56581-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=@linuxfoundation.org header.s=korg header.b=D6XHv7C9; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-56581-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56581-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C83AE1F261E9 for ; Wed, 7 Feb 2024 13:49:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CE5E77F16; Wed, 7 Feb 2024 13:49:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="D6XHv7C9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA42776C9D; Wed, 7 Feb 2024 13:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707313777; cv=none; b=Wr87gZVFG6aMBgjNCtglwBOKFTsiZ9FqIG5ERD4nOs3Do+bFerYERybZSMCcd8OWvggH94xuVp8GzEBQabKCQ6Mfh7QkY1TsQDSeiZAA60nxndR0EB8c6UxaqeeC1Vuz/kmj+jJuAybEvoBcCV/iQeuw3i0w896IY/e2I+wZ9Fw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707313777; c=relaxed/simple; bh=gagwzctTYGVLM9lNLbemXeMrrifQ3wVeVx/2WJycYwQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rkKWnaU7/Q3ipP0d/VBOhj8+QmdBDJM6CTBLnTMfBBfP4EQ59dR0/S9XGu+LMGfwxJlNFhjuXcu76A9PPlWOBNaNt4QuXCmZPcS/ryua6gKFRWWhnxW6gyo1Ynzwu6eGExhBnOA05CweewKGsF8d9gFcEgo9oJ8X2TFhWu4qdPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D6XHv7C9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D86FBC433F1; Wed, 7 Feb 2024 13:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707313777; bh=gagwzctTYGVLM9lNLbemXeMrrifQ3wVeVx/2WJycYwQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D6XHv7C9/xyB9I+LZ9WFz6TfoYLqte6dwSaiKfS91tD2N0Q/5xfjDkz9+nnRAwSB6 ZavivR6e9fMyjXSyeFwQuEssUUwOaCKNPA9CeNJh3KMLeEUNKL8kRu4LijNWwyunPt 6yI7F16s2EVkZI7HavO4JBKLYOHbHJBOineFq5l8= Date: Wed, 7 Feb 2024 13:49:34 +0000 From: Greg KH To: Bartosz Golaszewski Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH] gpio: set device type for GPIO chips Message-ID: <2024020723-arbitrary-harmful-53c3@gregkh> References: <20240201162758.50733-1-brgl@bgdev.pl> <2024020732-duchess-husband-8b1b@gregkh> 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 Wed, Feb 07, 2024 at 01:19:37PM +0100, Bartosz Golaszewski wrote: > On Wed, Feb 7, 2024 at 11:49 AM Greg KH wrote: > > > > On Wed, Feb 07, 2024 at 11:45:39AM +0100, Linus Walleij wrote: > > > On Thu, Feb 1, 2024 at 5:28 PM Bartosz Golaszewski wrote: > > > > > > > From: Bartosz Golaszewski > > > > > > > > It's useful to have the device type information for those sub-devices > > > > that are actually GPIO chips registered with GPIOLIB. While at it: use > > > > the device type struct to setup the release callback which is the > > > > preferred way to use the device API. > > > > > > > > Signed-off-by: Bartosz Golaszewski > > > (...= > > > > +static struct device_type gpio_dev_type = { > > > > Can you make this structure const please? > > > > I have, there's a v2 on the list already. Great, let me go dig that up and do a review...