Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp876608rdd; Wed, 10 Jan 2024 02:07:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjQ3q6v5IGKjjJIUSXqYrImKpj6Ry1yqyyB3cnYLkijUZIyrfG3gfgsWNHiGV8rP8HgnT6 X-Received: by 2002:a50:d549:0:b0:557:13ad:bc8f with SMTP id f9-20020a50d549000000b0055713adbc8fmr329007edj.28.1704881260561; Wed, 10 Jan 2024 02:07:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704881260; cv=none; d=google.com; s=arc-20160816; b=gUapMIMjMTiR87Wka5ccRMR9KEYJ/trJFzwKwA8BNQCMRGgkOG+WIyEWXIzuUiCnDn /30YW5WKpY10E2ziM69L58+Epl7BDyeBZ/bLzSBYDFDXBb4WPnJn+x4WAiHFzKD2RZ3e cPXtQY6kFZaxAlkF0gn88TJWBhT8bn3RWHPcNN2HEJC+aGUjntKMqVXoM4pW5gmJT126 xLAI0Cp3AgYvUM/Zpqwd3HjmwcUdcYkrTGE9mqHwYOAwtMwjzZ3IHEcqcrE9dFh1LIVY jv/aZeZTB2Ry6v2okZlCWR23rjRkkYLi/cdlPKMe8MAZLePu2P+sqjj6gNIO7i5OAAlK w5ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=SR6M2098v0XZKYvDuASrOI/XGr4kL2jFyhf8PM2BbNw=; fh=EsD0e7Omra9j5GVSH6Hq+KkoUpU+pjkP3UXz1cLNAOA=; b=JlSX+nxfWdky8p8P51gnjwK5Hw7CiPM7IjnAGZv8pe9eN0pQL3b/aUPngpfX1GH48F t+ZLRS76xOrsU4ItbDtdr5WV2wXlRPOP3LuXiSidStju7RgnOJdhFx8J5mI8a++ulIuY vsISEHzPnpZtImoNC144iDseV3r0Tuo8lW380FEUFF9cLuti7pGHJv0V+xcGkmdGoOtb cIh6Nf3rz5yh+/+KqWwCkP0zK1XCz+W7iu9H0XizunNGX9TfPBYyswzkCXVO66G6YQfv kyqfT+7ogZ6MAM7zlz6ddHyKV7PClEd18KpdxutvhKsH9wwgLradZwblJBVq7WwSnH9L qnjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SwI3ofdf; spf=pass (google.com: domain of linux-kernel+bounces-21939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s21-20020a056402521500b00553afbd5672si1583586edd.448.2024.01.10.02.07.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 02:07:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SwI3ofdf; spf=pass (google.com: domain of linux-kernel+bounces-21939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 505D61F277E6 for ; Wed, 10 Jan 2024 10:07:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99FA83F8FE; Wed, 10 Jan 2024 10:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SwI3ofdf" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 437503F8D1; Wed, 10 Jan 2024 10:07:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-50e7abe4be4so5045576e87.2; Wed, 10 Jan 2024 02:07:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704881248; x=1705486048; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=SR6M2098v0XZKYvDuASrOI/XGr4kL2jFyhf8PM2BbNw=; b=SwI3ofdfwcJ/FDheRATOXy/Jn+zyxHrxdrevkHr9WGTaql9k9DUkbt+n+8Iq1I3XoQ F/4QTQFQKdawCQcVenL+TWTpdMj5610LlL0PW1Z1r9cQVWrPl1pwJBlV7J0quoZaIcaN Had7a4h5yLn+BcK/31ln1WZrzahLVQ0zYVMhtt/62ii97eY4P2vs1v0rKIt/XAluFjWV BnrLLh8VV5CsTw058eJ7I5BcUsGGfH4jAc6wh8eRoDxpcAlka9MT2woi+4UqUe8q9Rw8 JIxSlz+SDxcJlZCbjwc5O0MQs22JY1RtFIRVsoU1L/bt/OpKNmaCDH2QqaPw7eo7HLam GLjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704881248; x=1705486048; 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=SR6M2098v0XZKYvDuASrOI/XGr4kL2jFyhf8PM2BbNw=; b=BYNws01s+999Ce0sIoVbk9GsjP2pLGzV5qHaU+ChJpHwZ1rOyK/4S8o+avwimwyonS t0gfKcHyydJvitn2u/ixm3otqz4JkxWz3ZlB2Hhmm6mtgEBXwoep3EKKTvSiShT8x7iD MMp1ZzX2egvZSEO0QfZtxdXbOE6fOa9oo1CIauWgn91unI2WF7QQxK9dVmUzsEpqWch5 pIfkwRsD7che01FFTLPWQnx4CUOwgyXfvl8WK4h6J5BnJTTmNxnhFT4bzVwTf7yg3lPT lXyypFS8WpcpdFzgxwDpq5jDHAXdrEo/rq2Zt5RjyFF5RWTtFIVHTgvAwwIn9Yyxt1LV VczA== X-Gm-Message-State: AOJu0Yx9UYrDEQiTuvOWBesN5Gow/Et7O4jtXDc9k832dP2vI+efqBdy ecueY9mluJs2EMVGMeBkIysHMgiyuPA= X-Received: by 2002:a05:6512:3f16:b0:50e:51fa:1d3b with SMTP id y22-20020a0565123f1600b0050e51fa1d3bmr407331lfa.93.1704881247980; Wed, 10 Jan 2024 02:07:27 -0800 (PST) Received: from drtxq0yyyyyyyyyyyyybt-3.rev.dnainternet.fi (drtxq0yyyyyyyyyyyyybt-3.rev.dnainternet.fi. [2001:14ba:7426:df00::3]) by smtp.gmail.com with ESMTPSA id h41-20020a0565123ca900b0050e7fe37a29sm614232lfv.200.2024.01.10.02.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 02:07:26 -0800 (PST) Date: Wed, 10 Jan 2024 12:07:08 +0200 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Matti Vaittinen , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 0/3] KUnit tests for the IIO GTS helpers Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="doWc2m8A9KjyRIVC" Content-Disposition: inline --doWc2m8A9KjyRIVC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Add some KUnit tests for the IIO GTS helpers. These tests were originally part of the BU27034 ALS sensor driver series. https://lore.kernel.org/all/cover.1679915278.git.mazziesaccount@gmail.com/ Merging the tests was postponed because we lacked of a good generic way of creating tests devices for testing the devm managed interfaces. Now we have kunit_device APIs being merged (seems like they'll be part of the v6.8-rc1) so precondition for merging these tests are (being) met. The series is based on commit ab27740f7665 ("Merge tag 'linux_kselftest-next-6.8-rc1' of git://git= =2Ekernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest") in Linus' tree. I can rebase and resend when v6.8-rc1 is out if needed. Matti Vaittinen (3): iio: gts-helper: Fix division loop iio: test: test gain-time-scale helpers MAINTAINERS: add IIO GTS tests MAINTAINERS | 1 + drivers/iio/industrialio-gts-helper.c | 5 +- drivers/iio/test/Kconfig | 14 + drivers/iio/test/Makefile | 1 + drivers/iio/test/iio-test-gts.c | 517 ++++++++++++++++++++++++++ 5 files changed, 535 insertions(+), 3 deletions(-) create mode 100644 drivers/iio/test/iio-test-gts.c base-commit: ab27740f76654ed58dd32ac0ba0031c18a6dea3b --=20 2.43.0 --=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 --doWc2m8A9KjyRIVC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmWebEYACgkQeFA3/03a ocWIsggAvk3U6xNGSi3Nc9yQXaMjcgzBys/Wp55CWVnmB+lZrXkHzdXueRwVuvU9 wDo/vvT3xOCMe8wbgYgqa8lBvDgG5mtHyJPxmiDeshso8kF7jjyGcX8XEk+IQAzJ wGl53sAXKor43awwkmbm04YffbZPMtsXWVBGzBX1ePb3Qu///sGUu3z4zrl1rs48 o+OeXPxdPSNGuUmd/39LTCk8kFkxtZANuX0aGfTLDfArbrFZVcBkalTtdMF9AzcL e0myy76JEPKeBLlprM3mMJo7VCShR4fb923VVV1wOvgaU50+QFb3wk86OWiMHniE 2PiXqeSaK0AdPmbYVUHNQrizQT5yBw== =zMqG -----END PGP SIGNATURE----- --doWc2m8A9KjyRIVC--