]> Git Repo - linux.git/commitdiff
Merge remote-tracking branches 'regmap/fix/i2c' and 'regmap/fix/volatile' into regmap...
authorMark Brown <[email protected]>
Mon, 12 Mar 2018 16:50:35 +0000 (09:50 -0700)
committerMark Brown <[email protected]>
Mon, 12 Mar 2018 16:50:35 +0000 (09:50 -0700)
1  2  3 
drivers/base/regmap/regmap.c

index c7b7c5fa73ab46bce54ae1dcad332e271cda3d48,ee302ccdfbc8d366fec3f39574a4c28462b20240,f89d01e7b257e4a6aeda8c98152c2237e73abd4d..2339b98f1b6e49d70906215ad7c989a98be009c7
@@@@ -99,7 -99,7 -99,7 +99,7 @@@@ bool regmap_cached(struct regmap *map, 
        int ret;
        unsigned int val;
   
 --     if (map->cache == REGCACHE_NONE)
 ++     if (map->cache_type == REGCACHE_NONE)
                return false;
   
        if (!map->cache_ops)
@@@@ -174,7 -174,7 -174,7 +174,7 @@@@ static bool regmap_volatile_range(struc
        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;
@@@@ -1831,7 -1831,7 -1831,7 +1831,7 @@@@ int regmap_raw_write(struct regmap *map
                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);
This page took 0.087335 seconds and 4 git commands to generate.