* [PATCH] staging: iio: adt7316: replace irqd_get_trigger_type with irq_get_trigger_type
@ 2025-03-27 1:57 shao.mingyin
2025-03-27 15:14 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: shao.mingyin @ 2025-03-27 1:57 UTC (permalink / raw)
To: lars
Cc: yang.yang29, xu.xin16, ye.xingchen, feng.wei8, michael.hennerich,
jic23, gregkh, linux-iio, linux-staging, linux-kernel
From: Feng Wei <feng.wei8@zte.com.cn>
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 <feng.wei8@zte.com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
---
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:
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: iio: adt7316: replace irqd_get_trigger_type with irq_get_trigger_type
2025-03-27 1:57 [PATCH] staging: iio: adt7316: replace irqd_get_trigger_type with irq_get_trigger_type shao.mingyin
@ 2025-03-27 15:14 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2025-03-27 15:14 UTC (permalink / raw)
To: shao.mingyin
Cc: lars, yang.yang29, xu.xin16, ye.xingchen, feng.wei8,
michael.hennerich, gregkh, linux-iio, linux-staging, linux-kernel
On Thu, 27 Mar 2025 09:57:04 +0800 (CST)
<shao.mingyin@zte.com.cn> wrote:
> From: Feng Wei <feng.wei8@zte.com.cn>
>
> 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 <feng.wei8@zte.com.cn>
> Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
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:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-27 15:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 1:57 [PATCH] staging: iio: adt7316: replace irqd_get_trigger_type with irq_get_trigger_type shao.mingyin
2025-03-27 15:14 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox