Files
openwrt-armor-g5/target/linux/bcm27xx/patches-6.6/950-0919-media-ov64a40-Use-container_of_const.patch
domenico 27c9d80f51
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 12:51:15 +02:00

27 lines
844 B
Diff

From 3c3e2f983391913891979aed64ed563f20a34c83 Mon Sep 17 00:00:00 2001
From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Date: Thu, 29 Feb 2024 09:32:34 +0100
Subject: [PATCH 0919/1085] media: ov64a40: Use container_of_const()
The container_of_const(), introduced in Linux v6.2, allows to preserve
the const-ness of a pointer.
Use it in the sd_to_ov64a40() function.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
drivers/media/i2c/ov64a40.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/media/i2c/ov64a40.c
+++ b/drivers/media/i2c/ov64a40.c
@@ -2858,7 +2858,7 @@ struct ov64a40 {
static inline struct ov64a40 *sd_to_ov64a40(struct v4l2_subdev *sd)
{
- return container_of(sd, struct ov64a40, sd);
+ return container_of_const(sd, struct ov64a40, sd);
}
static const struct ov64a40_timings *