int ret;
unsigned int val;
-- if (map->cache == REGCACHE_NONE)
++ if (map->cache_type == REGCACHE_NONE)
return false;
if (!map->cache_ops)
unsigned int i;
for (i = 0; i < num; i++)
-- if (!regmap_volatile(map, reg + i))
++ if (!regmap_volatile(map, reg + regmap_get_offset(map, i)))
return false;
return true;
return -EINVAL;
if (val_len % map->format.val_bytes)
return -EINVAL;
-- if (map->max_raw_write && map->max_raw_write > val_len)
++ if (map->max_raw_write && map->max_raw_write < val_len)
return -E2BIG;
map->lock(map->lock_arg);