mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-05 03:35:52 -04:00
media: iris: turn platform caps into constants
Make all struct platform_inst_fw_cap instances constant, they are not modified at runtime. Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com> Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Bryan O'Donoghue <bod@kernel.org> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
456c99da41
commit
e5894eeefd
@@ -301,7 +301,7 @@ int iris_ctrls_init(struct iris_inst *inst)
|
||||
|
||||
void iris_session_init_caps(struct iris_core *core)
|
||||
{
|
||||
struct platform_inst_fw_cap *caps;
|
||||
const struct platform_inst_fw_cap *caps;
|
||||
u32 i, num_cap, cap_id;
|
||||
|
||||
caps = core->iris_platform_data->inst_fw_caps_dec;
|
||||
|
||||
@@ -215,9 +215,9 @@ struct iris_platform_data {
|
||||
const char *fwname;
|
||||
u32 pas_id;
|
||||
struct platform_inst_caps *inst_caps;
|
||||
struct platform_inst_fw_cap *inst_fw_caps_dec;
|
||||
const struct platform_inst_fw_cap *inst_fw_caps_dec;
|
||||
u32 inst_fw_caps_dec_size;
|
||||
struct platform_inst_fw_cap *inst_fw_caps_enc;
|
||||
const struct platform_inst_fw_cap *inst_fw_caps_enc;
|
||||
u32 inst_fw_caps_enc_size;
|
||||
struct tz_cp_config *tz_cp_config_data;
|
||||
u32 core_arch;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#define VIDEO_ARCH_LX 1
|
||||
#define BITRATE_MAX 245000000
|
||||
|
||||
static struct platform_inst_fw_cap inst_fw_cap_sm8550_dec[] = {
|
||||
static const struct platform_inst_fw_cap inst_fw_cap_sm8550_dec[] = {
|
||||
{
|
||||
.cap_id = PROFILE_H264,
|
||||
.min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE,
|
||||
@@ -203,7 +203,7 @@ static struct platform_inst_fw_cap inst_fw_cap_sm8550_dec[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct platform_inst_fw_cap inst_fw_cap_sm8550_enc[] = {
|
||||
static const struct platform_inst_fw_cap inst_fw_cap_sm8550_enc[] = {
|
||||
{
|
||||
.cap_id = PROFILE_H264,
|
||||
.min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#define BITRATE_MAX 245000000
|
||||
|
||||
static struct platform_inst_fw_cap inst_fw_cap_qcs8300_dec[] = {
|
||||
static const struct platform_inst_fw_cap inst_fw_cap_qcs8300_dec[] = {
|
||||
{
|
||||
.cap_id = PROFILE_H264,
|
||||
.min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE,
|
||||
@@ -189,7 +189,7 @@ static struct platform_inst_fw_cap inst_fw_cap_qcs8300_dec[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct platform_inst_fw_cap inst_fw_cap_qcs8300_enc[] = {
|
||||
static const struct platform_inst_fw_cap inst_fw_cap_qcs8300_enc[] = {
|
||||
{
|
||||
.cap_id = PROFILE_H264,
|
||||
.min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#define BITRATE_PEAK_DEFAULT (BITRATE_DEFAULT * 2)
|
||||
#define BITRATE_STEP 100
|
||||
|
||||
static struct platform_inst_fw_cap inst_fw_cap_sm8250_dec[] = {
|
||||
static const struct platform_inst_fw_cap inst_fw_cap_sm8250_dec[] = {
|
||||
{
|
||||
.cap_id = PIPE,
|
||||
.min = PIPE_1,
|
||||
@@ -38,7 +38,7 @@ static struct platform_inst_fw_cap inst_fw_cap_sm8250_dec[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct platform_inst_fw_cap inst_fw_cap_sm8250_enc[] = {
|
||||
static const struct platform_inst_fw_cap inst_fw_cap_sm8250_enc[] = {
|
||||
{
|
||||
.cap_id = STAGE,
|
||||
.min = STAGE_1,
|
||||
|
||||
Reference in New Issue
Block a user