Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp161008ybj; Fri, 8 May 2020 08:45:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLkLsNIm1asVJ7YUJX8YGqR10I2fOLMRHiQnpVvRF8/jWEltSVN9GTAcUdGvX3jhycekuGC X-Received: by 2002:a50:b286:: with SMTP id p6mr2639302edd.350.1588952704127; Fri, 08 May 2020 08:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588952704; cv=none; d=google.com; s=arc-20160816; b=TQU3rH6lLZtYCSHAhefUIhBIap0irWA1IlAGl+TQxSIQQN0ag0euhfbqVsKyAQMyMp jczZNEdKlBkdvO7cad66aFtHGLlVBIGNOZMqqH35+rdCZ0n5r1v1aV/91X0HkmxTZhXo WJzvYhuhIJ7sV/ccDbCSIyFMOXDe2kGdyGcBTGSoiOBvM8mgZhTT1k5U+YXqxY5UB7HF Kd52xVM4DuESal48YLG6LNyd+KijX7ywt8LB1h5F0/evfMR/QU7niTsXaVkXdzeVCx4x Y7xirv4meqNq5hVVAQ4kSqMSxO4s0FAVHVqEH1ZpUW3aSPM15I1K+5jyNnKKSSGg/FE7 d7og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=oMfRzSsPW3kRjYs+IOUJ9u3rrSqH1BCp5PIFe3h0wzc=; b=I3P45bQtXWNGdlCyAz647YTUaNzzPZoFA/NzhJRpwBWzCCys9/5WbfhpMY/w64sw5Z fO8T58+x4c8JCfsz0xAEPXoRtNQoKF+8jVDvjCrYvZ0gZUAfZsfIezib8RMg3NBchTPO qAiPFSXT1Jm4UcNPJ/2BTbj5ODFTbGDmw2vWeE1y0iPV6JZZZv7YVAToYZOWd3TBHOQh f8ubly4PSmQ5W/5yzbcG9ApWMgawJ2/Jid3iYlWYETFll1u7Mm1UUu55+5Mojrg9fErT eWBdD+8UBcjImfsMdlKGNg8INU7lO8T3F+yoycTOYUOQhb+dCzLn3mYA/xcaiQxyexKc leFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x24si997174edr.432.2020.05.08.08.44.39; Fri, 08 May 2020 08:45:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728154AbgEHPnK (ORCPT + 99 others); Fri, 8 May 2020 11:43:10 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:41721 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727092AbgEHPnK (ORCPT ); Fri, 8 May 2020 11:43:10 -0400 Received: by mail-lf1-f68.google.com with SMTP id a9so1770579lfb.8; Fri, 08 May 2020 08:43:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oMfRzSsPW3kRjYs+IOUJ9u3rrSqH1BCp5PIFe3h0wzc=; b=oP5e0Tk+WBB6EscyAauBqDXKUivHbaoZXA7V2G6uRKkqqeOX6LJd9f6jhBOhAlXew6 mIGBa/IMePbkMEadrrP8d4RNiJUUVkPiVB4dZWsv5MevjpXO8BtkKETPyLolBtvyMxJK 1Ming/DccCrEfyBpnLkngJqA3kp30E+vfidGgcZNRKcF5OdlgKE57fn5dPhfTx0gT9UD cqCBLyY3HfnNVf6/dzYkXq4HgJku85jo6AIA1BA+5plq8q9mI7kON297PQHjs1wAlPIZ snx5GHHkUaPt+xznwznj+vpkvA/RiFfZv1xNb/NYRlGlPSQsaFiX/AzoXHctayeYUtiZ 8/Xg== X-Gm-Message-State: AOAM533bKuJRkovdhLZvuA9/ruoP7AxIN9hUl+y6TN1HYVl/yA41IisT hXL5cNITNzk4AKni7DVtDl0PNfARL08= X-Received: by 2002:a19:8293:: with SMTP id e141mr2346736lfd.173.1588952587907; Fri, 08 May 2020 08:43:07 -0700 (PDT) Received: from localhost.localdomain (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id h3sm1541224lfk.3.2020.05.08.08.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 08:43:07 -0700 (PDT) Date: Fri, 8 May 2020 18:41:49 +0300 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: lgirdwood@gmail.com, broonie@kernel.org, sre@kernel.org, brendanhiggins@google.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v12 03/11] power: supply: bd70528: rename linear_range to avoid collision Message-ID: <286b1ae0adc1c08e7b644cbdc1a43eb2e0644647.1588944082.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Follow-up patches in this series will add a generic struct linear_range. Rename bd70528 internal struct to avoid collision. Signed-off-by: Matti Vaittinen Reviewed-by: Sebastian Reichel --- drivers/power/supply/bd70528-charger.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/power/supply/bd70528-charger.c b/drivers/power/supply/bd70528-charger.c index b8e1ec106627..3b820110ecfa 100644 --- a/drivers/power/supply/bd70528-charger.c +++ b/drivers/power/supply/bd70528-charger.c @@ -335,14 +335,14 @@ static int bd70528_get_present(struct bd70528_psy *bdpsy, int *val) return 0; } -struct linear_range { +struct bd70528_linear_range { int min; int step; int vals; int low_sel; }; -static const struct linear_range current_limit_ranges[] = { +static const struct bd70528_linear_range current_limit_ranges[] = { { .min = 5, .step = 1, @@ -374,7 +374,7 @@ static const struct linear_range current_limit_ranges[] = { * voltage for low temperatures. The driver currently only reads * the charge current at room temperature. We do set both though. */ -static const struct linear_range warm_charge_curr[] = { +static const struct bd70528_linear_range warm_charge_curr[] = { { .min = 10, .step = 10, @@ -398,7 +398,7 @@ static const struct linear_range warm_charge_curr[] = { #define MAX_WARM_CHG_CURR_SEL 0x1f #define MIN_CHG_CURR_SEL 0x0 -static int find_value_for_selector_low(const struct linear_range *r, +static int find_value_for_selector_low(const struct bd70528_linear_range *r, int selectors, unsigned int sel, unsigned int *val) { @@ -420,7 +420,7 @@ static int find_value_for_selector_low(const struct linear_range *r, * I guess it is enough if we use voltage/current which is closest (below) * the requested? */ -static int find_selector_for_value_low(const struct linear_range *r, +static int find_selector_for_value_low(const struct bd70528_linear_range *r, int selectors, unsigned int val, unsigned int *sel, bool *found) { -- 2.21.0 -- Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =]