Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp880868rwl; Wed, 12 Apr 2023 05:33:56 -0700 (PDT) X-Google-Smtp-Source: AKy350ajSe6TFwWnIMAyPtVoECTYsUMNdnOI/YPS+z9mhyaTg7mxlbLHGUe6neDdF8ZKLsVd3OCc X-Received: by 2002:a62:4e83:0:b0:5a8:8535:18b with SMTP id c125-20020a624e83000000b005a88535018bmr15014547pfb.11.1681302835814; Wed, 12 Apr 2023 05:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681302835; cv=none; d=google.com; s=arc-20160816; b=iI1JqaatM/f1Kl6LNnIYaDVgEQlHd/7XXaYTXHcLv7sXm178Y5OejdAxcIbXVnPYOr mbg6buN1G0JJQ6kA1SqBkpYBDqZs5QKE7UfL2Epdo/aCNz7j3Z2SH2BR0xCOn4cJzqYr wzX3BtRjvpFpuVidH3L0IVsOOtsXa6fKZuKqBmqqbAy8DZLfXtcFoHL6iCOcxHKf23dq REKBtknJSpJkNpdZ8D+K07ckAJgU59sN72KfURIi32tRwTCG6729SX25mRmkGriFJdqY ojfMEcRUZHUO7GnzmBniOMxqV7n8GWlcwYxp9YYXUJ4fROuOPrTTcsOhq2aK456hu5gr iwOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=al7GXfMDGfT+oOFD5mcLnTwf/FCNkfbn6/XvAyYGbNM=; b=GXF2WUeisnJZJ0xD1InyFcpYLFNdygUERwmztfXr9FjP+1UAL0I+06lT8erwm7bmmr Lk8V2iDvQlmqyH/O1aGOjirmpGQLRED2TTASMgZ1ovJKPLWPi29xyAVLijZ0eJ7QZFAB RZjFEzZ/QiNCHWjrigiEoJqti4ay3fwuXmRm/O4kP+3g8AMR71qF/AXno9m2L1zm5vPo PvoDCIO7+ewY5r7UN42sS+TQv9MPSWlE9zD1ZQEXCYgIGbY/r0mhM+nQtOXcvGhITwly 4jVVdq4SBtIJnNwEouVWPGjzz/4kEEx2U1dTesOrOq7dgv9fs2vV6WcVyWrN7lW0SjO0 1LFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=F68RVGyg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 133-20020a63018b000000b0050c0a48480bsi15425372pgb.798.2023.04.12.05.33.42; Wed, 12 Apr 2023 05:33:55 -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=@gmail.com header.s=20221208 header.b=F68RVGyg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230031AbjDLM2p (ORCPT + 99 others); Wed, 12 Apr 2023 08:28:45 -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-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-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZWASXVePNWuhGkMh" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 --ZWASXVePNWuhGkMh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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/industrial= io-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; =20 *vals =3D gts->avail_time_tables; - *type =3D IIO_VAL_INT; + *type =3D IIO_VAL_INT_MICRO; *length =3D gts->num_avail_time_tables; =20 return IIO_AVAIL_LIST; --=20 2.39.2 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --ZWASXVePNWuhGkMh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmQ2o9MACgkQeFA3/03a ocWEoAgAkSUkTLzGWRZcVAhfLjRG1T64OTC0/2/IolGxW+Bh3lV3SHkE3grA5k88 aGW7OXtqFk3KHsM8/JDsHtKNuQfxTUJhQsj7UVyaGJDSdsmm4fzHVj65VJQCfdpG X3/bLYxrAkA1Q2Y88R6mwOBJ31TrawwTaTd8nMfI2zIBo6vMMJLC7SK1zZN3DvJB /Uyw/fmA4BG5ArnfPSqN0HR65Y6HdjpuJ7rjQLPwMV5k6dgn3+YPAAHtcphnPbRa 86Du5PMpb4a5OkzMNoxREEB+brtZXHd7SbBsRhMCi0nee9k82aFjRRzJjC2jdtxl byTMTbatFM6OAwNufk2ewZ1fZdWllg== =R/zn -----END PGP SIGNATURE----- --ZWASXVePNWuhGkMh--