]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mux: pca954x: Refactor pca954x_irq_handler()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 25 Apr 2020 11:51:49 +0000 (14:51 +0300)
committerWolfram Sang <wsa@kernel.org>
Mon, 11 May 2020 19:21:34 +0000 (21:21 +0200)
commita5f40490446f911a795d3d1a959c77787c0a3b4f
tree8a5ad77f40502a535d57600daadff465cc7a5d0d
parent9b4a0790e369a2a281ebcc39d53e2f7edd6ce9ff
i2c: mux: pca954x: Refactor pca954x_irq_handler()

Refactor pca954x_irq_handler() to:
  - use for_each_set_bit() macro
  - use IRQ_RETVAL() macro

Above change makes code easy to read and understand.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/muxes/i2c-mux-pca954x.c