Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp587769lqp; Thu, 21 Mar 2024 09:33:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdK1Wo9FWBtyLgI5CdwDVFNG+Tdm7TwDuY//3pTpe2y7676Gg2+a2HWFuLxH8M6k8bgbx3cQO1eIuo2RmZNpdL6ROHwLdgHlsB3RfGAw== X-Google-Smtp-Source: AGHT+IFKlIFnSnxFqdpRBZlWwF630R49fnlSBFSz3xLcgAxcVecYPpeIIsHYcXzDuKnQTCg4x93D X-Received: by 2002:a17:906:35c4:b0:a46:aa0d:a2e0 with SMTP id p4-20020a17090635c400b00a46aa0da2e0mr3697428ejb.3.1711038787048; Thu, 21 Mar 2024 09:33:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711038787; cv=pass; d=google.com; s=arc-20160816; b=Wd5rzYQqG62I8srSeVxOtgfybuMWzA5afGiguHZlUsem97k7IeFtkyCVpe70Yq+sjT 3c0JvXnDLdgBotEFKjoaSQ/mjx4m4C8Wll9IXd/Bkp6rZS0m1YSEES1sKkt8XvFEX3EL RJ3ROuhUU3g97+IBsqS+LmINRmiD0F2njqGwD9g8OZSeyn3I590enXA2CG41ldXWxn2S XltpFHHlDItlHe0jouy6YH3bWmLPZrUNb+1tLbQS10b9FHs+ZyIadWLnWj7JfYFWXGyO kTn14Kqa42qJTAV8EHPHY+lH3osEFt9ryvNDHe0/tnQFb5BZf1WC4LhzXp3D7/g717P0 3qSQ== ARC-Message-Signature: i=2; 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=lPeA8Tt/1sNjperxg0iGiRIEDPmqsriRVaT4ZGeReeY=; fh=ocEmzkXH+yoD6m+CUjZgUq3GqURXfi7iXr4p0c9XC6k=; b=h95da+gHbzmNUXCOxvJvHAdJfRBYtmMUc0lFLX9J93OUuHzwRpQWLWa9rHfyupU0+H SpAENg03PJ+Czin1nrW0AWhi1s4RNoAB5lS+C2SREUJJ+9l2h0z+keDhs88v8hBIUgBj yX9xliIKZSp4uoZosg3Xou3N4j+DhraUjN4NqXv/V5oipUQYLipwvh8hCVJhxKavYcaZ 6eP+BrqSK7TrP2IIWNumArRWr2qP3oqKIXiq2XH4ffXPa/IahrfiU03vkf+jn+l+WHUF /HU+9iItvwSw5yG0dhLmFq7uzulwh1hZD0i/d4v5OL3JuS78qXv5lFyZsl2Hh9fqAgaQ +DfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AD1x6DeK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u21-20020a170906781500b00a466bf305cfsi75723ejm.619.2024.03.21.09.33.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110343-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=@kernel.org header.s=k20201202 header.b=AD1x6DeK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 314801F233F9 for ; Thu, 21 Mar 2024 16:32:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5584D945A; Thu, 21 Mar 2024 16:32:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AD1x6DeK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71772B66F; Thu, 21 Mar 2024 16:32:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711038747; cv=none; b=QffborjNYGNCExVUjBz5V397y3AV63+2I1HP7RR7MHi8NfvZNl1VYwLis/XNJIn5XsspoD6t7QYVKx/YCeUsCrHpmQy+omxrCdrxE1hDifvDWR7ke3ejNHx4dPz8wIi8wqt2koTJwvrrna6SYvqnxodRn4JPaJYu8rUvgdE7JA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711038747; c=relaxed/simple; bh=mK+3Pvs62TU5G1Vri5+8hmlP64mKLMFLa7J9BiXWipM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=V9FXY/087AZX6hW44quYz84b0ZR6CK/VvKeGEcvD0EbBAQo9INKScWMEE1gSKqPB3dpx9Xg9xcwO1PdXjlClgv0co7Hs+Ku8LiOTCSDQIkCsigQAJ8hYDq19cCZO1+b5B42C16epsmPMB3/Oq9OCrnw1ZI68yOc5T1J3mGRhzP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AD1x6DeK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F098AC43390; Thu, 21 Mar 2024 16:32:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711038747; bh=mK+3Pvs62TU5G1Vri5+8hmlP64mKLMFLa7J9BiXWipM=; h=Date:From:To:Cc:Subject:From; b=AD1x6DeK+wvIqOV7aU107c0kLovKJZpGbxpA0WpuaxGsxCxWgjJKNlYiGLJYqh+ww BP61BUvDH6RlHesKUdxMrqcM6velZAq2rS6Jr8pv4hAxo6Hax555ACf6L+xl7BKr8a Nrz67AGCghzEE8Z/zw1Fd6PZ2ihkqu0VONOlBniLPGhZidddA13azoQwLKFlU1teCl kt7S5EIqHbLt4FE78cGOEcEYHS2BNmjA+CIsPR/OTRC1t1+JxmU8+i8C3CWD2VDALP sl48zkG4lvBGBsFBEiFdeZXYS6LEZwp5Ued9UI6hvqnNq2a0rX+mRenrcR1e3PGMjd 7HIATVgXbsjZQ== Date: Thu, 21 Mar 2024 12:32:16 -0400 From: William Breathitt Gray To: Vignesh Raghavendra , Julien Panis Cc: linux-iio@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Fabrice Gasnier , syednwaris@gmail.com Subject: [PATCH] counter: ti-ecap-capture: Utilize COUNTER_COMP_FREQUENCY macro 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-sha512; protocol="application/pgp-signature"; boundary="w2HDcFP2klNv51j4" Content-Disposition: inline --w2HDcFP2klNv51j4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Reduce boilerplate by leveraging the COUNTER_COMP_FREQUENCY() macro to define the "frequency" extension. Signed-off-by: William Breathitt Gray --- drivers/counter/ti-ecap-capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/ti-ecap-capture.c b/drivers/counter/ti-ecap-ca= pture.c index d33d35055b91..675447315caf 100644 --- a/drivers/counter/ti-ecap-capture.c +++ b/drivers/counter/ti-ecap-capture.c @@ -369,7 +369,7 @@ static const enum counter_synapse_action ecap_cnt_input= _actions[] =3D { }; =20 static struct counter_comp ecap_cnt_clock_ext[] =3D { - COUNTER_COMP_SIGNAL_U64("frequency", ecap_cnt_clk_get_freq, NULL), + COUNTER_COMP_FREQUENCY(ecap_cnt_clk_get_freq), }; =20 static const enum counter_signal_polarity ecap_cnt_pol_avail[] =3D { base-commit: eca588187f9129300c6e44d64b819545cede463d --=20 2.44.0 --w2HDcFP2klNv51j4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZfxhCAAKCRC1SFbKvhIj K5xwAPkBjIwCWKw+ZwItGL27bZ6jmnPofDeQZ7m786/wI0cPxgD/etpNvdOgOKrs BiWtA9nhamXG6oAEq7hAjp2chz5WgQA= =UG2X -----END PGP SIGNATURE----- --w2HDcFP2klNv51j4--