Message ID | 20230313071812.13577-2-alexander.stein@ew.tq-group.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1051940wrd; Mon, 13 Mar 2023 00:52:18 -0700 (PDT) X-Google-Smtp-Source: AK7set94o4x//zm1j22j30qEvQb+rwWBVtAXpCP2qXDmPo/kn104UdDYU3aXRibqdMdH3eg5N4OM X-Received: by 2002:a05:6a21:6da5:b0:cc:46bd:39b0 with SMTP id wl37-20020a056a216da500b000cc46bd39b0mr36305746pzb.56.1678693937888; Mon, 13 Mar 2023 00:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678693937; cv=none; d=google.com; s=arc-20160816; b=EHspkXOvc/GeeJTTmPedaLeaESb/W9YUbNUWLdT5fUJLDBrBK/Ty/0glNwRaLSrRiF efnwkGBlA8w7Q9e7C6hlwZ4cDdX9xsm3R762DhS+r/b3Cm7nGsfCkwyDYMstuccXT6QQ vQA06FzKNz1AglFHOqYHHPczHaXDn9YBtxuQjePI3ppyWqYlW6uoYSxC2hJ1UxRtC/We 00hTU8CCBGMF+4FEPylZgk4OmTiWOfCEHlT0COTxsKi9z6jR98FFEJMmipCNh19M6Ggp vTqTYWzdLcuAHTTNqKOCKbCnyfQdt4SiO7XBAhQDnMi7lSl+/HxLmIBRNGcd2EzVeM9T 5/Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=UTvS6bH+xEecuSdoABqAcL5lGczgRjF8mO/bWBDGeaE=; b=CmzRN1iFnfjDbWUw30Jh99UGfRfYebCeycBpiueltZbCGV4ZbbcCsXSdJxVZlhS1tY pscqm2kgpyYLg0ZzymTt3b8LcvWC7hp7CCjNSWUJeXSs+zHeg2H9tuKoEn5WmjJ7W5d6 wuD+/zkL/FCqit+akR48JStLtaTQgDKzSVG/+7QCPvixIj4LmTY8gmPJ0lKn+X9BwFwH EEe5gHIVTtt1mg3cNHPjTBd4lKntnmVqgbaRW6xBBptLoiw8Qd3W3WhJVGVY4hFQ8QTZ sHeC2GBezAeSH92ZuNq6brEXXZHUEuyld9yML0sOTUNaozadVhSiNJL2WbbPCiywRnOo 3GBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=SFNpZxUh; dkim=pass header.i=@tq-group.com header.s=key1 header.b=fsr+qiQS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z127-20020a623385000000b005e80be65733si5784467pfz.35.2023.03.13.00.52.03; Mon, 13 Mar 2023 00:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=SFNpZxUh; dkim=pass header.i=@tq-group.com header.s=key1 header.b=fsr+qiQS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbjCMHSo (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Mon, 13 Mar 2023 03:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbjCMHSe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Mar 2023 03:18:34 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AE6322A03 for <linux-kernel@vger.kernel.org>; Mon, 13 Mar 2023 00:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678691902; x=1710227902; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UTvS6bH+xEecuSdoABqAcL5lGczgRjF8mO/bWBDGeaE=; b=SFNpZxUhHAyS2pk02GecwqVPkpDcQI9bc4h9jvIq4z9iX+KpkXZB9xfW 7bw9qdlRtu+cwXoWBQ9uJlQGvFItkp+thKe2oIe4skXNpI+0RTXJk/VM7 ChMy1t8VJtA2oubzAttH6WJltHlssXggV8UUh5rpluTNVhXQVG3v6/Jwx /Spwzl6D79mMYaoUZjoXm3H+RSx5JzxVJoaf9aQG2d0rd7/legu1YH/k9 WMwWmV3GfO3wBCgje5gV3B6k3Q/+cI+xTLw+SdcUSfR+dgH5s0PYTewbX 7r4SEQq97XyZ1PiZ2SgGyA57P3E4MIcQISvymntNkHBpK8//PtcwuQrx9 A==; X-IronPort-AV: E=Sophos;i="5.98,256,1673910000"; d="scan'208";a="29633087" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 13 Mar 2023 08:18:17 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 13 Mar 2023 08:18:17 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 13 Mar 2023 08:18:17 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678691897; x=1710227897; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UTvS6bH+xEecuSdoABqAcL5lGczgRjF8mO/bWBDGeaE=; b=fsr+qiQSRvzHVr4IDA/vBWxzbhf8RZHSk8osvCbXUKn9JxnRlC2lkLbB +PGoWzQfJFdno935egoKYSzLJqXKrx9rzLF4jEPlaPEflYqKu4Xi//vCa q1ud6fgy3zm7necnjaRFGH1NYGq2MoxfJBNR9CzyL7lseyyJrYR4pNTDX I9jwkF+UlFOeYwPeroQEo0rf6fANaTusPUsU+LwId0cxDYtmiLsMQG6Hg 2ybG+3jze8bTQ1nR/aN69Cd18CoN9zShArZLmW0TNFucsDG2t/yCKBvop N605p3BSREskRA++RZEBpwBDUZ+1u3x3N2niZxnTzbMnQiZZsDCOW3TMR w==; X-IronPort-AV: E=Sophos;i="5.98,256,1673910000"; d="scan'208";a="29633086" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 13 Mar 2023 08:18:16 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id BCF27280072; Mon, 13 Mar 2023 08:18:16 +0100 (CET) From: Alexander Stein <alexander.stein@ew.tq-group.com> To: Mark Brown <broonie@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J . Wysocki" <rafael@kernel.org> Cc: Alexander Stein <alexander.stein@ew.tq-group.com>, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] regmap: cache: Fix return value Date: Mon, 13 Mar 2023 08:18:12 +0100 Message-Id: <20230313071812.13577-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230313071812.13577-1-alexander.stein@ew.tq-group.com> References: <20230313071812.13577-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760238174484242577?= X-GMAIL-MSGID: =?utf-8?q?1760238174484242577?= |
Series |
[v2,1/2] regmap: cache: Return error in cache sync operations for REGCACHE_NONE
|
|
Commit Message
Alexander Stein
March 13, 2023, 7:18 a.m. UTC
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>
---
drivers/base/regmap/regcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 8031007b4887d..0482cf1c3231b 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);