]> 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)
commit21b194da79c4112fcb152fce2da0965369552b4d
tree8e38786ef2039a871ce08673af8338bcb2b66fc5
parentd10a0ae100370a52aa9c41653345a80d27209322
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