Message ID | 20231224114916.111433-3-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-10695-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp2093798dyi; Sun, 24 Dec 2023 03:50:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8Ixf16Perrg6tD2eAnJ00soSXRdK3CCOk+zi0zz2KiwHc0LplTbj5xd9pstDVnG0BNCc7 X-Received: by 2002:a17:90b:f16:b0:28b:1868:9924 with SMTP id br22-20020a17090b0f1600b0028b18689924mr1215125pjb.64.1703418629979; Sun, 24 Dec 2023 03:50:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703418629; cv=none; d=google.com; s=arc-20160816; b=i/uUr8j2CK2Vf8UqP9+5ru47h4BM2Y+twui3iiERnmqH+jGdyzoQeqt7qg6p9kme1r fbk1RCMmnPrvl9R2fBOvDubzjSixW1qGO7/Gg1iwVwvdBDheOz3lwy9GvzuoCti/FaAy STKJBNBdmdrOusT5hWZxtl2D5wJ/tqUGJUSrqOJxcH/Dxc+/TGdb+HblZuCjnb+Vg2Su yeULtzoCj5uQzQTU12hhkcP1tQgB8bncfgUUpTVM6tQyNbyYYpVuQRW/Z90gThJhi0rV pjVVBGNnmSwkcA+Q/fNI8i0CKkjlvRAiuBwwwnDtcDrCKXsuyPhuIjwww32j4ZXRo+4F Axtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=+A2sLdMYd9jrOu4aUtIFiY1f/32swGwSuhGRSvbimyg=; fh=FbjPzT9WWTKSglYskE+giKKmjX6PgCMhn86yvylggxU=; b=QziJ9z9nn8obpOvryygsr463T7ShcjOSfZ5ZmmxW/Xccjl17VRNt29z9oi3rY8k6KP fXseOPe2tpkMG9peUAY/i7Yiv8UGbvdAn2yrQouTQ8EHzdIfJZBmb9Qvnu8LnpzPd3Ra BVTJ2paJVnNM9bUkgFeRF6yAp4CAfQ5IFwutjehUabpkQ1ZAlxFlEOdkTvUBvuPKPu8E O18LZ/ccdpVjcmOYNlSspeXG6P9PoHhFyK9zv6xN+6W27SXzY33pwFgCbpq4pzYHtxq8 bYBWNcZnUW5AB7f77KssbaX4jeAo9vt6VLfd8CbVD3zP/mPkYhosVpihPD2f4e4Rq+Fy ejDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f0xhWpr9; spf=pass (google.com: domain of linux-kernel+bounces-10695-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10695-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id on13-20020a17090b1d0d00b0028ad088026asi6533364pjb.76.2023.12.24.03.50.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 03:50:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10695-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f0xhWpr9; spf=pass (google.com: domain of linux-kernel+bounces-10695-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10695-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BBFFB28229D for <ouuuleilei@gmail.com>; Sun, 24 Dec 2023 11:50:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D884AD2FD; Sun, 24 Dec 2023 11:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="f0xhWpr9" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 877BB3D7C for <linux-kernel@vger.kernel.org>; Sun, 24 Dec 2023 11:49:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-554d06bfd83so183248a12.1 for <linux-kernel@vger.kernel.org>; Sun, 24 Dec 2023 03:49:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703418563; x=1704023363; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=+A2sLdMYd9jrOu4aUtIFiY1f/32swGwSuhGRSvbimyg=; b=f0xhWpr9yAuT8pn3ZBNfas90r1lbC3N5IR7Gr0buY5B3uORUkmoPij2PA9MtJ2gGR4 r6c2w2uhg3KCEJTADH9QJ6ynr+J13UB+KBnI9j6b0+I5UI8iUC8otz43UhzNH4RIHP8q gWX/5lSTNt0jihNQeVNvBgkKHQki1dMxjHra7LgqkHhjogWx9ZN7tzDZE4sVtZdubICR xWzpZIfm5nkLE2yLTBkfBz8Lwgw7zlwNH86pYrl6w6LBu9pDVnLr94W+qmOYea49H31K uh3hJIUzc1u1oeSHfTezjVIk4/E8jeDj1RLIyL5QRJnLpQVv/QnZhB9bq+FbLm6k7Rcv nSgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703418563; x=1704023363; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+A2sLdMYd9jrOu4aUtIFiY1f/32swGwSuhGRSvbimyg=; b=Ry7uJcRfZ7zyY7AaZD3RZjbVNIxH4FWztFmXW60HTFTbUceyGMBBCHWjUZOvxP3FTt pLF/LBN3J5gZftVwqUuRtdiO87YX4siCr943SzwNyGK3jjadkK3V1BYtSkjmitJbJCL8 55hlfUZEUNd4kjwZL50/75X11pO9ntP2mwoDP3v6B0laROgORI195eI2LUzu66/AV9Zw 8SNEB2QiFIErzQGDsu0qE6ZVxWMQe0M6h8zQ+HqDvfPjQgSiDdPWeJCxpsI62Bt79jk8 TOpaB3EY2nJqv5sMG2YmdU3HLESAKhH3o4gskIO05hYqV9+Aot1gemK3wpiKvZjI3G9A b1Lw== X-Gm-Message-State: AOJu0YwxXNs2gLYluR/6YRz0VD1Cxp8ts/9daN+CDH7+gjT5UmodIj/z FJ6hIDI5qWCe1oZk3TKllriHuzLM67vtoA== X-Received: by 2002:aa7:cb50:0:b0:551:4f67:18df with SMTP id w16-20020aa7cb50000000b005514f6718dfmr2757054edt.59.1703418562841; Sun, 24 Dec 2023 03:49:22 -0800 (PST) Received: from krzk-bin.. ([78.10.206.178]) by smtp.gmail.com with ESMTPSA id z23-20020aa7c657000000b0054ccac03945sm4999771edr.12.2023.12.24.03.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 03:49:22 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Sylwester Nawrocki <s.nawrocki@samsung.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Alim Akhtar <alim.akhtar@samsung.com>, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/12] media: fimc-lite: constify pointers to v4l2_pix_format_mplane Date: Sun, 24 Dec 2023 12:49:07 +0100 Message-Id: <20231224114916.111433-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231224114916.111433-1-krzysztof.kozlowski@linaro.org> References: <20231224114916.111433-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786163893497610932 X-GMAIL-MSGID: 1786163893497610932 |
Series |
[01/12] media: fimc-lite: drop unused flite_hw_set_camera_polarity()
|
|
Commit Message
Krzysztof Kozlowski
Dec. 24, 2023, 11:49 a.m. UTC
In few places functions do not modify pointed "struct
v4l2_pix_format_mplane", thus the pointer can point to const data for
additional safety and self-documenting intention of the function.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/media/platform/samsung/exynos4-is/fimc-lite.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-lite.c b/drivers/media/platform/samsung/exynos4-is/fimc-lite.c index 7898c9bebb04..d1d860fa3454 100644 --- a/drivers/media/platform/samsung/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/samsung/exynos4-is/fimc-lite.c @@ -738,7 +738,7 @@ static int fimc_lite_try_fmt_mplane(struct file *file, void *fh, static int fimc_lite_s_fmt_mplane(struct file *file, void *priv, struct v4l2_format *f) { - struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; + const struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; struct fimc_lite *fimc = video_drvdata(file); struct flite_frame *frame = &fimc->out_frame; const struct fimc_fmt *fmt = NULL;