Message ID | 20240429-fix-cocci-v3-21-3c4865f5a4b0@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96F3AC4345F for <linux-arm-kernel@archiver.kernel.org>; Mon, 29 Apr 2024 15:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=u3UdVLpvFIGnoPjvRlzc01n2pFsh5faZCNRFDVG9Cys=; b=BGvnLj4Pa+xMa7 JGmcQ2B+wj+oxBk7gIZBB4h8B/ShPMnRcJSsNxWjL4MsIYUlCoP9gGmUaIFYBHAVmmTJoRVrcyJn5 k8c1qIOA96yr71Qs4x1FBBZ0iNu/5cYdOD2KvrDSBEwv36FZj4BNBZ9zhIigPg5e2uZOma8r9/An/ YlUQeBsC5S2TBxgJY5l/LFJy3qoSgvtkVR1Ke3TTPYxKANchrhrq4Pt69hn1Qvxf2ZUvBhuPqLSwB gTTEt2cXuAOFVwkS0qh5bFNqaO19W3cqyAYYbMGZ32zjrwgoTPqS2lF5BTaRUMkB52EU+pNCiTzex IQyw6nt1HbKrud4TDCDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1Scp-00000003HsU-3oxt; Mon, 29 Apr 2024 15:09:03 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1SZv-00000003G3x-39xI for linux-arm-kernel@bombadil.infradead.org; Mon, 29 Apr 2024 15:06:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Cc:To:In-Reply-To:References:Message-Id :Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender :Reply-To:Content-ID:Content-Description; bh=8OKO6D6+Uymjr7y5phUxNbL6FrIK2B37/+KaDSdt/b8=; b=UtBXE412iV8DROFNtXP7jSuqzl pFvFG9UrV7iK6fBhqY0Ce6uoC+W+NPUgxg0JDOiZVThEq4pAiH587v+f7MP5vqCPQvjEDtbG9y7dr ECX6nNhVBvPDb41lACEW4Y48N7if88uQRsEiHzSaPLP/cRDIY/KJFa5i756hOA9NvQ4ZPAgVLMqKa vIhye/y9pgs49tfdRC830nvV+LCcsa0KI3pCK6PKFYdA84gtbGAasMc0xGn+1CnfYYrx6qgLn1AMU 2m59OgeIn8+7LCGKah0wBf/TurB0DUTEFE+jgHYOFYryQAzNZcsNH/5V6fKGXTJEazPAALQhyDF2Y yzXYMPXw==; Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1SZs-0000000CflB-3SgO for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2024 15:06:02 +0000 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-790c36dcee9so178370785a.2 for <linux-arm-kernel@lists.infradead.org>; Mon, 29 Apr 2024 08:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714403104; x=1715007904; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8OKO6D6+Uymjr7y5phUxNbL6FrIK2B37/+KaDSdt/b8=; b=PCGMOXK4kni3Fq7Jv1fZQhoEsWOlcmRCCBErk1okOvO2/+VWEabUGsbBAmQsOVoYjG kL2fh4EZb6/coGRNeK2ymqEmFCqjg9mASpCj2ckdzoAgCHMpW8Bc68NuC21UseY2B8yL P5WHZFqCJfHtaiZVMZ6BQZwwIaYtl17JSEvUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714403104; x=1715007904; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8OKO6D6+Uymjr7y5phUxNbL6FrIK2B37/+KaDSdt/b8=; b=h61uDv28P9Gw+Kkxsq2QmpNlgiwjYt68kEi10/xTeW+PMnH+Sy7RXjHukpUqDB2ZhW PJsxpwtKAbuD4S4EuPftMGoMc75/sy12lUU7uZbK9RplAhcRORpQfujZHYmTG2C4W6XK CkXGoOW6xzLOmWRRics7lUWK+B2lBeoP/DApdQBZYHyjhZs2LCRxeOxkhqJ+qfUTnAd+ k9yTrRpOVz9xW/2w5iTjWQcv5pNRMKcDkyyDXM+X9HvkmPzgshpY4E8HEIyHuR3hzfmO /DLIQ8FeEJl7M02Vm1KTp8F2hzSNw3Is3xENXNVP82G7cYPlynv99v8WiWy1XPKm+yQ7 LXDA== X-Forwarded-Encrypted: i=1; AJvYcCXQ846dA8hXZaGDC7dicSVKXaysQa2x9kLuxDQuXJAXf7jNEHP9PMt2QVCq3f84zN5InIbglvP2VtWZKEzkAWrzlJ6ddk9h6Gd9sX7HCP2VKqPYuPQ= X-Gm-Message-State: AOJu0YyQguIRWRO7uNXAP4H2X8h+y/uWyV7w98jk19+L7RZVNHzIyRHP jCzXXr0LKkaztEJw4jez5Ou+5dCIhQm1ZDoTzjogqzoARoXNkal2oxxb99gVzg== X-Google-Smtp-Source: AGHT+IFaMtke8GiK3PVK81BO+wCQ6+s/afNMwPPBZtmDsaryJW0dODmZmCJQPhu+Legma0gxWaBb/A== X-Received: by 2002:a05:620a:561c:b0:78e:d4f6:3949 with SMTP id vu28-20020a05620a561c00b0078ed4f63949mr12152221qkn.25.1714403104299; Mon, 29 Apr 2024 08:05:04 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id p7-20020a05620a056700b0078d3b9139edsm10568591qkp.97.2024.04.29.08.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:05:04 -0700 (PDT) From: Ricardo Ribalda <ribalda@chromium.org> Date: Mon, 29 Apr 2024 15:05:00 +0000 Subject: [PATCH v3 21/26] media: i2c: st-mipid02: Use the correct div function MIME-Version: 1.0 Message-Id: <20240429-fix-cocci-v3-21-3c4865f5a4b0@chromium.org> References: <20240429-fix-cocci-v3-0-3c4865f5a4b0@chromium.org> In-Reply-To: <20240429-fix-cocci-v3-0-3c4865f5a4b0@chromium.org> To: Martin Tuma <martin.tuma@digiteqautomotive.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Hugues Fruchet <hugues.fruchet@foss.st.com>, Alain Volmat <alain.volmat@foss.st.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Paul Kocialkowski <paul.kocialkowski@bootlin.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Sakari Ailus <sakari.ailus@linux.intel.com>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, Sowjanya Komatineni <skomatineni@nvidia.com>, Luca Ceresoli <luca.ceresoli@bootlin.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Hans Verkuil <hverkuil@xs4all.nl>, Sergey Kozlov <serjk@netup.ru>, Abylay Ospan <aospan@netup.ru>, Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>, Dmitry Osipenko <digetx@gmail.com>, Benjamin Mugnier <benjamin.mugnier@foss.st.com>, Sylvain Petinot <sylvain.petinot@foss.st.com>, Stanimir Varbanov <stanimir.k.varbanov@gmail.com>, Vikash Garodia <quic_vgarodia@quicinc.com>, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org> Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, Ricardo Ribalda <ribalda@chromium.org> X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_160600_904200_465CD9F5 X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
media: Fix coccinelle warning/errors
|
expand
|
diff --git a/drivers/media/i2c/st-mipid02.c b/drivers/media/i2c/st-mipid02.c index f250640729ca..b947a55281f0 100644 --- a/drivers/media/i2c/st-mipid02.c +++ b/drivers/media/i2c/st-mipid02.c @@ -326,7 +326,7 @@ static int mipid02_configure_from_rx_speed(struct mipid02_dev *bridge, } dev_dbg(&client->dev, "detect link_freq = %lld Hz", link_freq); - do_div(ui_4, link_freq); + ui_4 = div64_u64(ui_4, link_freq); bridge->r.clk_lane_reg1 |= ui_4 << 2; return 0;