Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1964671iog; Sun, 19 Jun 2022 03:44:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDdXoxWOpMjbi7NtVvYaCMzO642nsUPVanbaU+nk+QIokDWQpIefWeYl3Fio0ww43MoPrc X-Received: by 2002:a17:906:6806:b0:703:1f4e:9868 with SMTP id k6-20020a170906680600b007031f4e9868mr16465438ejr.699.1655635484074; Sun, 19 Jun 2022 03:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655635484; cv=none; d=google.com; s=arc-20160816; b=LnuXoTOuwMkwhiybxQZms/AIZKlkHHMidFhS5ZuGojKHyEGXOdOFzKO/lEKEyYZ3Km a4AMB8WRDlxpofrHVKEXqtadkHNAqflbG2Q8MPn6k4ohsAgNXFJwVZLxMnXPXBe1Ahpj ml3qK253QUwHkBW3HGZrrP8IxQZhg9kqZ8I2IAq7TvyF+4j3DJf/KjNLJpx6ZBMo3RcV olD4EgW0NY6jwuxT9hr1Gq7V17yZyvkN3AukieoEWfg1oEi4k1/Xrjsb7O0HqyLs9Muc 0rVcaF+wRTQBrr6+iSEI+zTDsPitk29GwMkkEBwQ6QJBbmEhv6FyvuGGHqZAZp8wIOuC 0srA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Iz6jHYMoS6HvBou6Ank4WdyYv7rCxOnAp99ym/26Ctc=; b=WrIgHlq/Q5YA3nQTHfXQefG5GkJTSOvxeFaxSdcSMX6xFR30sOYAG6LD9Lmx4OEGrk /9VFE/bTALOPki+xvSnrjLXTjsX44JpvLuyQ8jKNVM5zNR/Im1uoB7XZ1LZ2KlXw25AE 8gMal0XxhfGb8ULur0qOA3NZp0XfK/V8lWgzT4Ti3qxPeeWb+we6fC1DKJSPHcyFQXBb 2wEApWDzPA/ooPtTspn9TuismPtem7Z3h5BwkkNY49n4I7EFC+t7q+KSZxmEL2ouasbx +mk+/8o8Do+cF19+fHCHKpgnNsn9sdV1Aw0EFAXd6jN5z4ZfZ8F26TJZA6twvRJUMgSU qs8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JRFFibUT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a05640240d100b004314b858d28si12726759edb.11.2022.06.19.03.44.18; Sun, 19 Jun 2022 03:44:44 -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=@gmail.com header.s=20210112 header.b=JRFFibUT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232461AbiFSKi6 (ORCPT + 99 others); Sun, 19 Jun 2022 06:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbiFSKi4 (ORCPT ); Sun, 19 Jun 2022 06:38:56 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81C22101DF; Sun, 19 Jun 2022 03:38:55 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id z11so5297711edp.9; Sun, 19 Jun 2022 03:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Iz6jHYMoS6HvBou6Ank4WdyYv7rCxOnAp99ym/26Ctc=; b=JRFFibUTmHEAklZ7mVmGSE8YwHbxVNzfgozrUuHD3iXiddsS+EYng0C2hZ6AoTMEVK Ao/bWQs1sDA3otDsuKz6FM8jL13CuK35u6vEA477vf68p/R1IZtejqoxBeyQ6vZkfzz/ Vb2qCSnz2bc66VO6M32icbFzl8bB0gvOeFzT8bte3m4UgO70HDSb0zdPOJlPq3RC/hHj l4D0wSoO9B5S/iKxbBsQAZl9/5/n1t2ZT1ANAkIyTBtr0kw9dQDTp/C8iwHbyweG120P cj0+apI/fONHlq8iI8VTTcAwe9ITQFgf0DEFg3+cW5TCJmCgps5Pqo6laH4/UssFUjjI SLqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Iz6jHYMoS6HvBou6Ank4WdyYv7rCxOnAp99ym/26Ctc=; b=gdB81Z9JE5tSFgB964BolNcY846vPmFLw4VDsIntwTVx/7M9oHgsYybwz0wvhZPWwJ GFfBZBLQti4xXWAq3PSfutcQrVLAci7nfo/6URjbnUxPgdStCW03E20TG02OWusJHqHi 8ENjepg7o0GkszcXhIuGdibPA5V7ui9kAcjFOIN/LVNWzUYG9nNMHQcZAORESWU8uBRd fzRqCDOENtdItHjP1cCzqBI6VZQK7mwbToWFI2u27II0WeTxNnPUT3eTvMERbYMsw6w9 ZObSC3uWnBJocs++ktlULPXNBQvFtoefF7cyFz92XyHlNm9iBuyqxiWs2VkUB1YTZBRZ td6g== X-Gm-Message-State: AJIora/L+M4csSScfZEGc3NDszIbcBLGz8BtD4cjJv2gmDSopkgiYsSv xS1VxTdlt8bKLm7vaw2EyOI//WtInAczsZdMRsc= X-Received: by 2002:a05:6402:11d2:b0:42d:e68a:eae0 with SMTP id j18-20020a05640211d200b0042de68aeae0mr23021080edw.111.1655635134082; Sun, 19 Jun 2022 03:38:54 -0700 (PDT) MIME-Version: 1.0 References: <1655458375-30478-1-git-send-email-u0084500@gmail.com> <1655458375-30478-3-git-send-email-u0084500@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Sun, 19 Jun 2022 12:38:17 +0200 Message-ID: Subject: Re: [PATCH 2/2] iio: adc: Add rtq6056 support To: ChiYuan Huang Cc: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Lars-Peter Clausen , cy_huang , linux-iio , Linux Kernel Mailing List , devicetree Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sat, Jun 18, 2022 at 5:16 PM ChiYuan Huang wrote: > Andy Shevchenko =E6=96=BC 2022=E5=B9=B46=E6= =9C=8818=E6=97=A5 =E9=80=B1=E5=85=AD =E5=87=8C=E6=99=A81:08=E5=AF=AB=E9=81= =93=EF=BC=9A > > On Fri, Jun 17, 2022 at 11:37 AM cy_huang wrote: ... > > > +KernelVersion: 5.18.2 > > > > Wrong version, this won't be part of a stable kernel. > > > From kernel.org, currently the stable kernel version is 5.18.5. > Change to 5.18.5? Nope. You need to use realistic kernel version, and as I said it can't be a stable one. ... > > But for sure you missed > > types.h > > > Ack in next. But for types.h, i2c.h already include device.h. > And device.h already include types.h. > Is it still needed to declare explicitly for types.h?? Yes. You have to include all headers you are a direct user of, except the ones that are guaranteed to be included by others. The types.h is not guaranteed to be included by listed above. ... > > > + struct device *dev; > > > + struct regmap *regmap; > > > > Swapping these two might give less code in the generated binary. Have > > you run bloat-o-meter? > > > I never know about this tool. > I'll check it before I submit the next revision. > Thanks for the reminding. > > But from Jonathan's reply, I may remove 'struct regmap *regmap'. > If all function need the 'regmap', a local variable 'regmap' need to > be declared. > To use struct regmap *regmap =3D dev_get_regmap(dev, NULL) is more effect= ive. It's fine, but you may experiment with bloat-o-meter even in that case out of curiosity. --=20 With Best Regards, Andy Shevchenko