]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: axp20x: Use DEFINE_RES_IRQ to declare resources for mfd_cells
authorChen-Yu Tsai <wens@csie.org>
Thu, 29 Mar 2018 04:31:14 +0000 (12:31 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commitf4a504d615e4b079c1d864936035099beaaa067f
tree8e38786ef2039a871ce08673af8338bcb2b66fc5
parentbf97a230e80ab7c151cc75b5b195de78b132b89c
mfd: axp20x: Use DEFINE_RES_IRQ to declare resources for mfd_cells

Previously we were open coding the interrupts for the various mfd
cells. This made the code somewhat long due to pretty-formatting.

This patch convert those into one-line declarations with DEFINE_RES_IRQ,
making the code shorter and easier to read.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/axp20x.c