Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3150249iog; Mon, 27 Jun 2022 10:09:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vU41foYA9FzHJMsoxVNuoLCm0NS+eyCxLL42RUFpBORMaI7D6KqVh9hd6iiF8OIkLuPaEr X-Received: by 2002:a17:90a:b703:b0:1dd:1e2f:97d7 with SMTP id l3-20020a17090ab70300b001dd1e2f97d7mr21914115pjr.62.1656349747708; Mon, 27 Jun 2022 10:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656349747; cv=none; d=google.com; s=arc-20160816; b=HW1c3bfbaicamWcf+QDff9Vz4tdEFRF1vqiCEdCcVaKl1dsgvnh3uJ09A8wKD/ZJ8B xwTQYodl2vUU13GChsOosM+8mdvMN+Jcb5a2wuSTcGYDZTU4u/0ZnGQeQttTZosXWTUP FQcZ3SBY1cIx8gym8RCYhFQEZa15DZPsdDjEHoy90pMoovG00VHvY1R2AUgMWEkIZxga /Yc9GmHwSO+DF1ASeYxAp8qJX5eccQvnjxGzlxd/g2cfMW/I4kv4bFF+tDtCH5R0N5DK nDizKdOK3Qk4PmdlQ5ij822xPDv+sSjBIbFGtfvUNkTdvdvOhvBCCaslbXJZaFc0YHzk BPrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RFbscGfZ1HvqkolFfPgOHxRAqCYKsO6AGhI1CWcF3U0=; b=Vt9WxvdGOabGT/bKsjZW8Lq9ZGUaHeQeEuoFgIw7DZlfBgKSVy/BPI87310HEq19hG XHt0EEGGvfvbVlczMgi70cBMVtkmBavPXKJ6U8R5cWXYsZnlAbp+kYFvYn3vu0eMCzSP 8JWck1mWQEDvGKoYv7RwtnRg/Fe/r4XaWyJlmt0UBdFbLSN8FRim300CmWErYV2rbium EsUlv0EScXAy5teyZDGPy07eDdZ25s8DAzX8vCgSyWfAAov714g/5gg/OVXa9zL0zQhU 3QrV3qe0mpeo1IO9FsCRe5MddAlfPBAclUJ+AwPdoVrBTUHo1ibuVZqLplsS/PbolMdK B9SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QL9P5fYJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v184-20020a6389c1000000b0040d71f0da27si1859810pgd.268.2022.06.27.10.08.55; Mon, 27 Jun 2022 10:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QL9P5fYJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239244AbiF0Q2X (ORCPT + 99 others); Mon, 27 Jun 2022 12:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239234AbiF0Q2R (ORCPT ); Mon, 27 Jun 2022 12:28:17 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E146B7CA for ; Mon, 27 Jun 2022 09:28:13 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id o16so13851310wra.4 for ; Mon, 27 Jun 2022 09:28:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=RFbscGfZ1HvqkolFfPgOHxRAqCYKsO6AGhI1CWcF3U0=; b=QL9P5fYJiAGJ0cVberqQxZgecUlCyO035Rs/RHERScTvlSGjFZWJwcJ83NKx7icnCf MmmkqeK7/MKYHkhThvS+4I5n6eilA1iv0cTdd1jM4UXHDDaaVEXvSnXIRzJWnCUCUcUi hfbpR0k3AwYuP7wFzDx1Qb4iWIpTN9nBpMOsMz5YzOvQfMZ+aNGdk1BwqtUaNtHKCBDC fA9t5x0TJ4kWUQmeUPz8VsbAvV+0a4AUoZiJIyO7qENghiYMyKTM8whwQHTooEBVZnfa hv7NO7jkwT4JYF/WPaOvNMBn/r4c0lJo2uE2cyoUPVH1HBvXxtPYqUUryaiaIppTOHk7 Xteg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=RFbscGfZ1HvqkolFfPgOHxRAqCYKsO6AGhI1CWcF3U0=; b=6dy5044EZpNqgE/pl6dRQO27ntbSjBcTRAHR//Ww5N5MvzSoZBbZlcLxAP/Vq0KWs6 rDQ7gAtO2oPF70j0ygP1rSkPaibwwv94mcDIJRtWmoDr0Un5L49Sxmvt1wO3wtT5GkhQ Az+owNPdT/UIpQvIlzLlGT4FXTOAgANcjp4peT64Q3qyjjeR+uAETXueT3meC1Jb/bb1 CatQpVcUuEUgGJgwmdMcDoixHvQ8A/02kZT9UG+/EktscWQyNCICAZLEyzQfM3APovb4 aYL17FLpbNXQvci5dka42+F1uZSfl1htj4BelIgMjjKo+5B4kh0oMMrB7h5z6dI+rl9o /MfA== X-Gm-Message-State: AJIora/nip+G3rvXTAGs1tAwbspqV7BuuFWwuhRVlB+vMzTt35NCbjCe xKCYt2F4U+oyxYMNaJmLB5tunQ== X-Received: by 2002:a5d:5966:0:b0:21b:80b5:ecc3 with SMTP id e38-20020a5d5966000000b0021b80b5ecc3mr12930472wri.130.1656347292409; Mon, 27 Jun 2022 09:28:12 -0700 (PDT) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id m17-20020adfe0d1000000b0021b866397a7sm11132854wri.1.2022.06.27.09.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 09:28:12 -0700 (PDT) Date: Mon, 27 Jun 2022 17:28:09 +0100 From: Lee Jones To: ChiaEn Wu Cc: Jonathan Cameron , Lars-Peter Clausen , Matthias Brugger , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , linux-iio , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , dri-devel , Linux LED Subsystem , devicetree , Linux PM , USB , "open list:FRAMEBUFFER LAYER" , szuni chen , ChiYuan Huang Subject: Re: [PATCH v2 08/15] mfd: mt6370: Add Mediatek MT6370 support Message-ID: References: <20220613111146.25221-1-peterwu.pub@gmail.com> <20220613111146.25221-9-peterwu.pub@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 [...] > > > > > +#define MT6370_IRQ_DSV_VPOS_OCP 124 > > > > > +#define MT6370_IRQ_DSV_BST_OCP 125 > > > > > +#define MT6370_IRQ_DSV_VNEG_SCP 126 > > > > > +#define MT6370_IRQ_DSV_VPOS_SCP 127 > > > > > + > > > > > +struct mt6370_info { > > > > > + struct i2c_client *i2c[MT6370_MAX_I2C]; > > > > > + struct device *dev; > > > > > + struct regmap *regmap; > > > > > + struct regmap_irq_chip_data *irq_data; > > > > > +}; > > > > > > > > Can we shove all of the above into a header file? > > > > > > Well... In Patch v1, we put these "#define IRQ" into > > > "include/dt-bindings/mfd/mediatek,mt6370.h". > > > But the reviewer of DT files hoped us to remove this header file, we > > > put these "#define IRQ" in this .c file. > > > Shall we leave them here or put them into the header file in > > > "driver/power/supply/mt6370-charger.h"? > > > > Where are they used? > > Sorry, I wrote the wrong path last time... > What I should say last time was to put them into the header file into > "driver/mfd/mt6370.h" > These "#define IRQ" are just used in "driver/mfd/mt6370.c" > I’m really sorry for making this mistake... Yes, that would be fine. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog