pinctrl: cherryview: Don't use selection 0 to mark an interrupt line as unused
authorHans de Goede <hdegoede@redhat.com>
Thu, 18 Nov 2021 10:56:48 +0000 (11:56 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Nov 2021 20:37:41 +0000 (22:37 +0200)
commitbdfbef2d29dcdc79e2abf3085d4be6a844a06e34
tree29c284277c1ac2462c534de1076fe00ee6ceb22c
parent6b4542664c2d1fc7a770f0a4182ef5e36672d313
pinctrl: cherryview: Don't use selection 0 to mark an interrupt line as unused

The selection 0 is a perfectly valid, so stop using it to have
the special meaning of interrupt line not used in the intr_lines.

Instead introduce a special CHV_INVALID_HWIRQ value, derived
from INVALID_HWIRQ. which is never a valid selection and use
that to indicate unused interrupt lines.

Cc: Yauhen Kharuzhy <jekhor@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-cherryview.c