Skip to content

Commit aa584ba

Browse files
committed
Merge remote-tracking branch 'regmap/fix/core' into regmap-linus
2 parents d2f2bb8 + f00e710 commit aa584ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/base/regmap/regmap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ int regmap_raw_write(struct regmap *map, unsigned int reg,
18311831
return -EINVAL;
18321832
if (val_len % map->format.val_bytes)
18331833
return -EINVAL;
1834-
if (map->max_raw_write && map->max_raw_write > val_len)
1834+
if (map->max_raw_write && map->max_raw_write < val_len)
18351835
return -E2BIG;
18361836

18371837
map->lock(map->lock_arg);

0 commit comments

Comments
 (0)