Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp984667pxb; Fri, 15 Apr 2022 17:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx00XjZvqVIzoC8yaoIcR86zQR4lFKkVQ+pfR2RhQnkiXGeWsgV61+BWWrXMm1wVQF3mcdk X-Received: by 2002:a17:902:f64f:b0:156:f1cc:b284 with SMTP id m15-20020a170902f64f00b00156f1ccb284mr1436753plg.147.1650068725215; Fri, 15 Apr 2022 17:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650068725; cv=none; d=google.com; s=arc-20160816; b=iLAtmVQfVFhyOtGlSWlbg3qYG3mtgJif/au7Urr6WX5mK5aADnISr11hVpx2/ErVCB VvboXZbDYZtJpamLlC6KPzleUiYoVIhiJIM/q3Pr8zHxv5HglwEN7zgJ9OmTmdDUUWTY F8KHLKMQsh3W061KjPT1z0sy9SOpqZc+2OlB5qPLEqJCvLEDG9k96N3qHG1SjL0y4+8o vK4hldwIbBn/XGuqAkPJVhUb3ZE+MOhKdwKyyzxCrTF4FbkI3uvNBWqJflWo4rfegclW IguwGdJK8o3/xMJZxwtPWSC9UlpFwRmsd0d1zLCHD9bj2o0vSmykThoSoqN46k6feRDq wDeQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=HVRm8XF1DD63KFldcxVSoFi1npN84CFHBhAhcOYMO+c=; b=XbHyCWSvNdreD/BTuA3KuKe87e45PwEAaq7UDWrq/33uRq6GnzPUte5zuBlPL7F3vh iQi33DINveJA+ftsUd9HbDl6+LPJlYnj+QP5hM6yDZHgoQU9Y9kIoMyneHLQEU9diWWI Uz37z8x7NJHRgqVQrjgxRHHEq9cKErxNQz+CJMIwdgW7VNWgI8dzlVUa+a2J3ClQ+1gZ 7A5j91sIed/vQpnmEnjTOYEtP1RHC+rpuuEtCSs6m5K144NdUyhVUi0V5e7aaQrIJ2nB bxDUw4ZdyKf4zC24crs3MNwE5GMV0pqnMJdgyZKECYiXCYJWuAGzlnqupNpBPrG4UQjs tPqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=R2iZCUxG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cp18-20020a170902e79200b00153b2d165a7si1528425plb.431.2022.04.15.17.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:25:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=R2iZCUxG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B4989E38B8; Fri, 15 Apr 2022 17:23:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351608AbiDOIxE (ORCPT + 99 others); Fri, 15 Apr 2022 04:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351534AbiDOIxB (ORCPT ); Fri, 15 Apr 2022 04:53:01 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3886B8236; Fri, 15 Apr 2022 01:50:33 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aferraris) with ESMTPSA id 6CF7B1F4024A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1650012631; bh=97YXroeyDkQDT1z2Pkh9zbKqmO8YB3LrWCRnc+QZ/pM=; h=From:To:Cc:Subject:Date:From; b=R2iZCUxGUtu51GfEP0us/6f4qXcMLzQUz4z5gsV+kZcoCX6/2/MGpifOLm+uACjDc iIFgc3f2RBhEAbES2LCrGBnvZ//5oGNxGm43lQgQq4RMUkdRoscVKdcJ+A98raArmf nFoHcIIpWCYW8S4mzAVaJuribMeSFM26QCk33nhlQtnkCwdUVIRj0+pDW5PLtB1oGT PmQLHI2AWzUNEiPKkyTJ5luYBJXBgoEA3G2/IHZI9dY7lZ7/3Jnupyohr/T+I+jKcz wqfiynzKAea2LTqmj1H9DJ50JlCJigOmF/w+7MKgXrH/z9DXyKsX4Ga3/F+VNkySLL RFO9WmNBN2S8g== From: Arnaud Ferraris To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH 0/2] iio: stk3310: Export near level property for proximity sensor Date: Fri, 15 Apr 2022 10:50:16 +0200 Message-Id: <20220415085018.35063-1-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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 Userspace tools like iio-sensor-proxy need to be instructed the value from which they should consider an object is "near". This threshold can be exported through the sysfs ABI based on the "proximity-near-level" device-tree property. This patchset implements this property for the stk3310 driver and adds the necessary bits to export its value to userspace. It is based on similar changes applied to the vcnl4000 and ltr501 drivers. Arnaud Ferraris (2): dt-bindings: iio: light: stk33xx: Add proximity-near-level iio: stk3310: Export near level property for proximity sensor .../bindings/iio/light/stk33xx.yaml | 6 +++++ drivers/iio/light/stk3310.c | 26 +++++++++++++++++++ 2 files changed, 32 insertions(+) -- 2.35.1