From patchwork Mon Sep 2 13:30:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13787309 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 15373CD342A for ; Mon, 2 Sep 2024 13:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Px/UY4NxaYs/EE31AJ7jPoeYevIxLvYXTw0KecKZjro=; b=rEwIhJKnRNspQZOdEcO1RFzyRC GAteOeRkqKtbtvpyhSOc15QETdlezFrcmkPM8/t535mO+5qnPFDp3IpliGgVeyvytp4ziHrIdTiu+ lXMfEsdF8XaoZvq3v7Lt3cIGkKrr1N7OxTm9f3Atynx7HGPb7AL/z5aQ7A+YXZY2Ylhm/mO4M3TOX y0wo/gb+7T7HBuZggXY41cbmReuUPEGKoBm+gWPs1GLXKRc5oHltPpiHEG5HNTxH5w3rw2JQA2kM6 2s2HUilRHcaErmcc8pLEVaNovt21FhEBuHp5Jr7Fc8/KsKT0cRnQSW3Wl0bgbkNOwsGZ7fRbQD1lR vsrJJrXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sl7Da-0000000EW3f-0Is7; Mon, 02 Sep 2024 13:35:42 +0000 Received: from mgamail.intel.com ([198.175.65.13]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sl7A4-0000000EV8h-22sU for linux-arm-kernel@lists.infradead.org; Mon, 02 Sep 2024 13:32:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725283925; x=1756819925; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7XH+G1Xb/vD8vf0GcakPf1WizXUz/rhT3tCc+q7JEcU=; b=ZPgaLcr7eyBcWIHTdt1Q7kIfXHXuTzEFgaOPNKeFfzFcQxkjfad/bdJy et8CuSOblrHRaEzyXwZ5Lk2OVSLR8jzejxS0FqL5YW9c1hnzLJgVkrkNe bk3Dp5vIEkx/Bm4hg79u09p2XOmO0M9T+G6O9BSidDpSq8jwU1nRAgGDb D6JIqnqKYrQ0i42KlPHq9TkrOr41krBXKeuB5nAVQFK+STg2d7L0k+odJ npyG2Z/YsBEil10pbdaO9x/PxNQxjcaWAoe/tsPBZV4FK7+0bFxugcMgZ TVB5OaPGTOUhvP+e3W0BN+UBnrJUHZEeoL7ayMGJ4/AXRFfFruuC9NkD4 A==; X-CSE-ConnectionGUID: p0QlQNmWTpm+xr+XcdElMg== X-CSE-MsgGUID: c+k4EH8hQ9a4kwcnBv6v6A== X-IronPort-AV: E=McAfee;i="6700,10204,11183"; a="35022572" X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="35022572" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2024 06:32:02 -0700 X-CSE-ConnectionGUID: M+jjVR5wQYCMPQ+GdDN7Yw== X-CSE-MsgGUID: fmyiHwNASM6OuAbg2JE87w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="65114779" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa007.jf.intel.com with ESMTP; 02 Sep 2024 06:31:59 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 48B883BA; Mon, 02 Sep 2024 16:31:58 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Maxime Coquelin , Alexandre Torgue Subject: [PATCH v1 2/5] gpio: stmpe: Remove unused 'dev' member of struct stmpe_gpio Date: Mon, 2 Sep 2024 16:30:41 +0300 Message-ID: <20240902133148.2569486-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac In-Reply-To: <20240902133148.2569486-1-andriy.shevchenko@linux.intel.com> References: <20240902133148.2569486-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_063204_696134_7E498B91 X-CRM114-Status: GOOD ( 10.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There is no evidence that the 'dev' member of struct stmpe_gpio is used, drop it. Signed-off-by: Andy Shevchenko Reviewed-by: Linus Walleij --- drivers/gpio/gpio-stmpe.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c index 4e171f9075bf..99f1482b2ab3 100644 --- a/drivers/gpio/gpio-stmpe.c +++ b/drivers/gpio/gpio-stmpe.c @@ -31,7 +31,6 @@ enum { LSB, CSB, MSB }; struct stmpe_gpio { struct gpio_chip chip; struct stmpe *stmpe; - struct device *dev; struct mutex irq_lock; u32 norequest_mask; /* Caches of interrupt control registers for bus_lock */ @@ -481,7 +480,6 @@ static int stmpe_gpio_probe(struct platform_device *pdev) mutex_init(&stmpe_gpio->irq_lock); - stmpe_gpio->dev = &pdev->dev; stmpe_gpio->stmpe = stmpe; stmpe_gpio->chip = template_chip; stmpe_gpio->chip.ngpio = stmpe->num_gpios;