Skip to content

Commit 24d80fd

Browse files
tq-steinabroonie
authored andcommitted
regmap: cache: Silence checkpatch warning
checkpatch.pl warned: WARNING: ENOSYS means 'invalid syscall nr' and nothing else Align the return value to regcache_drop_region(). Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Link: https://lore.kernel.org/r/20230313071812.13577-2-alexander.stein@ew.tq-group.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fd883d7 commit 24d80fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/regmap/regcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ int regcache_read(struct regmap *map,
242242
int ret;
243243

244244
if (map->cache_type == REGCACHE_NONE)
245-
return -ENOSYS;
245+
return -EINVAL;
246246

247247
BUG_ON(!map->cache_ops);
248248

0 commit comments

Comments
 (0)