mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
regmap: Remove superfluous check for !config in __regmap_init()
[ Upstream commit5c36b86d2b] The first thing __regmap_init() do is check if config is non-NULL, so there is no need to check for this again later. Fixes:d77e745613("regmap: Add bulk read/write callbacks into regmap_config") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/a154d9db0f290dda96b48bd817eb743773e846e1.1755090330.git.geert+renesas@glider.be Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aec49ec4bb
commit
e907b272e3
@@ -828,7 +828,7 @@ struct regmap *__regmap_init(struct device *dev,
|
||||
map->read_flag_mask = bus->read_flag_mask;
|
||||
}
|
||||
|
||||
if (config && config->read && config->write) {
|
||||
if (config->read && config->write) {
|
||||
map->reg_read = _regmap_bus_read;
|
||||
if (config->reg_update_bits)
|
||||
map->reg_update_bits = config->reg_update_bits;
|
||||
|
||||
Reference in New Issue
Block a user