Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp510166imw; Mon, 4 Jul 2022 13:51:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vTbqTBU5ReIXEGSMVGR1Y4hpDQpecN4bU7gi2H7K/WBlLfGIrwQdnz1T/ais3vTN5mGUVZ X-Received: by 2002:a17:90b:88d:b0:1ef:9182:104a with SMTP id bj13-20020a17090b088d00b001ef9182104amr3519539pjb.74.1656967917329; Mon, 04 Jul 2022 13:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656967917; cv=none; d=google.com; s=arc-20160816; b=gLUO6T+j/YtaJPS2h2v2lWnvLFu1vi8rqHY0bh7Wf41K+9LDRb8r0b0HXpQRoOaKfz FH+bR79d1h9HEh7UN21Ha8RerdfAZC14Q7dIE9pvDq9Tv6/CN6gayT0/4Q9s0rIWlI1s CFCgZhR8gh31UJmvvpfgPjz3qyyT6+a+NcO4ddvRqPUOsQJNnUmHRitP4zLYedCJkL9k 63/6rFCPZCy4km6QrF0c/XupQaBM/4KnSYdUdXK/o6nmFrOVbKtG+6r3zyWI3upVjmSl LvyfumXCcEwA3iaekSPFqBhll+I0X4+EV/C6CPIypTyMoRwMJAwh4GzNdBDjLjIPVSc7 a5yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=i7pfQddT00wwybN55WXtE8jeGfJuRCDhkTs8A9N9Avc=; b=qhl6JPMM5/5NB9soHyoJa0r4a/wFul7fyUgqmf37xeo2T+pbOk1GkIkOQcczNcsLI3 lfhx9CzamaWxz3pv4QefGFucqwupxm/LPOLQFE1oI6x6UJHDp5o4j6pVPjDL6965QjgF h5FY8BPBbaCI8QYR5BXmS74BOzrue/vGAhnyShKYS2xqvHFmTegN5YchSctvx37Z+Zux Lk3CTSYgncu3btqoP4X1u9dayphzd+STzXiKR9yfbzzMKnhlCYzty/pCrmqnwJGyntmX vaCtseEn3C4hJ8JaTZ6e3RJ4pIIRSjFeFyD0nQdk5vGuUZ48ceoXFENn3SAdX1/mK7sJ fqzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=juo7rzkg; 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 cl1-20020a17090af68100b001ecb74e083asi17465889pjb.57.2022.07.04.13.51.46; Mon, 04 Jul 2022 13:51:57 -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=juo7rzkg; 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 S233424AbiGDUg2 (ORCPT + 99 others); Mon, 4 Jul 2022 16:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiGDUg1 (ORCPT ); Mon, 4 Jul 2022 16:36:27 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA4E1BE39; Mon, 4 Jul 2022 13:36:26 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id e69so11960963ybh.2; Mon, 04 Jul 2022 13:36:26 -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; bh=i7pfQddT00wwybN55WXtE8jeGfJuRCDhkTs8A9N9Avc=; b=juo7rzkgyOnogzMhLYCktRvFpSFkP3vvhbMY8Uk0vJKYeWueIKW+lWdoXP3yLwbds6 vcrr5NUqPVbQnT0hwWaYs4EEj2Nkh5SCjrFrs18UN6hZAi3OYtxjuCQlEQvAQUlc9Dpv J7v71ibaYThmJdJsc986feiZcZN+aEpDukUNqgPRhJF8LMCaE4eeOYQA30SWbqQhe9N9 uD2O3yv/dhvIOAfc/Yh+JrL6jYRzMb9TGUOPIk36TgGFoLO92g7jiweWYexkxNNBIGdE 16csuxysxq+iUAOhEZmurW/lnrwSZZbdImIhQoMrVi+ukTjz9HsWjjHwlR4I1VW1mjTI xbUA== 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; bh=i7pfQddT00wwybN55WXtE8jeGfJuRCDhkTs8A9N9Avc=; b=nZpdPcn2Obpreocg3995PpIalItzsq5aXZ9FdVISee1wvxNzsIZasydILZtzexPlYi ItW2O0Khh02e7WWDbonco6Wzk3YT0/aEYHU/V9w3IpvI1QvcIiZdfpY0TqxTFHi8FtDc 0jYjIuB2he2WU2V6fOdNv7BRm85aXIKJahkTBS2YiEVvq/LIYfgogC4Kb2xuOBxYpp+I hE7yfGduVHr++/eaWHLi5C0VsvbbPZp6Bn9J6UI/8je4hy4lCfVsvkkn66GopMnbymT0 KQw7mxdzhpb3CwWB1LJ+EfgkSrjkkmNDQzg0MafGxQ/Dn3ldZyvYSDXYf8QGJUgKj0qA Iosg== X-Gm-Message-State: AJIora/IOuzHjECZLJi0uKIS7RN+D+GqPRsUyGZJ6XAeRAWquGWEXcNP 8IcUSPdDm2oyvZ7V+bzzfDJvlKIQp6cIQ7M3JTn7Kf+ILyUQdA== X-Received: by 2002:a5b:68a:0:b0:66e:472a:83f4 with SMTP id j10-20020a5b068a000000b0066e472a83f4mr8583937ybq.570.1656966985988; Mon, 04 Jul 2022 13:36:25 -0700 (PDT) MIME-Version: 1.0 References: <20220704053901.728-1-peterwu.pub@gmail.com> <20220704053901.728-10-peterwu.pub@gmail.com> In-Reply-To: <20220704053901.728-10-peterwu.pub@gmail.com> From: Andy Shevchenko Date: Mon, 4 Jul 2022 22:35:47 +0200 Message-ID: Subject: Re: [PATCH v4 09/13] iio: adc: mt6370: Add Mediatek MT6370 support To: ChiaEn Wu Cc: Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sebastian Reichel , Chunfeng Yun , Greg Kroah-Hartman , Jonathan Cameron , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Guenter Roeck , "Krogerus, Heikki" , Helge Deller , ChiaEn Wu , Alice Chen , cy_huang , dri-devel , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Linux PM , USB , linux-iio , "open list:FRAMEBUFFER LAYER" , szuni chen Content-Type: text/plain; charset="UTF-8" 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 Mon, Jul 4, 2022 at 7:42 AM ChiaEn Wu wrote: > > From: ChiaEn Wu > > Add Mediatek MT6370 ADC support. ... > + This driver can also be built as a module. If so the module If so, > + will be called "mt6370-adc.ko". No ".ko" part. ... > +#define ADC_CONV_TIME_US 35000 Since it's actually MS, drop this and use MS * 1000 whenever it's needed. > +#define ADC_CONV_TIME_MS (ADC_CONV_TIME_US / 1000) ... > +static int mt6370_adc_read_label(struct iio_dev *iio_dev, > + struct iio_chan_spec const *chan, char *label) > +{ > + return snprintf(label, PAGE_SIZE, "%s\n", > + mt6370_channel_labels[chan->channel]); sysfs_emit() > +} ... > +static int mt6370_adc_probe(struct platform_device *pdev) > +{ > + int ret; > + struct mt6370_adc_data *priv; > + struct regmap *regmap; > + struct iio_dev *indio_dev; Per all your patches, use reversed xmas tree ordering ("longest line first" rule). Also it may be good to have a temporary variable for struct device pointer. > +} ... > +MODULE_DESCRIPTION("MT6370 ADC Drvier"); Driver. Spell check your patches. -- With Best Regards, Andy Shevchenko