From patchwork Fri Jun 24 15:19:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Siemsen X-Patchwork-Id: 584630 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp525862mab; Fri, 24 Jun 2022 08:20:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1up8dLhfAxlsYI/CJsyqdBbHJmjfHuHd87j8ZwCSGb3+D3568KYayF56ICH7mNnZgUm07qq X-Received: by 2002:a05:6512:3d25:b0:47f:78df:c9cf with SMTP id d37-20020a0565123d2500b0047f78dfc9cfmr8766860lfv.223.1656084008928; Fri, 24 Jun 2022 08:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656084008; cv=none; d=google.com; s=arc-20160816; b=y2WppVnZioQnhfHloMgJD/nSYp7xADijNrXJDXOKTp81hG5XV0e0nwBGOcHLMaLRTD FJF7iL5EYkZIK1CYhOJT+BObE9ziACMZ3s5Mp9z9C4QBg+r9izB/HHjgQhXHTWoBHjtu Xk51tTLNX8K4OhnJO6+GBZystRbavrdNdWPZi/f9maGMD6VcWj43ceSX80z7YmHvx5T0 ZssiBULwCFTbTzCy0C3hx/l6KeiLZi+u0EK68Rl14SXT2xKuvgs/WWNDE3mGd+ZetMEw 5MW44qflpP1azbibVGXdFKKzZKVWFaqipBXCaF3DfS1TJqxBOgDdfwiona+5JT62lGjB zTMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=cJFFlcUTNnsa8LBi1V7ksAqucp39sTTwTl10OalCc8A=; b=s5qVi6MaVdXzg9tIFZ5PbUdEa9EOzqwGtfahnqAjn+R1X5NRNui5cxDW/mbyBcap2X hxg2ViI1gAls8PDjwSemcYkdi2UB9N2ltkZKMH+jX1/t3nBZggHWFbKVQM182trmIGga DHXmNurLwW+5X0y52reX73Rl47OITeSNuGl3o8Zld9gp6r7Yb6XGtyDdRkiM9b2M3cA+ Zd5bnquFrjUtRcwuTFJRgWNbfqsvnXdMVOYepNyK/pzqz9/JH8Ps0RrNVoRfSYBm/530 2vRtofaW+vv6SyrbSB7VDQ8rSnIpVrXUtzKox1C6lYhQXXOTcARUm3nc0NGBlyyN1C3Q ysBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D2BgA52A; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id bi36-20020a0565120ea400b0047f86a5bc12si2614008lfb.348.2022.06.24.08.20.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 08:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D2BgA52A; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6DBE784383; Fri, 24 Jun 2022 17:20:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="D2BgA52A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8DBA08438F; Fri, 24 Jun 2022 17:20:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BE4B984383 for ; Fri, 24 Jun 2022 17:20:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ralph.siemsen@linaro.org Received: by mail-qv1-xf36.google.com with SMTP id y14so4970657qvs.10 for ; Fri, 24 Jun 2022 08:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cJFFlcUTNnsa8LBi1V7ksAqucp39sTTwTl10OalCc8A=; b=D2BgA52ATD9PJj4GVCUZmU74X3IPx43iah4qu9emn7ULyQioyaVMHzvhsFv3vGhHbe bQAqi0WRuw35PAtaTdsCsvU9AfdNs1pnvXSQ4DVpejYlXMcbHP+3K+EGpWwvQEzetGhn OpSjGByA7ame83uKD6tKg6yOBbXs8e4yrc6qxiAlHSZFTxgeerdrSdi5HGr9Mvs02s7T sbUmDIWycAFRBKp0nzUwF0pVocJkE0OHtysAu4h83+GnUoegTAs7rKJOxZZdrZt8ZdVn ouUijMBS6GctKvkji85rfS0OC+f095HE3BBLe+BB41DDJxGMVJsxyyYUs7CGnNJg8DGJ rqbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cJFFlcUTNnsa8LBi1V7ksAqucp39sTTwTl10OalCc8A=; b=LjMNAuF/4XZ3JxopsrEDSdrhb8huLhRCd4vuejZ9FTkubm2tZSnGZCiJm+NPOgp2Nq LlPtbS8/yulB0xkQ4TSo4mVoGr8KGJVhvLGSQeSHm1LNVL7PyU+wYBATm+mbzI48AWoy WtokdmdknvekS097TH9vjNHba6w365f+q+RdW2UBug87rlLgYnW2IABl6agGA0BwwXjV xLlSjt3snYtCpKgA4fVWhetWPJufeJvzNYZgcNKKGmbwfSQVMx4h+2VnETdzRnroUgQw 57xRUQUNU5em9ct6VHtz8Q7kfQzQWSnJpdwWbGpU0+MWavTHopcOO4HW1w6nPSqYyeZM vwgg== X-Gm-Message-State: AJIora9LP3Zzkl38ODUzmYfjuKkLe0F0+TX94UPzjNv7PHzmzX2o0VSf FuhapTAvx4QCaoZLNZOE+zTI+TcXZ3byWg== X-Received: by 2002:ac8:5c53:0:b0:305:2a90:e769 with SMTP id j19-20020ac85c53000000b003052a90e769mr13295583qtj.524.1656083999343; Fri, 24 Jun 2022 08:19:59 -0700 (PDT) Received: from maple.netwinder.org (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id bq24-20020a05622a1c1800b00304e95ec0fbsm1451318qtb.89.2022.06.24.08.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 08:19:59 -0700 (PDT) From: Ralph Siemsen To: u-boot@lists.denx.de Cc: Ralph Siemsen Subject: [PATCH] regmap: fix some comments Date: Fri, 24 Jun 2022 11:19:15 -0400 Message-Id: <20220624151915.1463994-1-ralph.siemsen@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Correct spelling and copy/paste errors in comments. Fixes 1c4db59d9b ("regmap: Add support for regmap fields") Signed-off-by: Ralph Siemsen Reviewed-by: Simon Glass --- include/regmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/regmap.h b/include/regmap.h index 8216de015d..e81a3602ae 100644 --- a/include/regmap.h +++ b/include/regmap.h @@ -460,7 +460,7 @@ struct reg_field { struct regmap_field; /** - * REG_FIELD() - A convenient way to initialize a 'struct reg_feild'. + * REG_FIELD() - A convenient way to initialize a 'struct reg_field'. * * @_reg: Offset of the register within the regmap bank * @_lsb: lsb of the register field. @@ -519,9 +519,9 @@ void devm_regmap_field_free(struct udevice *dev, struct regmap_field *field); int regmap_field_write(struct regmap_field *field, unsigned int val); /** - * regmap_read() - Read a 32-bit value from a regmap + * regmap_field_read() - Read a 32-bit value from a regmap * - * @field: Regmap field to write to + * @field: Regmap field to read from * @valp: Pointer to the buffer to receive the data read from the regmap * field *