Commit bd01f064 authored by Dong Aisheng's avatar Dong Aisheng Committed by Shawn Guo

soc: imx: gpc: remove unnecessary readable_reg callback

It is not really necessary to provide the current .readable_reg
implementation as we know what we're doing in our driver
and the regmap core has already done the partial check for
available maximum regs.
Acked-by: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent ff693a3f
...@@ -284,18 +284,10 @@ static const struct of_device_id imx_gpc_dt_ids[] = { ...@@ -284,18 +284,10 @@ static const struct of_device_id imx_gpc_dt_ids[] = {
{ } { }
}; };
static bool imx_gpc_readable_reg(struct device *dev, unsigned int reg)
{
return (reg % 4 == 0) && (reg <= 0x2ac);
}
static const struct regmap_config imx_gpc_regmap_config = { static const struct regmap_config imx_gpc_regmap_config = {
.reg_bits = 32, .reg_bits = 32,
.val_bits = 32, .val_bits = 32,
.reg_stride = 4, .reg_stride = 4,
.readable_reg = imx_gpc_readable_reg,
.max_register = 0x2ac, .max_register = 0x2ac,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment