Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: sun6i-prcm: Use DEFINE_RES_MEM() to simplify code

No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Zhen Lei and committed by
Lee Jones
223d2158 c5db56fe

+5 -25
+5 -25
drivers/mfd/sun6i-prcm.c
··· 20 20 }; 21 21 22 22 static const struct resource sun6i_a31_ar100_clk_res[] = { 23 - { 24 - .start = 0x0, 25 - .end = 0x3, 26 - .flags = IORESOURCE_MEM, 27 - }, 23 + DEFINE_RES_MEM(0x0, 4) 28 24 }; 29 25 30 26 static const struct resource sun6i_a31_apb0_clk_res[] = { 31 - { 32 - .start = 0xc, 33 - .end = 0xf, 34 - .flags = IORESOURCE_MEM, 35 - }, 27 + DEFINE_RES_MEM(0xc, 4) 36 28 }; 37 29 38 30 static const struct resource sun6i_a31_apb0_gates_clk_res[] = { 39 - { 40 - .start = 0x28, 41 - .end = 0x2b, 42 - .flags = IORESOURCE_MEM, 43 - }, 31 + DEFINE_RES_MEM(0x28, 4) 44 32 }; 45 33 46 34 static const struct resource sun6i_a31_ir_clk_res[] = { 47 - { 48 - .start = 0x54, 49 - .end = 0x57, 50 - .flags = IORESOURCE_MEM, 51 - }, 35 + DEFINE_RES_MEM(0x54, 4) 52 36 }; 53 37 54 38 static const struct resource sun6i_a31_apb0_rstc_res[] = { 55 - { 56 - .start = 0xb0, 57 - .end = 0xb3, 58 - .flags = IORESOURCE_MEM, 59 - }, 39 + DEFINE_RES_MEM(0xb0, 4) 60 40 }; 61 41 62 42 static const struct resource sun8i_codec_analog_res[] = {