From patchwork Mon Apr 17 09:19:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13213499 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5F7FC77B72 for ; Mon, 17 Apr 2023 09:19:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230253AbjDQJTw (ORCPT ); Mon, 17 Apr 2023 05:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbjDQJTv (ORCPT ); Mon, 17 Apr 2023 05:19:51 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185C52693; Mon, 17 Apr 2023 02:19:47 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id r9so11962634ljp.9; Mon, 17 Apr 2023 02:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681723185; x=1684315185; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=Sc/RME3YneSvfHCVKi+3IAxNdaylfKyI3uCcyw7Varo=; b=bvNQfsh6ZKGOIG4c9PfuIRVN80qkxw12yGa/TyLCpsO49qCwKPHuRDtvksA/Z7u9BA IniN+d9ST6/IrWg4d3ePnG24bUihwXhxqeXrci0y6k3HeQ4mnjI2Fr4e8/t2XuDmyrGM tAENR/oWEONfTm8I0zIvlLofZUQrI7HosphYk+Ig7KC2yCXyBduj6QIoPSt25TYmVubT ZBS1MzdIeiuMQwqck7ufY/GQn/7lUpQdppS/FjZ906D3zCPZyui4oTwDJYEBvA3IyP7w YxAZ6+ooh3lG5Ns6m3BhfISVVejSL7r2ujfIF2bZ4PpSLHhPmzyfXLkTumeaC7nuEFWq 5MWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681723185; x=1684315185; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Sc/RME3YneSvfHCVKi+3IAxNdaylfKyI3uCcyw7Varo=; b=O1dN8lv0Flrn7axpIdgEFStVFPoQ2STlBS30UIEcLQLmOkpNNtV1YoD7KwBWd4WgAN IWlhmfnBLHldqCuKYuwxjWcl/PZ2s7RvaMj0ti/5LStAK5tLipjmycfrpOSMJIfGNaK2 6WO/tJETCweqO+h9mFh4VdGpk05wE+ghrODCVxRrnMGe0VaMvleKZrZIhvZpR9zsWtiz Wvi8pnyD3OZOIuoSjpz7ynqCfpXRjukQHTlAiSInEwd0QX42gjUdA0M34Yuwd0r7pPOQ qHNMMa972pDpSIO/JpQJ3kb+XICMPklwzFAbT66OdGKKd2jahYYTUpARvzXR1Ybwamdz oSyQ== X-Gm-Message-State: AAQBX9eIevgy2Ebky3aehZCGLofc0Rj9xdzi9yPZkoiY5TCUAvrTf6u6 gZWTSTj2IEHOhDbgoazHfA0= X-Google-Smtp-Source: AKy350aCU/tBhUvMn/DR9Lk96MJkV6YXRAQF6pXoDVRBi76Vg73/CVVrwjlJwvM300/SMQpT/KVvrw== X-Received: by 2002:a2e:9896:0:b0:2a8:c0f6:31d2 with SMTP id b22-20020a2e9896000000b002a8c0f631d2mr1016654ljj.19.1681723185148; Mon, 17 Apr 2023 02:19:45 -0700 (PDT) Received: from dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi (dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::1]) by smtp.gmail.com with ESMTPSA id s3-20020a2e83c3000000b002958a51df76sm2150473ljh.92.2023.04.17.02.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 02:19:44 -0700 (PDT) Date: Mon, 17 Apr 2023 12:19:35 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Matti Vaittinen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] iio: Fix integration time unit Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The recently introduced BU27034 used micro-seconds as units for integration time. So did the GTS-helpers. The IIO ABI mandates using seconds. This series fixes integration times for the BU27034 ALS driver and the GTS-helpers. --- Matti Vaittinen (2): iio: bu27034: Fix integration time iio: gts-helpers: fix integration time units drivers/iio/industrialio-gts-helper.c | 43 ++++++++++++++++++++------- drivers/iio/light/rohm-bu27034.c | 14 +++++---- 2 files changed, 42 insertions(+), 15 deletions(-) base-commit: c86b0e73f0bebbb0245ef2bac4cf269d61ff828c