Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4393731rwd; Sun, 4 Jun 2023 04:36:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4tC/oxhxMg5a6tsuhi1gHJ/hKX8Cu12fbHAh9cFEMSeA0ITAXuCqDa8e3zSe/6kB0ZEeju X-Received: by 2002:a05:6a20:5495:b0:10d:951f:58bd with SMTP id i21-20020a056a20549500b0010d951f58bdmr3807891pzk.19.1685878611426; Sun, 04 Jun 2023 04:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685878611; cv=none; d=google.com; s=arc-20160816; b=Eyt3MUrIdseDW1qhV73zlpkIe8yj99AfmPeGFpoDS4qc8DTk388sQtFlfpAYa5PoKm vEcZ02e84Cuve/bZHHwt+maAJJdjy2wQIKKanR2V9p7WajPFb1APntl1XL6ZMJ8Pt89X Zg+zVB2VgGuQy+kUMvQ5GFEEu0mxo0Zm/QEF8Z1UdrXGoanDM+HtiOJLASdLtdAcH5rZ lVV37rA53ORkEZAlEzen6YpedrOMYEhISNpfFMI33eOvWQdZ2Y4YAjW7cwq8m0sCQpsn qm81ai2rmyxhP0A7pdv7siGpfGbeQBOdBCAL3hAoHSwCg3Ng3Z8zcoAoPa6lr1wuH13X fydA== 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=dXUUL73UD/VcEQP5Y+z2NsypgN7ZOklADNmj0bNFk1Q=; b=Dz9tWlsvZUOVOPaa60bau1Zu8rYLNQu/84UVne2fd1Q6YR4TMlNEjSlP4O7oKyJNs/ vwMjzuc8FstdRaVUZeybqKVhvu3PYulEZWMHumtBXHEeNyIHR976UeqW/0W0eTQpNHf1 VALXjmgWoEKmgsuraCQm8a9YXCNd/ORBNrnTbtLfSwHSUXtZH48Ll3nbf/hXeI6SPb/L kT8kFXHKasbjSvb79bsw05h6eDWaDOGLG0dnVLbkj7ZoTjXDY/vtsWBmClwELLyYZar3 u1oRr2ZNpRe8UtiJJX2XUXLHks6pKKL5usAV2pRmWzkABSKlpWTbcd93ed+1tyHFW6HC N6WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TMbGHRuo; 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 o27-20020a63921b000000b00542636ab195si4137057pgd.745.2023.06.04.04.36.39; Sun, 04 Jun 2023 04:36:51 -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=TMbGHRuo; 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 S229926AbjFDLQQ (ORCPT + 99 others); Sun, 4 Jun 2023 07:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjFDLQO (ORCPT ); Sun, 4 Jun 2023 07:16:14 -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 2C14CD2; Sun, 4 Jun 2023 04:16:13 -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 B152260ADE; Sun, 4 Jun 2023 11:16:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67308C433D2; Sun, 4 Jun 2023 11:16:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685877372; bh=gs9u365I+VHx1wbSO0kBBTyhE49vBMSK2th0tcnQ0aU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TMbGHRuowncq6U+WymTpdbZ7WwMtCMvVIDuCd2vw72vD1d6+1JsDzv+5UKMea2ltx MVmTUSwBC5vpnplCgDmN3A2ptUp3g1IKlXqUrtw1amwkCPzTPCIfiXg+B9/9rlqwGv pAWHC/piwraQndKQgpXlE60YUEWaY8J5NIZ/66iAKgIQm8QHXp+x9wtgxSCRt1/9hs HEu+d0KdoaxDArKQjtJ470UiWmyDki/yFBtVV9lS6RTm858bIsb/eT1YeW97bXltEL +xHutITSHbd7yuPb3EfGAhn2iSXfmLViLfVhHu5Ho4jOj87jlQ6SaQOoJk5sO9ZwG3 qlqiqpMgJB5qw== Date: Sun, 4 Jun 2023 12:16:07 +0100 From: Jonathan Cameron To: andy.shevchenko@gmail.com Cc: Astrid Rost , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com, Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Mathieu Othacehe Subject: Re: [PATCH v5 4/7] iio: light: vcnl4000: add illuminance irq vcnl4040/4200 Message-ID: <20230604121607.1f633e61@jic23-huawei> In-Reply-To: References: <20230530142405.1679146-1-astrid.rost@axis.com> <20230530142405.1679146-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=US-ASCII Content-Transfer-Encoding: 7bit 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 > ... > > > - val = state ? (ret | mask) : (ret & ~mask); > > + val = state ? (ret | mask) : (ret & ~mask); > > I'm wondering if you can prepere the code by introducing switch-case instead of > current implementation in the preparatory patch and then do what you want to do > here. It will show much better the change and make review easier. > Agreed. Diff wasn't being particularly helpful in how it handled the changes here so helping it along with a precursor patch would be good. Jonathan