Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2477319ybg; Fri, 31 Jul 2020 00:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfn9BTYcaAtlhMwy1ATeroK/gPpYvRsV8RCkG0VNbTbemLYl/Av+wJfaS+SeNlfevR/dn1 X-Received: by 2002:a17:906:600f:: with SMTP id o15mr2755261ejj.41.1596179512872; Fri, 31 Jul 2020 00:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596179512; cv=none; d=google.com; s=arc-20160816; b=OsEv3XbO7Ydd07Go527PGbHsMGq+M6bzoB+0mXh8Jbp9ocuGxnJosO6yKM3/Rbr3sc S466mnzIy7a8b6eCC3r43ZaYZAFybT50CfA49FirgbY4evN8CdmABFD5A5fXGdG84ESy mla17S7fv1cErF61KOKQTBxcZLTG/3ohZsyhmsi+JNjhqdINHUIGdDl/m/mAwQxlJF38 Z98o3gKO9sHQ/MraymEeKP5lkK2S+1Btsyf+rvQPFqV8DyDul/jb6xfMiT4J+SVZyexT j9iMpILGPV/AOj5s4a6DZHINuX0Q90c2q3zWDbHWD3R8720C5dQZacLBq+X6OOYV1uLL GWtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IaOPDNqjlm4nruE9qKEP8Z3VW1xQ5LCsXpfkCN21JRE=; b=i+BPnuipqu1l/6OwKJ8AKZde3JO/FUInT/TAcd3gBeuPSiOJF3khDbw/9ieX0ffkuG rhMQqmpu24mI6M4UMfw7SE1hbtbM49XCdZ2xXvXzzRlkoYA7Au2a4ESlcDwRDdvuGrCa 2czEJ24IFk9A1aVfwXjT0hE7FrToXrenGRO/dDCqDkzoccrxqXqhNnx1896GMfV/Fgxj voTATNstcsMwWZKblEQWPMSsBP30ZwydJzGm2TdXazgbM/LKv9xyETLim7ZrytkUAHk4 tVtbeYI/TQ3sNPkfMc1fuLfxsUY6VncFfDS2ynB0ihJeEJwdBDC/MLWe2iJCnE1HIitz U8Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dKvXRzJs; 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 d2si4531571ejm.717.2020.07.31.00.11.30; Fri, 31 Jul 2020 00:11:52 -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=dKvXRzJs; 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 S1731563AbgGaHLJ (ORCPT + 99 others); Fri, 31 Jul 2020 03:11:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731478AbgGaHLI (ORCPT ); Fri, 31 Jul 2020 03:11:08 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 056D2C061574; Fri, 31 Jul 2020 00:11:07 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id a9so6537150pjd.3; Fri, 31 Jul 2020 00:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IaOPDNqjlm4nruE9qKEP8Z3VW1xQ5LCsXpfkCN21JRE=; b=dKvXRzJsQKtOQv7KK4UDiBM5e6YE5z64JNUw9iv/8GlNkOxAI2Ibc8u8dTUvhH/o8M hH7/AZtnc8zBtpdRy0rSAqSv+bzdUMJ4VfGOovJJEusJbckaabT21pKZemphdG1QFyPo rx6W0qS+Q9/EKussZkJFlw58peNu+3GWQPA4ypH52z1FPgUGfOJP1A047xuz5XogIFYl caTyv1aV7FfdNxd477u8pl9YVcrLBKrKgA499lbFttHUs3wHuoySxU4cHDQBV0+tyUua k/DMWBabpI+w8le+fUrmQMog8lNa54ZKaTW1WnqV+SEmi0WCXJu5v0ygtihotHawaVdq Tbyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IaOPDNqjlm4nruE9qKEP8Z3VW1xQ5LCsXpfkCN21JRE=; b=PBrhHhlt9VQjeploTATbo8p5FpKhqTx6zQWOWT//QuFYl9p5kNPRhV/e2F2zttcqxD SanS0mzIWHqeD0SrK1oXTPDLQGPMJCr4cfbNBuenzquVQ4E98Qfjj2kogdhg1+T4HSfI z2psZma0rTOpBukTDd1gmpmQzxsmn+23/lrFbVkECwvVH2eTRdCyPomfCVEeMf8FJt2B K0p1pKfH8BnvLv6oDR9h9C+KlY91EB7AFH9V59n4MOw2TiL0QbMKiuHU9Xu70ofeSl4Q hsZJjq4YpmqAnfjoSNHXuSdvpRY/+7riIaTatJOe3SGhwLkmEoIjVgxSbdmla5WZjtO8 c+eQ== X-Gm-Message-State: AOAM532STQpoI9uzsgjoSJDmW+Xjbbqe7m55GWSnOpa4mh6WXuLmiF/k uaCuJxvDXwnm6sx0g2T1low7wyJQmTy0tYxErDpFivWK X-Received: by 2002:a17:90a:a393:: with SMTP id x19mr2849315pjp.228.1596179467430; Fri, 31 Jul 2020 00:11:07 -0700 (PDT) MIME-Version: 1.0 References: <20200730104946.39148-1-ceggers@arri.de> <20200730104946.39148-3-ceggers@arri.de> <6453117.yIeBT9JUrU@n95hx1g2> In-Reply-To: <6453117.yIeBT9JUrU@n95hx1g2> From: Andy Shevchenko Date: Fri, 31 Jul 2020 10:10:50 +0300 Message-ID: Subject: Re: [PATCH v3 2/2] iio: light: as73211: New driver To: Christian Eggers Cc: Rob Herring , Jonathan Cameron , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 31, 2020 at 9:55 AM Christian Eggers wrote: > On Thursday, 30 July 2020, 13:31:31 CEST, Andy Shevchenko wrote: > > On Thu, Jul 30, 2020 at 1:52 PM Christian Eggers wrote: ... > > > + * @buffer: Buffer for triggered measurements. > > Actually Jonathan is correct -- the above has kernel doc issues. > That's correct (the description for @buffer has to be removed). I didn't figure > out how to automatically check for this. When building with V=1 C=1, I only get > the message "as73211.c:76: info: Scanning doc for struct as73211_data". W=1 (not V=1) runs kernel doc validation script. ... > > > +static unsigned int as73211_gain(struct as73211_data *data) > > > +{ > > > > > > + return BIT(0xb - FIELD_GET(AS73211_CREG1_GAIN_MASK, data->creg1)); > > > > Magic! > Similarly it's difficult to find an eligible alias for the 0xb as the > whole expression is constructed from viewing tables on the data sheet. I added > some comment. For this and the rest, descriptive comment is okay. ... > > > + if (val < 0 || (freq_kHz * 1000) != val || val2) > > > > Ditto. > I switched to existing defined where possible. But I wouldn't like to introduce > this for every possible physical unit. Please check again in v4. I'll do check. -- With Best Regards, Andy Shevchenko