Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp897235pxp; Wed, 16 Mar 2022 20:33:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFNv7bNIcaDg5/fIcKi8//VaVra7JThozBZyEWpbUtapqs7yAr45x2Dma0tjFtUFNGptXs X-Received: by 2002:a17:902:d505:b0:151:9e65:b844 with SMTP id b5-20020a170902d50500b001519e65b844mr3047774plg.49.1647487983140; Wed, 16 Mar 2022 20:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647487983; cv=none; d=google.com; s=arc-20160816; b=qTcIamenborxz8nYdsneb8BFKl1PMHISaxXj9nFvuoEIJbm3xfeRwJoyc1ejmPGf60 Cvfw4abTYJ6wFaLbDVDwvqLlRHuSMMkukQUviQTaAUY0s42X0HDYTUSHghoe339X5aJ+ I6a946TLJ/F3QdZeIOMyqH3TmfMkVBo2kYZPd/gMvvp7xKiut4dQZo+uDnJP7WJqcTpo qQNPuU2SfcuH6RQZ2ryMvOGyXoWzd5CkAr1lNtddfKxF4AiCQRdPrHLSxCtIFaeDKnHM hmXPrfwV4pypEsnJ93w02Osr9FtFUsZF4CLm90zmgC4tMoIKYBYI4yKf97gSRXQej7sB 72Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=INoEYxH+jRXM60PjwnZ75nozyOqboO00D6KEsVjoQYQ=; b=GN8kaH4herIKrKFMaCRnBz2ripplZsLRogKCOJ4EHyE6hfBfc5/dtv56f4Vc1JguoC 4HlmaOxMUMznluD+ReYMcDJoRM1r3ZzUnJEHiU5O/4WsBs0u/Da2WpM3Mcsb0RhFQxsw Xq50ALoBu5Bg0xkUhw7fyuK1phyNOzxgeVlOFxGySplnoncDr1AajMjZ2W+PX/hlyqHZ bp/DypbSeUK5YBocFEkggGHALeYldRgqAkLMHm1BGX3Rti2MPPKO6ZVlg7AwRIAjv9zM xasHc/qncvmazWEd1Ny+8KQiRoOcEqQRQYdfEY/ai1x8/+Qawq+Z2DwAT3fcMOAMnlHD vYew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nn5tTFco; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v10-20020a63bf0a000000b003816043ee1dsi955879pgf.18.2022.03.16.20.33.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:33:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nn5tTFco; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B124138BEE; Wed, 16 Mar 2022 20:29:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352586AbiCOX30 (ORCPT + 99 others); Tue, 15 Mar 2022 19:29:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352580AbiCOX3Z (ORCPT ); Tue, 15 Mar 2022 19:29:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69F74EB1; Tue, 15 Mar 2022 16:28:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CDB58B81907; Tue, 15 Mar 2022 23:28:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3330AC340E8; Tue, 15 Mar 2022 23:28:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647386889; bh=w4qPeeKhNFfdJV7sHtmG6UT0h4O4RKuIt/5uhl+ouyE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nn5tTFcotsvFb1w5oolIwiVRkLvh79sDlGTnDfrGmVmnvz0y4zU1fbQ+ObyAIV6iW jQI3LXys3cr3+XlTBHdW7Ep2JuyFLgTyoPW8dpZK/BBhvU7ZFa65A44uAK75M9meA6 sGWPCyo/sLqANnpB7o1PtKuRlQzrLXQ6HSnxw0OZ2Chb8dxDcTuJvHw68Z4vtUdzVg SUUPBSVGN8554JRoslz6I9jk6zQTJwU8KXVU+BFPwiqaYuotKaGIlUNS5p0KLf8VNv cOLCogEGtqz4X6Ak0W9xbI96i92N/3tEmgztAWWdh6stsFcAdxLwqsLaNTROEBLJyu Q85NbEaBxjI3g== Received: by pali.im (Postfix) id 4BCA7824; Wed, 16 Mar 2022 00:28:06 +0100 (CET) Date: Wed, 16 Mar 2022 00:28:06 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: "Colin King (gmail)" Cc: Sebastian Reichel , linux-pm@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] power: supply: bq2415x: Fix spelling mistake "vender" -> "vendor" Message-ID: <20220315232806.m4mwsdawyiafpc3d@pali> References: <20220315223700.2961660-1-colin.i.king@gmail.com> <20220315224645.ytcf7y7awc3q2y6j@pali> <5ea0e154-e06e-32b4-be86-f38ce07b8bec@gmail.com> <20220315230753.6xymu77uirjbnn3u@pali> <9e2ac011-72e8-977c-00c9-5fa862a4e5f6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9e2ac011-72e8-977c-00c9-5fa862a4e5f6@gmail.com> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Tuesday 15 March 2022 23:09:17 Colin King (gmail) wrote: > On 15/03/2022 23:07, Pali Rohár wrote: > > On Tuesday 15 March 2022 23:00:14 Colin King (gmail) wrote: > > > On 15/03/2022 22:46, Pali Rohár wrote: > > > > On Tuesday 15 March 2022 22:37:00 Colin Ian King wrote: > > > > > There are several spelling mistakes in comments, function names > > > > > and literal strings. Fix these. > > > > > > > > I do not think that there are mistakes. > > > > > > > > Please look at page 29 of the official bq24150 datasheet: > > > > https://www.ti.com/lit/ds/symlink/bq24150.pdf > > > > > > Looks like TI are redefining the spelling in the language :-) > > > > Well, that could be truth, or maybe it just means something different. > > It is about 10 years ago and I do not remember more details about it. > > Anyway, in any case register name is vender and kernel code should match > > official register naming for which driver was written... > > I'm fine with that. Apologies for the noise. I looked into dictionaries and word vender exists in Cambridge Dictionary: https://dictionary.cambridge.org/dictionary/english/vender Also some details about this word are available in Wiktionary: https://en.wiktionary.org/wiki/vender#English And looking at more internet resources and discussions, it looks like that word vender is just older spelling in American English. But I really do not know, I'm not native speaker. > > > > > > > > > > > Signed-off-by: Colin Ian King > > > > > --- > > > > > drivers/power/supply/bq2415x_charger.c | 10 +++++----- > > > > > 1 file changed, 5 insertions(+), 5 deletions(-) > > > > > > > > > > diff --git a/drivers/power/supply/bq2415x_charger.c b/drivers/power/supply/bq2415x_charger.c > > > > > index 5724001e66b9..b35700071966 100644 > > > > > --- a/drivers/power/supply/bq2415x_charger.c > > > > > +++ b/drivers/power/supply/bq2415x_charger.c > > > > > @@ -71,7 +71,7 @@ > > > > > #define BQ2415X_BIT_OTG_PL 1 > > > > > #define BQ2415X_BIT_OTG_EN 0 > > > > > -/* vender register */ > > > > > +/* vendor register */ > > > > > #define BQ2415X_MASK_VENDER (BIT(5)|BIT(6)|BIT(7)) > > > > > #define BQ2415X_SHIFT_VENDER 5 > > > > > #define BQ2415X_MASK_PN (BIT(3)|BIT(4)) > > > > > @@ -491,8 +491,8 @@ static int bq2415x_detect_revision(struct bq2415x_device *bq) > > > > > return -1; > > > > > } > > > > > -/* return chip vender code */ > > > > > -static int bq2415x_get_vender_code(struct bq2415x_device *bq) > > > > > +/* return chip vendor code */ > > > > > +static int bq2415x_get_vendor_code(struct bq2415x_device *bq) > > > > > { > > > > > int ret; > > > > > @@ -1501,9 +1501,9 @@ static int bq2415x_power_supply_init(struct bq2415x_device *bq) > > > > > sprintf(revstr, "1.%d", ret); > > > > > bq->model = kasprintf(GFP_KERNEL, > > > > > - "chip %s, revision %s, vender code %.3d", > > > > > + "chip %s, revision %s, vendor code %.3d", > > > > > bq2415x_chip_name[chip], revstr, > > > > > - bq2415x_get_vender_code(bq)); > > > > > + bq2415x_get_vendor_code(bq)); > > > > > if (!bq->model) { > > > > > dev_err(bq->dev, "failed to allocate model name\n"); > > > > > return -ENOMEM; > > > > > -- > > > > > 2.35.1 > > > > > > > > >