From patchwork Wed Apr 12 12:28:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13209121 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 535ADC77B6E for ; Wed, 12 Apr 2023 12:28:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbjDLM2o (ORCPT ); Wed, 12 Apr 2023 08:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbjDLM2V (ORCPT ); Wed, 12 Apr 2023 08:28:21 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EFFC7DA4; Wed, 12 Apr 2023 05:28:15 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id z26so14352055lfj.11; Wed, 12 Apr 2023 05:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681302493; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=al7GXfMDGfT+oOFD5mcLnTwf/FCNkfbn6/XvAyYGbNM=; b=F68RVGygYIxaiSFdCw685GZFm1tpH6RU9psgboEvf8dKwKjcoPQ0IO+OMjz9jk7Fkr 7SBHD3BKv5rEXKvagymp+uIoXhjJrWFmBQOf1uvKRs51ThlSNqYu0bc9DzAjRqLadtrg 6mjBFNYV2h+j6bDNV0EWPFqcC9vWBc6U2VjFSPXuY5+cm44TIKb+izuPX9aTHBCWkTs/ JOkQ7KRdlpwwH7yrdyDCzZY22Y33JSjhmwgaVbuRqmt3qNvwQjpks8BzOC047W/Qfq/T YSjTF3ITK+IeSlSnV8eeV7PytpxBNzfpZyuzBFVwN6phCxJmre9Q+FWcQ0r0QKzzsoxJ IOXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681302493; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=al7GXfMDGfT+oOFD5mcLnTwf/FCNkfbn6/XvAyYGbNM=; b=3D7cDRVTDe/pahytxFoQ+m+JrGTpvtadrp9ECQwk/KfUHMPeaOkR7Y4RB7IHTNvMRv j/V4Ftp64LAmQDBJ+Y06DlpP/aSQdF4JUlsrQIeQxni4XwJ2N/73g96Rv9CFyGqg9tX3 W9tYPbE/ezGHer6eh+IeMyMPQfPhByyIyE8zo1Im2XAUUPPx9gR9L+lZWtXTYOqXcum2 N4/G7/7VbzWuf7YXWh8OMq6OKPCTF0PZpimsJc7wbGC9dxB2rwDk7YjPxZC7uw3jlSB5 FIkBoJpS1fxFAMzoHwoNhmhdO0rjZcOh2eSxAyUvb/USXnXiUHQbj6cWeDSUel2qFeNi zgaQ== X-Gm-Message-State: AAQBX9ettLyiEoatLq8nIv3RI+rgT6vKYnq4BgWtB5QDefN6f7Dywan/ 65DaJJL6B3aL+mu6CPJJYiGgZFGGa80= X-Google-Smtp-Source: AKy350bbARqUjS6vcur1SvBsBCp0y5P6v7JHPM1dFVoX0IJcLowld7JWyBlk937m8RZ9B3gz7aNQ6g== X-Received: by 2002:ac2:518f:0:b0:4e9:bdd0:b667 with SMTP id u15-20020ac2518f000000b004e9bdd0b667mr1589508lfi.0.1681302493642; Wed, 12 Apr 2023 05:28:13 -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 t13-20020ac24c0d000000b004e95a1aca1bsm2989037lfq.87.2023.04.12.05.28.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 05:28:12 -0700 (PDT) Date: Wed, 12 Apr 2023 15:28:03 +0300 From: Matti Vaittinen To: Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Matti Vaittinen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] iio: gts: fix units of available integration times Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The available integration times should be in the units of seconds, not micro seconds. Use the new IIO_VAL_INT_MICRO to return times in seconds Signed-off-by: Matti Vaittinen --- drivers/iio/industrialio-gts-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/industrialio-gts-helper.c b/drivers/iio/industrialio-gts-helper.c index 8bb68975b259..e242d0eb8b94 100644 --- a/drivers/iio/industrialio-gts-helper.c +++ b/drivers/iio/industrialio-gts-helper.c @@ -683,7 +683,7 @@ int iio_gts_avail_times(struct iio_gts *gts, const int **vals, int *type, return -EINVAL; *vals = gts->avail_time_tables; - *type = IIO_VAL_INT; + *type = IIO_VAL_INT_MICRO; *length = gts->num_avail_time_tables; return IIO_AVAIL_LIST;