Loading drivers/base/regmap/regmap.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1831,7 +1831,7 @@ int regmap_raw_write(struct regmap *map, unsigned int reg, return -EINVAL; return -EINVAL; if (val_len % map->format.val_bytes) if (val_len % map->format.val_bytes) return -EINVAL; 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; return -E2BIG; map->lock(map->lock_arg); map->lock(map->lock_arg); Loading Loading
drivers/base/regmap/regmap.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1831,7 +1831,7 @@ int regmap_raw_write(struct regmap *map, unsigned int reg, return -EINVAL; return -EINVAL; if (val_len % map->format.val_bytes) if (val_len % map->format.val_bytes) return -EINVAL; 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; return -E2BIG; map->lock(map->lock_arg); map->lock(map->lock_arg); Loading