Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1069956ybz; Sat, 25 Apr 2020 10:16:51 -0700 (PDT) X-Google-Smtp-Source: APiQypK0QvpnzNzURV4xiqCw9/TSWOJt3MXziN9Ll+w0IdHGpOU2qPY0BJFTDGHI19gvLr/+pGdI X-Received: by 2002:a17:906:304d:: with SMTP id d13mr11751116ejd.159.1587835011251; Sat, 25 Apr 2020 10:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587835011; cv=none; d=google.com; s=arc-20160816; b=zYo4xzfhfoENR4QL7t0iMdhaS0zWLvsJVJGqbKfCKscVN0nVSNuV4ewHJ0ye3fH/Zk ZXpsWNlYkGNrXR8nCHqClrApS3663oKfs7nbo690u2w6eiBcI6W4455SdUQvn6tKdtfQ NvxEK+6CKxx6XlRucoBQ3nNIvJNlf8dWYXcx9hyS8b5V+BqZxSoHIVTeYuovgu90SU/G wLIIoTM0IxhEfFYYkSETMzeao91/1vSCRARwSP7ghNTAZK+xgFyfM98mC/8Qn4SKsi3A 1CQmEWvUOf3gdCIWZWMKVeaf15GnRkCjYoib/forkUPR3C3NQxGDkDtMAZ6wjqOnBqBh c/eg== 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=Ptuc5FZNVWukCEs5Hrts5YeBt29P4c401lvcj9WBH0w=; b=Hmn6DESKRpk/NBRcUB8XYd6CBIWbitUipVDrqUpHSwH4+vSWm2+1kQb6sNvODF4a3R W5/+UfwvD3z4mwEduU6Ooo2KMrJWRnRYMLpqpWj2MxStf4d9m52y5N/HGydxGBV4YBu4 oIhXfHGKEmt5ouQUzTKN1bZeWyv4mHfQ4FOV4jLTmsBy/dp6t+4qF5FEE2f/bj9cIeAz V1izpS9P+V/WwQ5Fm0W0sR+tRBmKEYs9kqxCQX+qaPF+77b/pmHP9K1/sN6PUc+2552i W+UiXal9lwGNvQGRsasj5lVBOF2I7OUbP0L6U6qh+4l9lUiI0nW5gJ2z12AwRZbDA1Pi Tv9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZmeMVFa4; 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 v21si5107807edq.326.2020.04.25.10.16.27; Sat, 25 Apr 2020 10:16:51 -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=ZmeMVFa4; 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 S1726190AbgDYRPE (ORCPT + 99 others); Sat, 25 Apr 2020 13:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726145AbgDYRPD (ORCPT ); Sat, 25 Apr 2020 13:15:03 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8353C09B04D; Sat, 25 Apr 2020 10:15:03 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id hi11so5245458pjb.3; Sat, 25 Apr 2020 10:15:03 -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=Ptuc5FZNVWukCEs5Hrts5YeBt29P4c401lvcj9WBH0w=; b=ZmeMVFa4E0Z/XLac6ZRPXg7zKQwBJ4tf9pvfJE/l7ECgkj+ukXx71XiqtfdESqETEs 0NEk1/51KRLglqDV9yCiNlamx6x4ZPKayBJIL3nhoawzichsfb3ty45ugf8fVo/F6liu ab3TDvXAUdENyvASiA3aRn1u1yldv81t6h0c04DnZcuaAiCgCzcu7+zqW+k+WTLf68SW 4Os6wV1Zv9RNq6SZLbFbwvAUyBayjE12Zz7iXOR8Ij/Vzg9Wsu4ieyyKtfAHksclZGeC 0iUXcRY0lISWorR6gWOcF0dLbTib576CB4NhSRQa4rTS76fpq4Id61zFxLXNxYKBqt96 YZqw== 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=Ptuc5FZNVWukCEs5Hrts5YeBt29P4c401lvcj9WBH0w=; b=OuXG8tyaxmKt1xhf55UDOXB9eo599ju4wk5D1fCm+A2BBMbXteW24n5PWLbBN9UvhZ kYQNfmbjSi5/tTcNjdJTUKIW3+msvau5wMiVGAOLiFiJn0wvxGvt5/yqXk1awq4RXKqz WzJR/vFuW3xbx0kTvG/597oHdp5BzzDJD6sKLTm7/Dxxi1P9IUuVAaV0rBCd259eQCLr 47M6meMFMmFuW3VcCj2UUDE6K/MpBtwpf60S+BR314A9TdVLuLXuZAE9gWi4lYdzSwU0 4eL1zlPZtFn+uuHu9WpXxVdDmOOYU53/uA8Fgj++LSRw8SNpuzhlKXdXI12X1N96V1tJ U2Lg== X-Gm-Message-State: AGi0PuYMpt8MZBl9veWV6haIGJbuC5ujYO+TSkwJIvS/iJ0FQQ/ZiPwI +rBIsWMsbqO+nycjRo9iJ/qXzdtmhrPpWOoYPWM= X-Received: by 2002:a17:902:aa09:: with SMTP id be9mr15526982plb.18.1587834903128; Sat, 25 Apr 2020 10:15:03 -0700 (PDT) MIME-Version: 1.0 References: <20200421075532.19192-1-m.othacehe@gmail.com> <20200421075532.19192-4-m.othacehe@gmail.com> <20200425165223.0fc0e930@archlinux> In-Reply-To: <20200425165223.0fc0e930@archlinux> From: Andy Shevchenko Date: Sat, 25 Apr 2020 20:14:51 +0300 Message-ID: Subject: Re: [PATCH v4 3/4] iio: vcnl4000: Add sampling frequency support for VCNL4010/20. To: Jonathan Cameron Cc: Mathieu Othacehe , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , linux-iio , 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 Sat, Apr 25, 2020 at 6:52 PM Jonathan Cameron wrote: > On Tue, 21 Apr 2020 15:22:11 +0300 > Andy Shevchenko wrote: > > On Tue, Apr 21, 2020 at 10:56 AM Mathieu Othacehe wrote: ... > > > +static const int vcnl4010_prox_sampling_frequency[][2] = { > > > + {1, 950000}, > > > + {3, 906250}, > > > + {7, 812500}, > > > + {16, 625000}, > > > + {31, 250000}, > > > + {62, 500000}, > > > + {125, 0}, > > > > > + {250, 0} > > > > Leave comma here, potentially helpful if it will be extended. > > Hi Andy, > > Doesn't particularly matter either way, but given this is a list of the values > supported by the device, very unlikely it will be extended. > > Games like trying to share the first part of a longer array between > multiple device types might occur, but those are usually really ugly. Good point. Though I would limit amount of entries by explicitly writing down the array size. > > > +}; -- With Best Regards, Andy Shevchenko