Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA212C433F5 for ; Mon, 21 Mar 2022 19:46:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347476AbiCUTrd (ORCPT ); Mon, 21 Mar 2022 15:47:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344200AbiCUTrd (ORCPT ); Mon, 21 Mar 2022 15:47:33 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8357A74600 for ; Mon, 21 Mar 2022 12:46:07 -0700 (PDT) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 4805983AFC; Mon, 21 Mar 2022 20:46:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1647891965; bh=KydICew6fLL9uyZDKQjRNwJ6ZoexwN0WVN577wiAKCc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dt8D2ZGXEDXaOyKpkkOVHg3LYm6ecY4rOOqHoMP6Dzer3dmOkrjRQkwRaDCCKRvrn tjRdtZo4JV/b3nRUS9i+jHgUe5odPf8HFbv/3jTGE+dQSn753FHC4BjvnJ39iiRDoK W7TaAZKn8la8UguODtBpH+Oc+sWp+ukWLKu3Hx5P06dATEAKcV8nZwnhfADQ3qTOVz wcnITbdTWrUhhi9jtOJL1SwzS0w2C9lF4fWzaU7HvQeObNwWYmZ5iQ1YjtdbylDuuR t1ABUNHwizc/AZkcNa7xpjdVTbChWw92BOjIwqd4vSbITc/Q/LutSj85IOvjUwVx+/ I1hzTfBiOr1Mw== Message-ID: Date: Mon, 21 Mar 2022 20:46:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v3 10/10] iio: adc: ti-ads1015: Switch to read_avail Content-Language: en-US To: Andy Shevchenko Cc: linux-iio , Daniel Baluta , Jonathan Cameron References: <20220320181428.168109-1-marex@denx.de> <20220320181428.168109-10-marex@denx.de> <8c5772a7-6939-ac33-7b10-acded2b7b9ac@denx.de> From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On 3/21/22 17:19, Andy Shevchenko wrote: > On Mon, Mar 21, 2022 at 03:44:24PM +0100, Marek Vasut wrote: >> On 3/21/22 10:27, Andy Shevchenko wrote: >>> On Sun, Mar 20, 2022 at 8:14 PM Marek Vasut wrote: > > ... > >>>> +static const int ads1015_fullscale_range[] = { >>>> 6144, 4096, 2048, 1024, 512, 256, 256, 256 >>> >>> Keep a comma at the end. >>> Also applies to the rest of the modified data structures below. >> >> Why ? We don't expect these arrays to grow new values, if there is ever some >> new ADC, it will likely have its own array. > > Just for the sake of a common style. But it's not critical, > so I leave it to the maintainers. The common style of the other arrays in that driver is without a trailing comma, hence the way it is right now is the common style. I do however understand the rationale why a trailing comma in structures makes sense (you don't have to add it in some subsequent patch, which does only cause churn and unrelated line changes), but I don't think that applies in this particular case.