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: 1648045 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=D2BgA52A; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LV15S59Vlz9s1l for ; Sat, 25 Jun 2022 01:20:12 +1000 (AEST) 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-Google-Smtp-Source: AGRyM1sb2Fuv8C7TaVkZF4MDCxWtDspx06hDIeh8lbRbf9wk49AMBL62H/3MzsNoyoGir/hbxBAZfQ== 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 *