Skip to content

Commit 3522673

Browse files
quic-vikramsahverkuil
authored andcommitted
media: qcom: camss: Sort camss version enums and compatible strings
Sort CAMSS version enums and compatible strings alphanumerically. Signed-off-by: Suresh Vankadara <[email protected]> Signed-off-by: Trishansh Bhardwaj <[email protected]> Signed-off-by: Vikram Sharma <[email protected]> Reviewed-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 5593555 commit 3522673

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,6 @@ static void csiphy_gen2_config_lanes(struct csiphy_device *csiphy,
505505
u32 val;
506506

507507
switch (csiphy->camss->res->version) {
508-
case CAMSS_845:
509-
r = &lane_regs_sdm845[0][0];
510-
array_size = ARRAY_SIZE(lane_regs_sdm845[0]);
511-
break;
512508
case CAMSS_8250:
513509
r = &lane_regs_sm8250[0][0];
514510
array_size = ARRAY_SIZE(lane_regs_sm8250[0]);
@@ -517,6 +513,10 @@ static void csiphy_gen2_config_lanes(struct csiphy_device *csiphy,
517513
r = &lane_regs_sc8280xp[0][0];
518514
array_size = ARRAY_SIZE(lane_regs_sc8280xp[0]);
519515
break;
516+
case CAMSS_845:
517+
r = &lane_regs_sdm845[0][0];
518+
array_size = ARRAY_SIZE(lane_regs_sdm845[0]);
519+
break;
520520
default:
521521
WARN(1, "unknown cspi version\n");
522522
return;
@@ -557,9 +557,9 @@ static bool csiphy_is_gen2(u32 version)
557557
bool ret = false;
558558

559559
switch (version) {
560-
case CAMSS_845:
561560
case CAMSS_8250:
562561
case CAMSS_8280XP:
562+
case CAMSS_845:
563563
ret = true;
564564
break;
565565
}

drivers/media/platform/qcom/camss/camss-vfe.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ static u32 vfe_src_pad_code(struct vfe_line *line, u32 sink_code,
334334
return sink_code;
335335
}
336336
break;
337-
case CAMSS_8x96:
338337
case CAMSS_660:
339-
case CAMSS_845:
338+
case CAMSS_8x96:
340339
case CAMSS_8250:
341340
case CAMSS_8280XP:
341+
case CAMSS_845:
342342
switch (sink_code) {
343343
case MEDIA_BUS_FMT_YUYV8_1X16:
344344
{
@@ -1693,9 +1693,9 @@ static int vfe_bpl_align(struct vfe_device *vfe)
16931693
int ret = 8;
16941694

16951695
switch (vfe->camss->res->version) {
1696-
case CAMSS_845:
16971696
case CAMSS_8250:
16981697
case CAMSS_8280XP:
1698+
case CAMSS_845:
16991699
ret = 16;
17001700
break;
17011701
default:

drivers/media/platform/qcom/camss/camss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2689,10 +2689,10 @@ static const struct of_device_id camss_dt_match[] = {
26892689
{ .compatible = "qcom,msm8916-camss", .data = &msm8916_resources },
26902690
{ .compatible = "qcom,msm8953-camss", .data = &msm8953_resources },
26912691
{ .compatible = "qcom,msm8996-camss", .data = &msm8996_resources },
2692+
{ .compatible = "qcom,sc8280xp-camss", .data = &sc8280xp_resources },
26922693
{ .compatible = "qcom,sdm660-camss", .data = &sdm660_resources },
26932694
{ .compatible = "qcom,sdm845-camss", .data = &sdm845_resources },
26942695
{ .compatible = "qcom,sm8250-camss", .data = &sm8250_resources },
2695-
{ .compatible = "qcom,sc8280xp-camss", .data = &sc8280xp_resources },
26962696
{ }
26972697
};
26982698

drivers/media/platform/qcom/camss/camss.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ enum pm_domain {
7777
};
7878

7979
enum camss_version {
80+
CAMSS_660,
8081
CAMSS_8x16,
8182
CAMSS_8x53,
8283
CAMSS_8x96,
83-
CAMSS_660,
84-
CAMSS_845,
8584
CAMSS_8250,
8685
CAMSS_8280XP,
86+
CAMSS_845,
8787
};
8888

8989
enum icc_count {

0 commit comments

Comments
 (0)