Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2277489rwd; Sun, 28 May 2023 11:57:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Co9Gw/11BwBeN4xmj6ULtblzdjKy/nYobH9mgG50pVKDlb/z3Tiujr8PbTCBKXirdtJRc X-Received: by 2002:a05:6a20:7d87:b0:104:873:c3be with SMTP id v7-20020a056a207d8700b001040873c3bemr6837848pzj.12.1685300236549; Sun, 28 May 2023 11:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685300236; cv=none; d=google.com; s=arc-20160816; b=VucBw3NO49UDJf9lSmE8AkiPhG3Oao7adGRzOvuKDtpw7TB8t77f7I4VyP3PFmgt31 T0BRb6jYjS4ZtmvyyMPEtHCHDmpc+rILg+0FkessbcKewP7ODRHPrJGuOWdDzgPQHz7t oXoJgyedG6Sr2pZL0wk9EbCHJc3ugiTugiKUw2BsqO8gCkMbSGrNOesU0hNEsQTeA04v d59jPmoSAu9NDPs4deln8Tvm8e2KsaUBYBC8GQp1au8A3ykB32UxjzgXIrMFHGraA5n2 wCkKgBuk2h81ChXrrd9I/pP9UfWSSajIZ3rljJuMsjlxd2fdebAR56/Dhtxf6tDDO4gs IStg== 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=H96TlylbwLd2Paxx4dm60pQhfombqJs//HB629BGmrg=; b=f9rCb5dyB5JU8TVQzE2R3FTwXK0nYaedVDhvJ3DVc1AZpxh1KP060iPrGqhtEzYAjI Axg3694DxLRZd4fCDblWQ22/AHw2cnJ5ZAbhXwPGMBlYXCDP1B0yQD4cmP7ckrL3N6fV W0r1pnnlpqmvTUleqeZ//jyGg3eb5orEMPPVPolCcK+lDd4ETqGUHrtdHYJZlp0/IfzJ Vv3DydZtnAGh4/qGCK5dPUop8RBQafU5WvfRwEKaDggPiA5/TSKNgybplc2nF4ilVfDK XTZ4WTC5+s37iznzjaD0ff+/y+xl1C/OWypCPcE5VE+voAgehynBXb5l1BLJXTvmlBVL w41A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P1Lzc5KK; 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 x5-20020a626305000000b0064d2ddc63ebsi8459844pfb.306.2023.05.28.11.57.01; Sun, 28 May 2023 11:57:16 -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=P1Lzc5KK; 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 S229600AbjE1Sr0 (ORCPT + 99 others); Sun, 28 May 2023 14:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjE1SrZ (ORCPT ); Sun, 28 May 2023 14:47:25 -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 4A25FC4; Sun, 28 May 2023 11:47:24 -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 CD54E6133B; Sun, 28 May 2023 18:47:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B94A6C433D2; Sun, 28 May 2023 18:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685299643; bh=Cv2t53KSYI7vZBM7q0XFrlPcpwsLI3EyWAaUegWhtMA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=P1Lzc5KKQNEEaWuYXClbGPbLBR9C6RDNP/bTfodTgSWbKlD44Yzx9Ks1BpokfG3Be CZ1BkYn+vlEaqGdu9Ei4l5qV2zQVzzDuRkImoc5CznY+cJpUGprZhzzpzTZXFM2EXc uqKkWbYrrQmlPoSnlzhDsyFibvofElQmXRvUjN33yTGS1UTSiCCXzQKtKuz3jWSjz3 sb78CnKzSw5ooQlA8mxDUvXTO2LlxXXlarU5lPt8ja/AvMd2rWYCh+YaO7U5GU+9Ki Oc8XszgSAcMAzc7+zX+GvUG7eETuw14Qb04BkIXC4oL9FVWpBkIQCb5iNWZZ8aDzOR VLdEfPDh83Q5Q== Date: Sun, 28 May 2023 20:03:42 +0100 From: Jonathan Cameron To: Astrid Rost Cc: Lars-Peter Clausen , , , , Uwe =?UTF-8?B?S2xlaW5l?= =?UTF-8?B?LUvDtm5pZw==?= , Mathieu Othacehe Subject: Re: [PATCH v4 6/7] iio: light: vcnl4000: Add oversampling_ratio for 4040/4200 Message-ID: <20230528200342.21982605@jic23-huawei> In-Reply-To: <20230522142621.1680563-7-astrid.rost@axis.com> References: <20230522142621.1680563-1-astrid.rost@axis.com> <20230522142621.1680563-7-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.6 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, 22 May 2023 16:26:20 +0200 Astrid Rost wrote: > Add the proximity multi pulse (PS_MPS) as oversampling_ratio. > Instead of one single pulse per every defined time frame, > one can program 2, 4, or even 8 pulses. This leads to a > longer IRED on-time for each proximity measurement value, which > also results in a higher detection range. > > Add read/write attribute for proximity oversampling-ratio and read > attribute for available oversampling-ratio. > This is supported for vcnl4040 and vcnl4200. > > Signed-off-by: Astrid Rost I applied the series and did a build test which showed me... > @@ -1648,6 +1729,9 @@ static const struct iio_chan_spec vcnl4040_channels[] = { > .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | > BIT(IIO_CHAN_INFO_INT_TIME), > .info_mask_separate_available = BIT(IIO_CHAN_INFO_INT_TIME), > + BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO), > + .info_mask_separate_available = BIT(IIO_CHAN_INFO_INT_TIME) | > + BIT(IIO_CHAN_INFO_OVERSAMPLING_RATIO), Guessing a rebase went wrong? I thought about just fixing this up by dropping the duplication, but given I'm not 100% sure nothing else was affected, I'll leave it to you to fix up and check for any other related issues for a v5. Jonathan > .ext_info = vcnl4000_ext_info, > .event_spec = vcnl4040_event_spec, > .num_event_specs = ARRAY_SIZE(vcnl4040_event_spec),