[media] davinci: more gama -> gamma typo fixes
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 4 Mar 2013 10:24:07 +0000 (07:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Mar 2013 19:16:23 +0000 (16:16 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/dm355_ccdc.c
drivers/media/platform/davinci/dm355_ccdc_regs.h
drivers/media/platform/davinci/isif.c
drivers/media/platform/davinci/isif_regs.h
include/media/davinci/dm355_ccdc.h

index 4277e4ad810c1b55b51bb2df3eacb0e3b2dc8e77..2364dbab804678b42ff7b1768d17a56136a9d3d5 100644 (file)
@@ -85,7 +85,7 @@ static struct ccdc_oper_config {
                        .mfilt1 = CCDC_NO_MEDIAN_FILTER1,
                        .mfilt2 = CCDC_NO_MEDIAN_FILTER2,
                        .alaw = {
-                               .gama_wd = 2,
+                               .gamma_wd = 2,
                        },
                        .blk_clamp = {
                                .sample_pixel = 1,
@@ -303,8 +303,8 @@ static int validate_ccdc_param(struct ccdc_config_params_raw *ccdcparam)
        }
 
        if (ccdcparam->alaw.enable) {
-               if (ccdcparam->alaw.gama_wd < CCDC_GAMMA_BITS_13_4 ||
-                   ccdcparam->alaw.gama_wd > CCDC_GAMMA_BITS_09_0) {
+               if (ccdcparam->alaw.gamma_wd < CCDC_GAMMA_BITS_13_4 ||
+                   ccdcparam->alaw.gamma_wd > CCDC_GAMMA_BITS_09_0) {
                        dev_dbg(ccdc_cfg.dev, "Invalid value of ALAW\n");
                        return -EINVAL;
                }
@@ -680,8 +680,8 @@ static int ccdc_config_raw(void)
        /* Enable and configure aLaw register if needed */
        if (config_params->alaw.enable) {
                val |= (CCDC_ALAW_ENABLE |
-                       ((config_params->alaw.gama_wd &
-                       CCDC_ALAW_GAMA_WD_MASK) <<
+                       ((config_params->alaw.gamma_wd &
+                       CCDC_ALAW_GAMMA_WD_MASK) <<
                        CCDC_GAMMAWD_INPUT_SHIFT));
        }
 
index d6d2ef0533b5936b7e8e07b6b96262522417ed0a..2e1946e0b99f0b2fbc8c15be396cf9ef2715597a 100644 (file)
 #define CCDC_VDHDEN_ENABLE                     (1 << 16)
 #define CCDC_LPF_ENABLE                                (1 << 14)
 #define CCDC_ALAW_ENABLE                       1
-#define CCDC_ALAW_GAMA_WD_MASK                 7
+#define CCDC_ALAW_GAMMA_WD_MASK                        7
 #define CCDC_REC656IF_BT656_EN                 3
 
 #define CCDC_FMTCFG_FMTMODE_MASK               3
index 5050f9265f48333c53a3bdaa35353ebe7daf60bd..abc3ae36645c59da16a36c2b7a127ab68d555c9c 100644 (file)
@@ -604,7 +604,7 @@ static int isif_config_raw(void)
        if (module_params->compress.alg == ISIF_ALAW)
                val |= ISIF_ALAW_ENABLE;
 
-       val |= (params->data_msb << ISIF_ALAW_GAMA_WD_SHIFT);
+       val |= (params->data_msb << ISIF_ALAW_GAMMA_WD_SHIFT);
        regw(val, CGAMMAWD);
 
        /* Configure DPCM compression settings */
index aa69a463c1228358a1742e06689ead57e49c6165..3993aece821b92c8498a20f2021f9b7d6381d561 100644 (file)
 #define ISIF_LPF_MASK                          1
 
 /* GAMMAWD registers */
-#define ISIF_ALAW_GAMA_WD_MASK                 0xF
-#define ISIF_ALAW_GAMA_WD_SHIFT                        1
+#define ISIF_ALAW_GAMMA_WD_MASK                        0xF
+#define ISIF_ALAW_GAMMA_WD_SHIFT               1
 #define ISIF_ALAW_ENABLE                       1
 #define ISIF_GAMMAWD_CFA_SHIFT                 5
 
index adf2fe4bf0bb2cd37a61c45791bc10fd919b3bb4..c669a9fb75e57504673b3c4c86d7a37c57555a3a 100644 (file)
@@ -38,7 +38,7 @@ enum ccdc_sample_line {
        CCDC_SAMPLE_16LINES
 };
 
-/* enum for Alaw gama width */
+/* enum for Alaw gamma width */
 enum ccdc_gamma_width {
        CCDC_GAMMA_BITS_13_4,
        CCDC_GAMMA_BITS_12_3,
@@ -97,8 +97,8 @@ enum ccdc_mfilt2 {
 struct ccdc_a_law {
        /* Enable/disable A-Law */
        unsigned char enable;
-       /* Gama Width Input */
-       enum ccdc_gamma_width gama_wd;
+       /* Gamma Width Input */
+       enum ccdc_gamma_width gamma_wd;
 };
 
 /* structure for Black Clamping */