drm/arm/hdlcd: Simplify IRQ install/uninstall
authorRobin Murphy <robin.murphy@arm.com>
Wed, 15 Jun 2022 16:11:09 +0000 (17:11 +0100)
committerLiviu Dudau <liviu.dudau@arm.com>
Fri, 22 Jul 2022 12:07:37 +0000 (13:07 +0100)
commitf818eac130d236d41c2f18fd475ebd709e5a56e7
treeaaa15ba4e6cad0638e9861db73f860ffc51641a3
parent4b760f76dd6f57cb0d608ba0c4009b7eeeddd864
drm/arm/hdlcd: Simplify IRQ install/uninstall

Since we no longer need to conform to the structure of the various DRM
IRQ callbacks, we can streamline the code by consolidating the piecemeal
functions and passing around our private data structure directly. We're
also a platform device so should never see IRQ_NOTCONNECTED either.

Furthermore we can also get rid of all the unnecesary read-modify-write
operations, since on install we know we cleared the whole interrupt mask
before enabling the debug IRQs, and thus on uninstall we're always
clearing everything as well.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/65cf7818b23c1a8629dc851f1d058ecb8a14849e.1655309413.git.robin.murphy@arm.com
drivers/gpu/drm/arm/hdlcd_drv.c