pinctrl: intel: refine ->irq_set_type() hook
authorRaag Jadav <raag.jadav@intel.com>
Thu, 15 Jun 2023 12:50:22 +0000 (18:20 +0530)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Jun 2023 15:27:53 +0000 (18:27 +0300)
commitd1bfdf867d5064b8aa1b5436882080a2e7945cfb
tree875c8c726913206fd05b11e424384d745730bb8b
parente95433c367e681dc6d4613706bd74f483a25acd8
pinctrl: intel: refine ->irq_set_type() hook

Refine ->irq_set_type() hook and improve its readability by:

- Reducing scope of spinlock by moving unneeded operations out of it.
- Dropping redundant PADCFG0_RXEVCFG_SHIFT and including it directly
  into PADCFG0_RXEVCFG_* definitions.
- Utilizing temporary variables for common operations.
- Simplifying if-else-if chain.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-intel.c