Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2537791rwd; Sun, 28 May 2023 18:27:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7tlevTu8REPoBz9aj9ALqaIJixc0exEIwxWCXiyVQ1+PoxcdzdaJSBvyK+9Jr8dIR0TJcm X-Received: by 2002:a17:903:185:b0:1b0:256:b95e with SMTP id z5-20020a170903018500b001b00256b95emr10421191plg.45.1685323650381; Sun, 28 May 2023 18:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685323650; cv=none; d=google.com; s=arc-20160816; b=NgNYV2XUReAf/oHqthp8FxH3sOr+IDGmqvZh/20QbJRQfoI8AhI6liwUMqaOCZEXQo Oo/wV+rNJbV59ymk/p4iwjqAjW2w83iiDJCj1XwM67aQiJ+WtHW1gFz2PdKmkIg64OfU X9HDjr+Tj/Q8xjD/twAGXoW4jRm0/Pz7XVDlJVnN5PXIRM9FIa/SiaSBXGONctztgFR3 jVDEJUeMzS8SqH64MYAD0mGgFout5tB8xNsm425eD12rMRZB5jq8uEpmvNmDx03YsG1S QR5Q0PXdvP22evJ0gxc6RpR4ITrgp5Z9VnbCs3J9cPAzN3dDWhcG/C5WT6X8pu6rHisr eaYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=rKCwwKNq44llAgtS306eA0FSNErxzOZs+dc0vcsNwPs=; b=j8H+AzSd/m2jCTCz8TZyCIawwsNThCf8cG6CLCOjCUFktrwPE2OCittk67iQj8fkoj Mw/uKQNcLZI6zEAJV8BtZWgf9LPLXfLiVeMFDHLidkmXEUVS4oM6rQcIQMi9tySe22vs upjU6BHemHePHEB5aHTqw7BJnoddpJWYTYq5s+Bqc52Sjm0PRIBiOO0w/s9DJbT0HccP xPYQbO+mqzjGIbKutvlUdQHC3w7X4rE79MhSW6Pj45YA7+ZTQTZT1GWIIhKsUrVzJ3sT NM4D6BrffgTxeWZ27ocnFGCbe2MY95OKkyhnfZ6XIwmP9bn0gnwFMohiRgDd/WbRMRn+ /XvA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 e9-20020a17090301c900b001b04903dd73si224388plh.120.2023.05.28.18.27.16; Sun, 28 May 2023 18:27:30 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229523AbjE1Wpp (ORCPT + 99 others); Sun, 28 May 2023 18:45:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjE1Wpo (ORCPT ); Sun, 28 May 2023 18:45:44 -0400 Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58882B9 for ; Sun, 28 May 2023 15:45:43 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id 5f153cd5-fda9-11ed-abf4-005056bdd08f; Mon, 29 May 2023 01:45:40 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Mon, 29 May 2023 01:45:40 +0300 To: Astrid Rost Cc: Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Mathieu Othacehe Subject: Re: [PATCH v4 4/7] iio: light: vcnl4000: add illuminance irq vcnl4040/4200 Message-ID: References: <20230522142621.1680563-1-astrid.rost@axis.com> <20230522142621.1680563-5-astrid.rost@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230522142621.1680563-5-astrid.rost@axis.com> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 22, 2023 at 04:26:18PM +0200, Astrid Rost kirjoitti: > Add support to configure ambient light sensor interrupts and threshold > limits for vcnl4040 and vcnl4200. If an interrupt is detected an event > will be pushed to the event interface. ... > + case IIO_EV_DIR_RISING: > + ret = i2c_smbus_write_word_data( > + data->client, VCNL4040_ALS_THDH_LM, val); Strange indentation. > + break; > + case IIO_EV_DIR_FALLING: > + ret = i2c_smbus_write_word_data( > + data->client, VCNL4040_ALS_THDL_LM, val); Same. > + break; ... > + case IIO_PROXIMITY: > + switch (dir) { > + case IIO_EV_DIR_RISING: > + ret = i2c_smbus_write_word_data( > + data->client, VCNL4040_PS_THDH_LM, val); Same. > + break; > + case IIO_EV_DIR_FALLING: > + ret = i2c_smbus_write_word_data( > + data->client, VCNL4040_PS_THDL_LM, val); Same. > + break; -- With Best Regards, Andy Shevchenko