diff options
author | Alexander Stein <alexander.stein@ew.tq-group.com> | 2023-03-13 08:18:12 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-13 14:09:51 +0000 |
commit | 24d80fde40c995b2e2faaf72034e12e60a416630 (patch) | |
tree | 1acb2c04a35fb0e4979c2ab4eeadb5bbaa9746de /drivers/base | |
parent | fd883d79e4dcd2417c2b80756f22a2ff03b0f6e0 (diff) | |
download | linux-stable-24d80fde40c995b2e2faaf72034e12e60a416630.tar.gz linux-stable-24d80fde40c995b2e2faaf72034e12e60a416630.tar.bz2 linux-stable-24d80fde40c995b2e2faaf72034e12e60a416630.zip |
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>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 8031007b4887..0482cf1c3231 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c @@ -242,7 +242,7 @@ int regcache_read(struct regmap *map, int ret; if (map->cache_type == REGCACHE_NONE) - return -ENOSYS; + return -EINVAL; BUG_ON(!map->cache_ops); |