Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp733477pxa; Wed, 12 Aug 2020 12:04:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw0ip1raq9gHIrfB4py1KGbDO4/aK9aXPnCskzKqiWHHm3fwCvx0tokrFM/u9m8/ZHuZwn X-Received: by 2002:a17:907:372:: with SMTP id rs18mr1267477ejb.146.1597259052079; Wed, 12 Aug 2020 12:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597259052; cv=none; d=google.com; s=arc-20160816; b=VDBlCeeGEiLJ8RcyVepm/WPIske5GzrFkeqWUJJ35njygRM9IVQB6xl7pq35qyPmgC XNuioyV+ih9BfNJ1e4qz+Wrk7fBrx2KhBo7JJpL1EpVpDcQcbUIneQ4OgAVUCH6fOXaq 0ye4dboJdUQaJO/FeEB3hNS2AC+rIgLaDARTNFAFtnkfYWcXkaT1Iux2VnuKCEG2nImR FmNCWMO1z6ehhRWIIW7O3tqfJeypBc53V4zcUsxk4SSw9WFnf4H8KcBgqN/hOpN8DoZG lCWcGOdsZquv2NAXFPtMKYdMmdGtusb0bKvVUMx4LnPbi7HTE7lIu8qRvgQlTHr7W85K wTCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=HaL2zh/WXFrk38V3//tUJzJt7K7m3lYKmEzICUwPAfg=; b=XikTHBoYeCbtJqCbr9pd9tgoq8KhjUaJKPpJB6/36he1i6R1Xsqopk5l+p7fuICJUj /XpOmZJlHxQ2QAUppKz3NomkU9o5YiDcZFM2wNk3KlIxcn2CqK9Zwvzhm82RIpykX1kN 3+KtylJmm0Kb7+CJHo7UDxLG7wdDk1zxsuWOuOw2Yq7ngNkh8ONED2cSY1Utla+BAi03 NVnqi8wOxxbXU5Mjbm85bnpcqTnLqaxzz/7uuYK8KhDBSIy5iq6/WiaFU3xLUla094gO NHvS4bzm7I8h+1Tn2XGIuVh2kjJppYaGJ+pb9lgUT8kB5t4V2evr44yVipD/rWPZHuHB K8Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MjJD+VCK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si1764747edq.539.2020.08.12.12.03.48; Wed, 12 Aug 2020 12:04:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MjJD+VCK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726673AbgHLTC6 (ORCPT + 99 others); Wed, 12 Aug 2020 15:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbgHLTC5 (ORCPT ); Wed, 12 Aug 2020 15:02:57 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34C5EC061383; Wed, 12 Aug 2020 12:02:57 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id p14so2702647wmg.1; Wed, 12 Aug 2020 12:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=HaL2zh/WXFrk38V3//tUJzJt7K7m3lYKmEzICUwPAfg=; b=MjJD+VCKfzYVsZgX5Dc+eN1Jv709nvN3ChxDOXcdlNW5r7rC9iK+eJmMaFx0Onw2UY ZocoTU0dKjKxesgsr6graGWP86U2rbCTdf2ZjexlPcvEyT6eXskm76SQGdJUgNzXRYyx s9zX6QdonMvB+vhc8voH/BKliyJjIeCSz79nZyONKCgJcYxfBX9aT7GYgIxFVcsCBe4r Gtu6dbWIa3oRrkNTcTX7DCXZFb26cORK8OGHjnZpNXAfK+Y9XHwNAdu4qKRIkwerFx/4 UJWX5qxUVG2q5bgOSW/SErfjnXqgFel8xLY6+s9b2Xqvc6RtwPcNNi9tRGR3lXVOOmrA h1Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HaL2zh/WXFrk38V3//tUJzJt7K7m3lYKmEzICUwPAfg=; b=hrb2uG21RsXvDaCSUKJtNRda1U0mb3zZkMVdpDYD2I32rtB5oJZtYTqO67Hqs5FtaU xwGH49u6coojSa2rOiLEeVG6XCerPdqLaAeOufztodAz6SERybzRLs9tRMpigjGAxfVn I7T5P/X4R+3gqMJA/WaYscWhvIlrzwTJjoRL2NHSuSE8cElDLBhVmALja82EKukCNOku w2U8KXsYL7HhwIQbvIhK07oBqpxQsBKxR+yAVBO1IL2tw6to7ujCN2gq4V1BoF4kAONu plsrWRu5SWqDDhA8xQWYNHlsgeKu6bYD3mgr57ruf9xxXEYnA03DC/JNzzA7lpPGP5xL Z7mA== X-Gm-Message-State: AOAM533+hTUUj1nwDSCrHqE4AHX9h7hlKfwXISp3r50Dt1BsJ5ISPGQ1 aauLG1iTtHv9bv41nfAZ8Yk= X-Received: by 2002:a05:600c:2116:: with SMTP id u22mr961700wml.35.1597258975940; Wed, 12 Aug 2020 12:02:55 -0700 (PDT) Received: from lenovo-laptop (cpc83647-brig20-2-0-cust926.3-3.cable.virginm.net. [82.19.195.159]) by smtp.gmail.com with ESMTPSA id z7sm4811299wmk.6.2020.08.12.12.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 12:02:55 -0700 (PDT) From: Alex Dewar X-Google-Original-From: Alex Dewar Date: Wed, 12 Aug 2020 20:02:53 +0100 To: David Lechner Cc: Alex Dewar , Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Sekhar Nori , Bartosz Go??aszewski Subject: Re: [PATCH] power: supply: Add dependency to lego-ev3-battery Kconfig options Message-ID: <20200812190253.zewvdfvyu6cnggcl@lenovo-laptop> References: <20200809185444.54247-1-alex.dewar90@gmail.com> <20200812133711.ddwhxypmvr27pxdu@lenovo-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 12, 2020 at 10:24:30AM -0500, David Lechner wrote: > On 8/12/20 8:37 AM, Alex Dewar wrote: > > On Tue, Aug 11, 2020 at 09:24:10AM -0500, David Lechner wrote: > > > On 8/9/20 1:54 PM, Alex Dewar wrote: > > > > This battery appears only to be used by a single board (DA850), so it > > > > makes sense to add this to the Kconfig file so that users don't build > > > > the module unnecessarily. It currently seems to be built for the x86 > > > > Arch Linux kernel where it's probably not doing much good. > > > > > > It would probably also make sense to add "default n" since it only > > > applies to one board in the entire arch. > > > > Ah ok. That makes sense. Would you like me to send a follow-on patch for > > this? > > You can just send a v2 patch that includes the change below and the > additional change. I've just had a look at the documentation[1] and it seems that as there's no "default y" there it'll default to n anyway. Have I got that right? [1] https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html#menu-attributes > > > > > Alex > > > > > > > > BATTERY_LEGO_EV3 is already explicitly set to "m" in the appropriate > > > defconfig file, so I don't think it would break anything. > > > > > > > > > > > Signed-off-by: Alex Dewar > > > > --- > > > > drivers/power/supply/Kconfig | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig > > > > index faf2830aa1527..9f76e2f47ac6d 100644 > > > > --- a/drivers/power/supply/Kconfig > > > > +++ b/drivers/power/supply/Kconfig > > > > @@ -164,7 +164,7 @@ config BATTERY_DS2782 > > > > config BATTERY_LEGO_EV3 > > > > tristate "LEGO MINDSTORMS EV3 battery" > > > > - depends on OF && IIO && GPIOLIB > > > > + depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST) > > > > help > > > > Say Y here to enable support for the LEGO MINDSTORMS EV3 battery. > > > > > > > >