From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAB24C3524D for ; Mon, 3 Feb 2020 09:17:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BBD4D2082E for ; Mon, 3 Feb 2020 09:17:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbgBCJRK (ORCPT ); Mon, 3 Feb 2020 04:17:10 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:46366 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727864AbgBCJRJ (ORCPT ); Mon, 3 Feb 2020 04:17:09 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 93447FB03; Mon, 3 Feb 2020 10:17:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mVpf3Sr-6tqT; Mon, 3 Feb 2020 10:17:05 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id CD9F0400E5; Mon, 3 Feb 2020 10:17:02 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Tomas Novotny , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "Angus Ainslie (Purism)" , =?UTF-8?q?Guido=20G=C3=BCnther?= , Marco Felsch , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] iio: vncl4000: Enable runtime pm for vcnl4200/4040 Date: Mon, 3 Feb 2020 10:17:00 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org This is modelled after the vcnl4035 driver. For the vcnl40{0,1,2}0 we don't do anything since they use on demand measurement. Changes from v2 --------------- - Based on review feedback from Jonathan Cameron https://lore.kernel.org/linux-iio/cover.1580391472.git.agx@sigxcpu.org/T/#m80668f77cb45cea3973b3609ebdce5bba351ed50 - Fix missing return statement - Only update timestamp on power on - simplify returns from vcnl4200_runtime_suspend - simplify return from vcnl4000_init Changes from v1 --------------- - Based on review feedback from Tomas Novotny https://lore.kernel.org/linux-iio/20200120182853.37a724fa@tomas.local.tbs-biometrics.cz/ Drop long wait in vcnl4000_runtime_resume but rather use vcnl4200_{al,ps}.last_measurement to make sure we wait long enough. Guido Günther (2): iio: vcnl4000: Use a single return when getting IIO_CHAN_INFO_RAW iio: vncl4000: Enable runtime pm for vcnl4200/4040 drivers/iio/light/vcnl4000.c | 144 ++++++++++++++++++++++++++++++----- 1 file changed, 125 insertions(+), 19 deletions(-) -- 2.23.0