media: rkisp1: csi: Constify argument to rkisp1_csi_start()

The sensor argument to rkisp1_csi_start() isn't meant to be modified by
the function. Make it const.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Laurent Pinchart 2022-06-14 20:10:56 +01:00 committed by Mauro Carvalho Chehab
parent c5045943cd
commit 3061c659ff
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
#include "rkisp1-csi.h"
static int rkisp1_csi_config(struct rkisp1_csi *csi,
struct rkisp1_sensor_async *sensor)
const struct rkisp1_sensor_async *sensor)
{
struct rkisp1_device *rkisp1 = csi->rkisp1;
const struct rkisp1_mbus_info *sink_fmt = rkisp1->isp.sink_fmt;
@ -96,7 +96,7 @@ static void rkisp1_csi_disable(struct rkisp1_csi *csi)
}
int rkisp1_csi_start(struct rkisp1_csi *csi,
struct rkisp1_sensor_async *sensor)
const struct rkisp1_sensor_async *sensor)
{
struct rkisp1_device *rkisp1 = csi->rkisp1;
union phy_configure_opts opts;

View File

@ -19,7 +19,7 @@ int rkisp1_csi_init(struct rkisp1_device *rkisp1);
void rkisp1_csi_cleanup(struct rkisp1_device *rkisp1);
int rkisp1_csi_start(struct rkisp1_csi *csi,
struct rkisp1_sensor_async *sensor);
const struct rkisp1_sensor_async *sensor);
void rkisp1_csi_stop(struct rkisp1_csi *csi);
#endif /* _RKISP1_CSI_H */