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>
This commit is contained in:
parent
c5db56fecc
commit
223d2158b2
@ -20,43 +20,23 @@ struct prcm_data {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const struct resource sun6i_a31_ar100_clk_res[] = {
|
static const struct resource sun6i_a31_ar100_clk_res[] = {
|
||||||
{
|
DEFINE_RES_MEM(0x0, 4)
|
||||||
.start = 0x0,
|
|
||||||
.end = 0x3,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct resource sun6i_a31_apb0_clk_res[] = {
|
static const struct resource sun6i_a31_apb0_clk_res[] = {
|
||||||
{
|
DEFINE_RES_MEM(0xc, 4)
|
||||||
.start = 0xc,
|
|
||||||
.end = 0xf,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct resource sun6i_a31_apb0_gates_clk_res[] = {
|
static const struct resource sun6i_a31_apb0_gates_clk_res[] = {
|
||||||
{
|
DEFINE_RES_MEM(0x28, 4)
|
||||||
.start = 0x28,
|
|
||||||
.end = 0x2b,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct resource sun6i_a31_ir_clk_res[] = {
|
static const struct resource sun6i_a31_ir_clk_res[] = {
|
||||||
{
|
DEFINE_RES_MEM(0x54, 4)
|
||||||
.start = 0x54,
|
|
||||||
.end = 0x57,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct resource sun6i_a31_apb0_rstc_res[] = {
|
static const struct resource sun6i_a31_apb0_rstc_res[] = {
|
||||||
{
|
DEFINE_RES_MEM(0xb0, 4)
|
||||||
.start = 0xb0,
|
|
||||||
.end = 0xb3,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct resource sun8i_codec_analog_res[] = {
|
static const struct resource sun8i_codec_analog_res[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user