From patchwork Mon Jan 23 19:17:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent Pappas X-Patchwork-Id: 646377 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 3D60DC05027 for ; Mon, 23 Jan 2023 19:19:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230231AbjAWTTS (ORCPT ); Mon, 23 Jan 2023 14:19:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232556AbjAWTTA (ORCPT ); Mon, 23 Jan 2023 14:19:00 -0500 Received: from MTA-06-3.privateemail.com (mta-06-3.privateemail.com [198.54.127.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F953CA0E; Mon, 23 Jan 2023 11:18:27 -0800 (PST) Received: from mta-06.privateemail.com (localhost [127.0.0.1]) by mta-06.privateemail.com (Postfix) with ESMTP id 19FA618000A9; Mon, 23 Jan 2023 14:18:26 -0500 (EST) Received: from bpappas-XPS-13-9310.ucf.edu (050-088-208-136.res.spectrum.com [50.88.208.136]) by mta-06.privateemail.com (Postfix) with ESMTPA id 503ED18000A0; Mon, 23 Jan 2023 14:18:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pappasbrent.com; s=default; t=1674501505; bh=v9a1fv396joFpPHCngbbu0JqMfh+uZzL3+ZM1rjZYqM=; h=From:To:Cc:Subject:Date:From; b=EhE6xylCj2/9+WTSRj6eWeLuMpJZqTl3NBQgdngAZnpcAjFRkaNtcy96TuKzErHFO 85feHLV/1nDTndy/VdckUL/09agtT+kyjyB0PsMasmoksB4zHiIrOhmZ0M4d/6ShPr kJHUu5YZ+pnr+yf9CoGIrW1O0z5fdtXfYWtF6Q5sk+AdQT3gYyLKkMubcQkS/LVNkl 7+lwm1jMa2YUzvfe7k9XIpToNHr7RwlXY8w3SdP/WW/sKLq0gh3kze0dVpNBPlh7Mj FEz1ieQRPShgPUVBUSbxpiRXfJ67QqxRtmrgRrvxGJgGKvd+c6pF8omP+IaPqV6juR FBiCqLY/ryKTQ== From: Brent Pappas To: slongerbeam@gmail.com Cc: p.zabel@pengutronix.de, mchehab@kernel.org, gregkh@linuxfoundation.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Brent Pappas Subject: [PATCH] media: imx: imx-media-fim: Replace macro icap_enabled() with function Date: Mon, 23 Jan 2023 14:17:14 -0500 Message-Id: <20230123191714.22430-1-bpappas@pappasbrent.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Replace the macro icap_enabled() with a static function to comply with Linux coding style standards. Signed-off-by: Brent Pappas --- drivers/staging/media/imx/imx-media-fim.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/imx/imx-media-fim.c b/drivers/staging/media/imx/imx-media-fim.c index fb6590dcfc36..ccb35d098a19 100644 --- a/drivers/staging/media/imx/imx-media-fim.c +++ b/drivers/staging/media/imx/imx-media-fim.c @@ -68,7 +68,10 @@ struct imx_media_fim { bool stream_on; }; -#define icap_enabled(fim) ((fim)->icap_flags != IRQ_TYPE_NONE) +static bool icap_enabled(struct imx_media_fim *fim) +{ + return fim->icap_flags != IRQ_TYPE_NONE; +} static void update_fim_nominal(struct imx_media_fim *fim, const struct v4l2_fract *fi)