OSDN Git Service

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)
commite26f87e5ca75a181b6da16dd835e57b329a2664f
tree8e38786ef2039a871ce08673af8338bcb2b66fc5
parent531a469ead6ad1e79e8c84ffd4787c0747336e5a
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