From mboxrd@z Thu Jan 1 00:00:00 1970 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 BCA95343D8F; Mon, 23 Feb 2026 06:18:03 +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=1771827483; cv=none; b=kv6XXXZu2ZqD2qrMnXxZkfRZGqZvWecwtq7hupbhupvUS/pWEy9wuq1aFWmtUNKCQ34daK4um4B5G+3IQh+nvcgyvvhAssBLVjYW0DzsiRBPFqfT6BEfmhvXTo5xHMbvoG8aRjF+I6WAq622fCGzQBpsKiOkaT4rX4MMHgWcyOU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771827483; c=relaxed/simple; bh=ItlWS5Z4cW4csf7ZfnlXYDv2AI0QknQHNEWwCRfKYIg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JGf5Rv6bNVdzcSeu1Gh2R9mxJ7Ca7ZmCH4YM2MjNjEfsFZlgOS4OIV301YZ6QFtR3gbDgni8uqniqpokbnOjqNrsguXqXqMDNl0Dr4PRiL+GZ4HX5mSlPmjXX8A1WugkB3AMWXiRuRUz3pFRig93QHXeqUKloG2U0SgW2yuMx/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UDh2y0+1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UDh2y0+1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0BBCC116C6; Mon, 23 Feb 2026 06:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771827483; bh=ItlWS5Z4cW4csf7ZfnlXYDv2AI0QknQHNEWwCRfKYIg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UDh2y0+1LNw4WW772osUysSJi1SsnXuAj/rPhLVZd2cb6lXer0W1iotHJU3DBfqxR PzsfYFXU1ISMGH/kcQzDD9g7ZE8eTuSpalaV2gwQFHsuXdaF/KKweg+LeVxpCpAs5y au1BakmbJfWEC/NfxHcGkV2bRcx2wmlkozxA6N4bECFI3x+k39Kb9JIZqjK3g4rOMH HYesOUdDtXIoXrgNngZs4QJ+Z4b4jkVOCo5hbq7cafygLAuF9kk88lfn6v5RTuLia3 i+Yb48zuoBPlwYTLW2FgqROR9yTWC5f8GSVOGrF4x7J5Nc/VxZmfUEE7noB8PlItEs A8KwmpwWuotrQ== Date: Mon, 23 Feb 2026 14:17:58 +0800 From: Tzung-Bi Shih To: Linus Walleij Cc: Bartosz Golaszewski , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Jonathan Corbet , Shuah Khan , Laurent Pinchart , Wolfram Sang , Jason Gunthorpe , Johan Hovold , "Paul E . McKenney" , Dan Williams , chrome-platform@lists.linux.dev, linux-gpio@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 03/11] gpio: sysfs: Remove redundant check for struct gpio_chip Message-ID: References: <20260213092958.864411-1-tzungbi@kernel.org> <20260213092958.864411-4-tzungbi@kernel.org> 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 Fri, Feb 20, 2026 at 08:51:29AM +0100, Linus Walleij wrote: > On Fri, Feb 13, 2026 at 10:31 AM Tzung-Bi Shih wrote: > > -void gpiochip_sysfs_unregister(struct gpio_device *gdev) > > +void gpiochip_sysfs_unregister(struct gpio_chip *chip) > > Here it is chip > > > -static inline void gpiochip_sysfs_unregister(struct gpio_device *gdev) > > +static inline void gpiochip_sysfs_unregister(struct gpio_chip *chip) > > And here. > > > @@ -1286,7 +1286,7 @@ void gpiochip_remove(struct gpio_chip *gc) > > struct gpio_device *gdev = gc->gpiodev; > > But you can see that we call it "gc" (gpiochip). > > Chip is more ambiguous I think, can you use "gc" everywhere? Ack, will fix in v4.