summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/sun6i-prcm.c
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-06-01 08:34:01 +0200
committerLee Jones <lee.jones@linaro.org>2021-06-02 11:51:19 +0200
commit223d2158b20edefcbc988cb9fb65d1f21548c8da (patch)
tree218d440cad878b9c775da9fc15e1f1caa512e6ad /drivers/mfd/sun6i-prcm.c
parentmfd: asic3: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code (diff)
downloadlinux-223d2158b20edefcbc988cb9fb65d1f21548c8da.tar.xz
linux-223d2158b20edefcbc988cb9fb65d1f21548c8da.zip
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>
Diffstat (limited to 'drivers/mfd/sun6i-prcm.c')
-rw-r--r--drivers/mfd/sun6i-prcm.c30
1 files changed, 5 insertions, 25 deletions
diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c
index c31927d4bbbe..ee03db0b8485 100644
--- a/drivers/mfd/sun6i-prcm.c
+++ b/drivers/mfd/sun6i-prcm.c
@@ -20,43 +20,23 @@ struct prcm_data {
};
static const struct resource sun6i_a31_ar100_clk_res[] = {
- {
- .start = 0x0,
- .end = 0x3,
- .flags = IORESOURCE_MEM,
- },
+ DEFINE_RES_MEM(0x0, 4)
};
static const struct resource sun6i_a31_apb0_clk_res[] = {
- {
- .start = 0xc,
- .end = 0xf,
- .flags = IORESOURCE_MEM,
- },
+ DEFINE_RES_MEM(0xc, 4)
};
static const struct resource sun6i_a31_apb0_gates_clk_res[] = {
- {
- .start = 0x28,
- .end = 0x2b,
- .flags = IORESOURCE_MEM,
- },
+ DEFINE_RES_MEM(0x28, 4)
};
static const struct resource sun6i_a31_ir_clk_res[] = {
- {
- .start = 0x54,
- .end = 0x57,
- .flags = IORESOURCE_MEM,
- },
+ DEFINE_RES_MEM(0x54, 4)
};
static const struct resource sun6i_a31_apb0_rstc_res[] = {
- {
- .start = 0xb0,
- .end = 0xb3,
- .flags = IORESOURCE_MEM,
- },
+ DEFINE_RES_MEM(0xb0, 4)
};
static const struct resource sun8i_codec_analog_res[] = {