From patchwork Thu Sep 29 06:29:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12993561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA305C07E9D for ; Thu, 29 Sep 2022 06:29:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232519AbiI2G3w (ORCPT ); Thu, 29 Sep 2022 02:29:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234737AbiI2G3t (ORCPT ); Thu, 29 Sep 2022 02:29:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21AA023BC7; Wed, 28 Sep 2022 23:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=QlBqQ64wnLSOtZ6WaJVazq9vcYmGSriwpedjzHHAGU0=; b=UMIzTycAQc+4Cl3qGTM7QcB/V4 lhW8GfjhHz50dZhgK2JpdkoAqNkFVy7xd7hATnJzt1ZlfocBpfYBTxxWndo4W0Wl1WEc38M0cU2qU HVe2UxTNVaKHXkkO81dSkp+LsS3eEc73b/Bm+ikqvQr6VKktyi7WmQOAH/PpBXD0e44DuDCCFqOMr 0tALHCRYTu5i5ImCEX4nbGA+PdlQ1M3XmhE2q+RV+saXN680Dkv4+rCmqiJ2DF7hWlpISGjXdbM77 B6PoPFAOQxmfyjxAoWEIHJ5P4jHdn56petQ1nqSvEKLwoMQ0jYbdGUQHlfczC6cFdQQ4cQ+Okm9gK ZjDtsd2Q==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1odn3L-00D2jY-5r; Thu, 29 Sep 2022 06:29:47 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , ChiaEn Wu , Sebastian Reichel , linux-pm@vger.kernel.org Subject: [PATCH] power: supply: mt6370: uses IIO interfaces, depends on IIO Date: Wed, 28 Sep 2022 23:29:40 -0700 Message-Id: <20220929062940.27538-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The mt6370-charger driver uses IIO interfaces and produces build errors when CONFIG_IIO is not set, so it should depend on IIO. ERROR: modpost: "iio_read_channel_processed" [drivers/power/supply/mt6370-charger.ko] undefined! ERROR: modpost: "devm_iio_channel_get_all" [drivers/power/supply/mt6370-charger.ko] undefined! Fixes: 233cb8a47d65 ("power: supply: mt6370: Add MediaTek MT6370 charger driver") Signed-off-by: Randy Dunlap Cc: ChiaEn Wu Cc: Sebastian Reichel Cc: linux-pm@vger.kernel.org --- drivers/power/supply/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -623,6 +623,7 @@ config CHARGER_MT6370 tristate "MediaTek MT6370 Charger Driver" depends on MFD_MT6370 depends on REGULATOR + depends on IIO select LINEAR_RANGES help Say Y here to enable MT6370 Charger Part.