Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp648134rwb; Thu, 12 Jan 2023 10:25:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXtJckyObFKIy3cJqWwMoIw3hOzubpesbnZA+n1PxCEUkeHzDkvnNv2+V5nWXPE6MWAs6Qd5 X-Received: by 2002:a05:6a20:d2cc:b0:af:f97e:efc7 with SMTP id ir12-20020a056a20d2cc00b000aff97eefc7mr93648610pzb.53.1673547930301; Thu, 12 Jan 2023 10:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673547930; cv=none; d=google.com; s=arc-20160816; b=PlPimW+Wlg+5aVxlGruyNAZkThxlpUD0oz+C+PttmQ9HHr8sDMC9X/bOD8mFquRqAu xSrejkReT3A2kRWQugtcSEKpl7+rk7ISAtHwwIuuTa536aU+6+S4Vge1y1MK2p2IP7SD r2/AswKN1f9tpQlBX0xUdbUBZr/I/Dr3pEIkt4hCVyKFUciFjKEjdHsYvy5mV7aHr8KL wl0gaRH+FkuFyog8gkGhLz6S/tl8EKeabEfIjs2mzJOdL6kQuhrCBkUrgq/rzqnIVG1m BO6WbHzQUZf7e/Kqv0HeU3iay3I75r4SIS6YaqeB4ff4fSbEZkJciktGVGlNc1IBUzCm viTg== 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; bh=ArMJfZCoI2url2AxwRVVnsg3n7HD+bPZiz0UQ2O5vhM=; b=FCxFvlBJkjfSfq0GJK1tBGgUb9uZA5hvEAw3jDgm1p1OusilHif6npD6N+ARbWqXhf 0wv9QkMlEJkgS7mruJQNnCyevXyM2TMEuiktG51Axs43F76Ds5fmBQ5eRNvUvlvDPnrM 7K0II+r25rcaOzMcrJFA+r1F9nplmAfg/LP2ssjnbzh+OJSC3AUaFLuc8JCWsgMMrX95 cdoVp21QqytGxWxlSvs3hZkuNb2mnH01bj0NXQe2SK9i3JZCQdqoTBEvV1opUBGkQfVs rnlwHWdP5I4WZaXIs8lkiZ+RLrIIVPYde7KVDwVFRVSv97U4BXXO+IrnAcyuYuQWUMtX 4RRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=PMDedzQ7; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a655548000000b0047699804989si18173681pgr.64.2023.01.12.10.25.23; Thu, 12 Jan 2023 10:25:30 -0800 (PST) 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=@cirrus.com header.s=PODMain02222019 header.b=PMDedzQ7; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbjALSAU (ORCPT + 50 others); Thu, 12 Jan 2023 13:00:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232528AbjALR7M (ORCPT ); Thu, 12 Jan 2023 12:59:12 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7736B7DE0F for ; Thu, 12 Jan 2023 09:18:55 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30CF7JfC026944; Thu, 12 Jan 2023 11:18:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=ArMJfZCoI2url2AxwRVVnsg3n7HD+bPZiz0UQ2O5vhM=; b=PMDedzQ7GhAN1V3l4MbJ68QtpXVrHpvAwO8EZNOYn8GD/rnitx7uz71+vpAWN7SXh8Cp DrhcDlhO6W6LsoBC0cWUi+tztUCICKTEzJqtEAjzWVr7gTfPMVXVLU3qK/ZanRjXAI3c 2zTpIrtPufQ95XNG6lsQwQ3GzcjPUx4MMDqpiOag59HiTMhrTz8/ENXCJsXkRQjVPzrT N/+fdlZLKWghTpqDHUl56fmxpeos9LJLZX16QHpPtYCYAJ/X2Ye+5PIgu4gLTCeVbCPd YBmL+8SX97CgKbkE/CwIZJGFBTumRYFKG161B5UWfymDNanuqYaoP6+I2/VIh2nMP/9W VQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3n1k582d2g-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Jan 2023 11:18:42 -0600 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.21; Thu, 12 Jan 2023 11:18:40 -0600 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.21 via Frontend Transport; Thu, 12 Jan 2023 11:18:40 -0600 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 7709111CC; Thu, 12 Jan 2023 17:18:40 +0000 (UTC) From: Charles Keepax To: , CC: , , , , Subject: [PATCH 1/2] regmap: sdw: Update misleading comment Date: Thu, 12 Jan 2023 17:18:39 +0000 Message-ID: <20230112171840.2098463-2-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230112171840.2098463-1-ckeepax@opensource.cirrus.com> References: <20230112171840.2098463-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 1uheCPGz_yVZ139-j_NluDOlGgJvUuW6 X-Proofpoint-GUID: 1uheCPGz_yVZ139-j_NluDOlGgJvUuW6 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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: X-Mailing-List: linux-kernel@vger.kernel.org In the regmap config reg_bits represents the number of address bits not the number of value bits. Correct the misleading comment which looks a lot like it suggests the register value itself is 32-bits wide. Signed-off-by: Charles Keepax --- drivers/base/regmap/regmap-sdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/regmap/regmap-sdw.c b/drivers/base/regmap/regmap-sdw.c index 81b0327f719d8..95801fd411b26 100644 --- a/drivers/base/regmap/regmap-sdw.c +++ b/drivers/base/regmap/regmap-sdw.c @@ -43,7 +43,7 @@ static int regmap_sdw_config_check(const struct regmap_config *config) if (config->val_bits != 8) return -ENOTSUPP; - /* Registers are 32 bits wide */ + /* Register addresses are 32 bits wide */ if (config->reg_bits != 32) return -ENOTSUPP; -- 2.30.2