drm/komeda: Use IRQ_RETVAL shorthand in d71_irq_handler
Subsystems (4)
PATCH 1/1 drm/komeda: Use IRQ_RETVAL shorthand in d71_irq_handler
No change in behaviour; IRQ_RETVAL is about twice as popular as manually writing out the ternary.
--- drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +1 -1
@@ -195,7 +195,7 @@ d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts)if (gcu_status &GLB_IRQ_STATUS_PIPE1 ) evts->pipes[1 ] |=get_pipeline_event (d71->pipes[1 ], gcu_status); -return gcu_status ?IRQ_HANDLED :IRQ_NONE ; +return IRQ_RETVAL (gcu_status); }#define ENABLED_GCU_IRQS (GCU_IRQ_CVAL0 | GCU_IRQ_CVAL1 | \
Signature · 1 line
2.23.0
Quoted 13 lines · Mihail Atanassov
No change in behaviour;
IRQ_RETVALis about twice as popular as manually writing out the ternary.Signed-off-by Mihail Atanassov <[email protected]>--- drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +0
-0
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts) · line 198
Quoted 5 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +1
-1@@ -195,7 +195,7 @@ d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts)if (gcu_status &GLB_IRQ_STATUS_PIPE1 ) evts->pipes[1 ] |=get_pipeline_event (d71->pipes[1 ], gcu_status); -return gcu_status ?IRQ_HANDLED :IRQ_NONE ; +return IRQ_RETVAL (gcu_status);
Hi Mihail:
Thank you for the patch.
Quoted 5 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +0
-0}#define ENABLED_GCU_IRQS (GCU_IRQ_CVAL0 | GCU_IRQ_CVAL1 | \Signature · 1 line
2.23.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Ayan Halder
AppliedQuoted 17 lines · james qian wang (Arm Technology China)
Quoted 16 lines · Mihail Atanassov
No change in behaviour;
IRQ_RETVALis about twice as popular as manually writing out the ternary.Signed-off-by Mihail Atanassov <[email protected]>--- drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +0
-0@@ -195,7 +195,7 @@ d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts)if (gcu_status &GLB_IRQ_STATUS_PIPE1 ) evts->pipes[1 ] |=get_pipeline_event (d71->pipes[1 ], gcu_status);
Quoted 8 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts) · line 198
Quoted 2 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +1
-1-return gcu_status ?IRQ_HANDLED :IRQ_NONE ; +return IRQ_RETVAL (gcu_status);Hi Mihail:
Thank you for the patch.
Pushed to drm-misc-next - 4b39582a8fb3c749f0fa96ec920d138f61bf00d6
Quoted 10 lines
Quoted 6 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +0
-0}#define ENABLED_GCU_IRQS (GCU_IRQ_CVAL0 | GCU_IRQ_CVAL1 | \Signature · 1 line
2.23.0_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel