Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4538273rwd; Sun, 4 Jun 2023 07:24:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qkz7BBN4cYB4qdrZdg0hTYpsyecE9tnkr7BKLok+lCeJYmjf90/OPUSpPhNA+RKjNBXv3 X-Received: by 2002:a17:90a:19d6:b0:259:548b:d385 with SMTP id 22-20020a17090a19d600b00259548bd385mr357194pjj.3.1685888655794; Sun, 04 Jun 2023 07:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685888655; cv=none; d=google.com; s=arc-20160816; b=SUELciokUdYT5QfusofguPQcq6Mu+tpIXtJ0Rg43qRKHmPq2Ga24v8xAIIWnB8ymo2 ys+mtrZLUzI9y7AdCQ7JW3m+sICcJ+v6ahC1me2eiEgI4SVaXAbMcK1cRU3Qm1Y+9AI0 Szw7uhls29dKROMMkIjnMj7CQoXUI2dHSC8H0b6xNJdFvpu4dau5+eD1/1AH8madMJk8 948rgBmyfme9X7esnngNPmqxQ++zBU0oX/tqm0xartTUIkWHQOg8cvxP6CitlUIRmyM3 7WyF+EKiP9tif5uPzeXGPhkl1E8MFyOXeAFHW4yFD0d9V1t6yejvrMeB3tsUd9U84ZGQ yAcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=5mce06CQMAN2rul0l9+tbC8fJOsi/Dg96pTIjdhJJxs=; b=Vphk30yRmdKZ0+goITyylciqdAXmm8KFe4FKVLdrowYwTPYEWkTT8sEiN3xsz9KkJz yiw5czed8MOZT66BG0vbv/UxDlGITfWvc3qRd+JymP7LBvtBKKQtPM4p0LIImyHj1GHS XASTcV9JASBy9yW3Pr0k8CrNFa14vwagSTK900lDneP/92kLLHsnclxCGMoE02KDdkIf 8zLy6BA5tHlTPv3hIVJ4KWsCmZfeWw1LiSB98ERNRWIcGtkIKegX6I+1gdx6UrxQAW/e LtPRNoFkpv2hJeIVYY1ZRruFm/WdX4MsgoZTXhu6DKgdQQvmKTDRw8y6E+T52sqSteGZ KT5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZmVHQBvk; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e28-20020a63371c000000b00537d3adaa10si4128630pga.597.2023.06.04.07.24.02; Sun, 04 Jun 2023 07:24:15 -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=@kernel.org header.s=k20201202 header.b=ZmVHQBvk; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbjFDNKK (ORCPT + 99 others); Sun, 4 Jun 2023 09:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjFDNKI (ORCPT ); Sun, 4 Jun 2023 09:10:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 570C8B1; Sun, 4 Jun 2023 06:10:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E061660ED1; Sun, 4 Jun 2023 13:10:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC6C0C433EF; Sun, 4 Jun 2023 13:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685884206; bh=FJ8N66mXobzCN/iyqAQMQ1QLeAmhvde00YQo6poIE9M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZmVHQBvkr16+tfiA4KCdueEm9uc15luGf6lO1V3GBy63BvXqz/5q09ux+Aerkzb2L lnuBGSbz5574wXuDDVjx4Uq9O86aFghTwp8E9rNIL1gcQ4ixKaMQTl9ckokInmHwrx 19f7C8NyAFC4gAlrQev23fvTYtSuW19Y4N3axg3p479fOlBiQ1b+FnSSEOiWuwxBhm CInqOsgM08EIow3UsyWKUXurmcL1XwMe0Q4HD3hc5z5euSzWlymf5OfkbahiKvtYYm mQVGnWVHgq6uU52NkbksYzcIAkvhMJ8QnT7096LRAIUGLEaMH+S1FgwT7IM8SxykiS IBy7pS+AP79hw== Date: Sun, 4 Jun 2023 14:10:02 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: Astrid Rost , Astrid Rost , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com, Uwe =?UTF-8?B?S2xlaW5lLUs=?= =?UTF-8?B?w7ZuaWc=?= , Mathieu Othacehe Subject: Re: [PATCH v4 4/7] iio: light: vcnl4000: add illuminance irq vcnl4040/4200 Message-ID: <20230604141002.0b055c10@jic23-huawei> In-Reply-To: References: <20230522142621.1680563-1-astrid.rost@axis.com> <20230522142621.1680563-5-astrid.rost@axis.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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, 29 May 2023 12:02:16 +0300 Andy Shevchenko wrote: > On Mon, May 29, 2023 at 10:41=E2=80=AFAM Astrid Rost w= rote: > > Thanks for reviewing. > > I can change this. But this is how it gets formatted by .clang-format. = =20 >=20 > I would suggest to report the bug (in case it's not configurable) or > configure to avoid such a misindentation. I assume it's trading off line length against aligning with opening bracket= s. Maybe made the wrong decision, but it is not totally unreasonable to my eye= s. I don't care either way though, so go with whatever you have for next versi= on! Jonathan >=20 > > On 5/29/23 00:45, andy.shevchenko@gmail.com wrote: =20 > > > Mon, May 22, 2023 at 04:26:18PM +0200, Astrid Rost kirjoitti: =20 > > >> Add support to configure ambient light sensor interrupts and thresho= ld > > >> limits for vcnl4040 and vcnl4200. If an interrupt is detected an eve= nt > > >> will be pushed to the event interface. =20 > > > > > > ... > > > =20 > > >> + case IIO_EV_DIR_RISING: > > >> + ret =3D i2c_smbus_write_word_data( > > >> + data->client, VCNL4040_ALS_THDH_LM, val= ); =20 > > > > > > Strange indentation. > > > =20 > > >> + break; > > >> + case IIO_EV_DIR_FALLING: > > >> + ret =3D i2c_smbus_write_word_data( > > >> + data->client, VCNL4040_ALS_THDL_LM, val= ); =20 > > > > > > Same. > > > =20 > > >> + break; =20 > > > > > > ... > > > =20 > > >> + case IIO_PROXIMITY: > > >> + switch (dir) { > > >> + case IIO_EV_DIR_RISING: > > >> + ret =3D i2c_smbus_write_word_data( > > >> + data->client, VCNL4040_PS_THDH_LM, val)= ; =20 > > > > > > Same. > > > =20 > > >> + break; > > >> + case IIO_EV_DIR_FALLING: > > >> + ret =3D i2c_smbus_write_word_data( > > >> + data->client, VCNL4040_PS_THDL_LM, val)= ; =20 > > > > > > Same. =20 >=20