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 77C4A17BBF; Thu, 27 Mar 2025 15:14:25 +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=1743088465; cv=none; b=IVBd6yizHmMW0zkbiPuOpLuCWiPoxV8JCFQ1MFrF4cp5TxMj0yQ7j2zo5+hGSvabzJkyXsuWtDCeNGqYMzXCHrtpcKmNSVCWofamoauBd2sN0bNr3ufIEGXfu3+t2Aw7HPE3jPs0vI5882rjGQO6/h2GB/KKaY416Hss40SavDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743088465; c=relaxed/simple; bh=3fahoLuvkxmGiHmjrhB6ZsVBFHd7nTZQfCs1BWWmwCU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IFnsILQDLjkZ3Q+60BVcfh6ciBbT8WU3GSkbFxbyt35L7i4/PLoQumwpduVHDZyi3ilaQg6PRQZy6PjWPfROhj/N81Z69spSHTDzb3FEh4KveF7BKq5G3U3W5CPDGhI7+vWj9LRKroefXE5JJ02iZs5pzxmQ2/uxIJXjIka8Wlk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RsF51urM; 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="RsF51urM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63029C4CEDD; Thu, 27 Mar 2025 15:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743088464; bh=3fahoLuvkxmGiHmjrhB6ZsVBFHd7nTZQfCs1BWWmwCU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RsF51urMi1dzrFT+XkhonJgpCEZW8fRZoudyK7BxpywICruSeO2oAZr2l5+ZnyypB vNNQQ6GS59xwOommf7E1U6LVg17UDJQZQ+M0wax9rYlbpLDMv96sPeyh9Pmj+E9xeL NhTteSM49hrJtK7Zwy4RKu52wZefWXQLO6BEU8m7+CcxHUh6bho+sHTsGvtJ+KoGgY tjoXDTezgFnCJw3uOEtduGIL4sz+sWazAhebBFVZxgKRNS8g9PzPVVh80dy96LVBii KGIUkBb6URH1HquIhQs02hc+bWcNXWs4E8ko/8GW1zFLzW8gP7KqfrFBVp/ED5W4n3 Mdq/BgzShCGsQ== Date: Thu, 27 Mar 2025 15:14:15 +0000 From: Jonathan Cameron To: Cc: , , , , , , , , , Subject: Re: [PATCH] staging: iio: adt7316: replace irqd_get_trigger_type with irq_get_trigger_type Message-ID: <20250327151415.791f65e9@jic23-huawei> In-Reply-To: <202503270957044481PK0Xb23i08BgwkodLtEC@zte.com.cn> References: <202503270957044481PK0Xb23i08BgwkodLtEC@zte.com.cn> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.48; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 27 Mar 2025 09:57:04 +0800 (CST) wrote: > From: Feng Wei > > Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more > simple irq_get_trigger_type(irq). > > Signed-off-by: Feng Wei > Signed-off-by: Shao Mingyin Applied. > --- > drivers/staging/iio/addac/adt7316.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c > index f4260786d50a..16f30c4f1aa0 100644 > --- a/drivers/staging/iio/addac/adt7316.c > +++ b/drivers/staging/iio/addac/adt7316.c > @@ -1794,7 +1794,7 @@ static int adt7316_setup_irq(struct iio_dev *indio_dev) > struct adt7316_chip_info *chip = iio_priv(indio_dev); > int irq_type, ret; > > - irq_type = irqd_get_trigger_type(irq_get_irq_data(chip->bus.irq)); > + irq_type = irq_get_trigger_type(chip->bus.irq); > > switch (irq_type) { > case IRQF_TRIGGER_HIGH: