drm/msm/dp: Simplify aux irq handling code
authorStephen Boyd <swboyd@chromium.org>
Fri, 7 May 2021 21:25:03 +0000 (14:25 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 23 Jun 2021 14:32:14 +0000 (07:32 -0700)
commit24c7861b811b05172733f4bdcce5737df9ba476b
treec1c7f6aba5b0924c99b7bfd04258a5f057753518
parent53e231705e1ceb9cc3be87dc36a50d057e0c8bad
drm/msm/dp: Simplify aux irq handling code

We don't need to stash away 'isr' in the aux structure to pass to two
functions. Let's use a local variable instead. And we can complete the
completion variable in one place instead of two to simplify the code.

Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Abhinav Kumar <abhinavk@codeaurora.org>
Cc: Kuogee Hsieh <khsieh@codeaurora.org>
Cc: aravindh@codeaurora.org
Cc: Sean Paul <sean@poorly.run>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Kuogee Hsieh <khsieh@codeaurora.org>
Link: https://lore.kernel.org/r/20210507212505.1224111-2-swboyd@chromium.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_aux.c
drivers/gpu/drm/msm/dp/dp_catalog.c
drivers/gpu/drm/msm/dp/dp_catalog.h