Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1245701pxb; Sun, 17 Jan 2021 01:59:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJweUj7RxhhvzFuw8S2gTS683mpJy2aY/c2swt6T5JCVZesGTnHbM9zy7EBR5iTm6hvDsqNK X-Received: by 2002:a17:907:20f1:: with SMTP id rh17mr14005398ejb.147.1610877558265; Sun, 17 Jan 2021 01:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610877558; cv=none; d=google.com; s=arc-20160816; b=REVR+CZI90s9PUeGblagkp6wJAvk7Ukw+aSsncB5gNCyUvNJ5PDzRKF9k3WhH2SWoJ qHmPlfe++hE4MvteZMISTwCk+gfN2wDXVI2QtQjT8K/2zbZgTFFGPd/u9FJMxFYrlE9h mAx2aMFVRBHeN288MqiWYPOteuXqiNDTyNj3j02BujM2jwjekqnvE0RunOpSaBJ2bKHq Cfs+YalDD51gTBDYKG4A4i+WV8CQw/6akdx0sm/x8//SL61GkY+cmjXiQcCQo0pvkjkt 9sGprHnc4DaNsmlsrEXED+/WPRuIuVWPO8iZqVfFL+VX7g1/NQSfwj1EpgU8xbvL6TE2 tmfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=AaT+qbZAwXrFVifLuPfVG+t7QxE9/WAOJLVGCHWNd3E=; b=X3j1PYd3i2bzvYlIGiyIJ8Ps9pAXuqN/t+4agC+CQ+6I0UFUsbtoP66DPA9riKNnpq eI+sJVXMskOHzrB6J2Q2lUy0VWW0f11nxphWg3vdp3ez8PQ21b42KcDTswCH/GGBpCa4 gTTfCBWjzMiWpL/Oy+jxpW9hpcjSp753JK9co4fybm6B/jpNUIA1k0fxTwGwfwNDDwVR W+B2hg1GFKD7tDgImhpZ65sdtw+P+eAV0n4tp5yQRL+70LMVXj5Ix18FSPDiMsE45lYO FOLhoqknLwKfpoKqV0XvM5GghkaeZI8SKJ1uvWk70zsar9BrXas15uE591FTU/QAZxKL P9pg== 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 d13si5667626ejz.583.2021.01.17.01.58.55; Sun, 17 Jan 2021 01:59:18 -0800 (PST) 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 S1728237AbhAQJ4p (ORCPT + 99 others); Sun, 17 Jan 2021 04:56:45 -0500 Received: from fold.natur.cuni.cz ([195.113.57.32]:58758 "EHLO fold.natur.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728216AbhAQJ4H (ORCPT ); Sun, 17 Jan 2021 04:56:07 -0500 X-Greylist: delayed 396 seconds by postgrey-1.27 at vger.kernel.org; Sun, 17 Jan 2021 04:56:06 EST Received: from [192.168.251.4] (unknown [192.168.251.4]) by fold.natur.cuni.cz (Postfix) with ESMTP id ABB3610FC077; Sun, 17 Jan 2021 10:48:44 +0100 (MET) Subject: Re: [PATCH] power: supply: fix sbs-charger build, needs REGMAP_I2C To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Sebastian Reichel , linux-pm@vger.kernel.org, Greg Kroah-Hartman , nicolassaenzj@gmail.com, Nicolas Saenz Julienne , "Rafael J . Wysocki" References: <20210116211310.19232-1-rdunlap@infradead.org> From: Martin Mokrejs Message-ID: <537de36b-6709-3e58-5610-9f54e2bee8a9@fold.natur.cuni.cz> Date: Sun, 17 Jan 2021 10:48:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210116211310.19232-1-rdunlap@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, thank you very much. I would not mind dropping my name but I tested the patch now with 5.4.89 so you may actually also add Tested-by: Martin Mokrejs It also happened with 5.10.7, it is probably obvious. Thank you for quick action. Martin On 16/01/2021 22:13, Randy Dunlap wrote: > CHARGER_SBS should select REGMAP_I2C since it uses API(s) that are > provided by that Kconfig symbol. > > Fixes these errors: > > ../drivers/power/supply/sbs-charger.c:149:21: error: variable ‘sbs_regmap’ has initializer but incomplete type > static const struct regmap_config sbs_regmap = { > ../drivers/power/supply/sbs-charger.c:150:3: error: ‘const struct regmap_config’ has no member named ‘reg_bits’ > .reg_bits = 8, > ../drivers/power/supply/sbs-charger.c:155:23: error: ‘REGMAP_ENDIAN_LITTLE’ undeclared here (not in a function) > .val_format_endian = REGMAP_ENDIAN_LITTLE, /* since based on SMBus */ > ../drivers/power/supply/sbs-charger.c: In function ‘sbs_probe’: > ../drivers/power/supply/sbs-charger.c:183:17: error: implicit declaration of function ‘devm_regmap_init_i2c’; did you mean ‘devm_request_irq’? [-Werror=implicit-function-declaration] > chip->regmap = devm_regmap_init_i2c(client, &sbs_regmap); > ../drivers/power/supply/sbs-charger.c: At top level: > ../drivers/power/supply/sbs-charger.c:149:35: error: storage size of ‘sbs_regmap’ isn’t known > static const struct regmap_config sbs_regmap = { > > Fixes: feb583e37f8a ("power: supply: add sbs-charger driver") > Signed-off-by: Randy Dunlap > Cc: Sebastian Reichel > Cc: linux-pm@vger.kernel.org > Cc: Martin Mokrejs > Cc: Greg Kroah-Hartman > Cc: nicolassaenzj@gmail.com > Cc: Nicolas Saenz Julienne > Cc: Rafael J. Wysocki > --- > Martin, do you want Reported-by: on this? > > drivers/power/supply/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > --- linux-next-20210115.orig/drivers/power/supply/Kconfig > +++ linux-next-20210115/drivers/power/supply/Kconfig > @@ -229,6 +229,7 @@ config BATTERY_SBS > config CHARGER_SBS > tristate "SBS Compliant charger" > depends on I2C > + select REGMAP_I2C > help > Say Y to include support for SBS compliant battery chargers. > >