From patchwork Sun Sep 1 13:59:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 13786460 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 47DAF17F4F7 for ; Sun, 1 Sep 2024 14:00:11 +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=1725199212; cv=none; b=pnFWFp0x7cpfBJMjxQHkfyqho7rfdimnHiVZ/pWQ7PCGp4raBnux+wvNTguv4S4Hi3+JUT65c211R86p+rWkKFEEjKHUS/5gY92MP3ChioovHpEamlyd3j6CUq/GGrnHdTh+wuuIuKg0mE9gorzE/edGhsGiapnUQHX597Segi0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725199212; c=relaxed/simple; bh=pUMWGNXOvuWoalJn9rzBb/WvYPyDxLDDF9d/TOrdWII=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jgwYag2yCScxzgoqbqsdOimszukNsbGwKlBOgpcDKn3POl8dTn/8uRkTxAwzixYDgDkkQ2zL6gt0t4uKhjPiUzfbZ2IbZNlauBaemXH+Mp9OOqD7VcMLY6atkp1yX2RWRcBlI6bLlA+rxxtTDyZmOOBKD9YoaHg8Sa6HEPz044Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SZPPOj4A; 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="SZPPOj4A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BC14C4CEC3; Sun, 1 Sep 2024 14:00:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725199211; bh=pUMWGNXOvuWoalJn9rzBb/WvYPyDxLDDF9d/TOrdWII=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SZPPOj4AaworO6OEpkmpUec/5dbOQR4tOF5HzYulTTyb8YlUXbjsD6CUxJdgrrV9M 5XPx4u1x8MshxXywNfCHdfs8AX/eTIRrbV+nOOx5CQbzA5sMzzauIw0oxXgGmxOGej ueeryaalMLGKJpfZTsIaWcpN2UB/20E5OSLb33vkfPudP7DPKRi/PuUFtQsZNCPyf7 Or5dIfHEBGCUxUP8xtbbHHLBwG9uovwUNiZRF83VrIRIhXFaYgLx8rok2pwrO8P245 QLmB3TBf0aEGYnk8uuYi/BUaQBT79CPrlqXl8MdtkGnLR1CIao0Sr/VMfvqn3mTzFw cdS2f1qcKab6Q== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Antoniu Miclaus , Sean Nyekjaer , Marek Vasut , Denis Ciocca , Rui Miguel Silva , Linus Walleij , Danila Tikhonov , Jagath Jog J , Jean-Baptiste Maneyrol , Lorenzo Bianconi , Vasileios Amoiridis , Jonathan Cameron Subject: [PATCH 02/15] iio: accel: fxls8962af: use irq_get_trigger_type() Date: Sun, 1 Sep 2024 14:59:37 +0100 Message-ID: <20240901135950.797396-3-jic23@kernel.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240901135950.797396-1-jic23@kernel.org> References: <20240901135950.797396-1-jic23@kernel.org> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Jonathan Cameron Use irq_get_trigger_type() to replace getting the irq data then the type in two steps. Signed-off-by: Jonathan Cameron Reviewed-by: Sean Nyekjaer --- drivers/iio/accel/fxls8962af-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c index acadabec4df7..a50c47f5179f 100644 --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -1103,7 +1103,7 @@ static int fxls8962af_irq_setup(struct iio_dev *indio_dev, int irq) if (ret) return ret; - irq_type = irqd_get_trigger_type(irq_get_irq_data(irq)); + irq_type = irq_get_trigger_type(irq); switch (irq_type) { case IRQF_TRIGGER_HIGH: