mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 12:25:40 -05:00
media: s5p-mfc: constify pointers to s5p_mfc_cmd_args
In few places functions do not modify pointed "struct s5p_mfc_cmd_args", 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> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
4b9f910969
commit
60a2a86fb8
@@ -19,7 +19,7 @@ struct s5p_mfc_cmd_args {
|
||||
|
||||
struct s5p_mfc_hw_cmds {
|
||||
int (*cmd_host2risc)(struct s5p_mfc_dev *dev, int cmd,
|
||||
struct s5p_mfc_cmd_args *args);
|
||||
const struct s5p_mfc_cmd_args *args);
|
||||
int (*sys_init_cmd)(struct s5p_mfc_dev *dev);
|
||||
int (*sleep_cmd)(struct s5p_mfc_dev *dev);
|
||||
int (*wakeup_cmd)(struct s5p_mfc_dev *dev);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
/* This function is used to send a command to the MFC */
|
||||
static int s5p_mfc_cmd_host2risc_v5(struct s5p_mfc_dev *dev, int cmd,
|
||||
struct s5p_mfc_cmd_args *args)
|
||||
const struct s5p_mfc_cmd_args *args)
|
||||
{
|
||||
int cur_cmd;
|
||||
unsigned long timeout;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "s5p_mfc_cmd_v6.h"
|
||||
|
||||
static int s5p_mfc_cmd_host2risc_v6(struct s5p_mfc_dev *dev, int cmd,
|
||||
struct s5p_mfc_cmd_args *args)
|
||||
const struct s5p_mfc_cmd_args *args)
|
||||
{
|
||||
mfc_debug(2, "Issue the command: %d\n", cmd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user