Commit 3cd0d092 authored by Varsha Rao's avatar Varsha Rao Committed by Greg Kroah-Hartman

staging: media: atomisp: Fix block comments warning.

Use kernel preferred block commenting style, to fix the checkpatch
issue.
Signed-off-by: default avatarVarsha Rao <rvarsha016@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 217fa187
...@@ -21,8 +21,7 @@ ...@@ -21,8 +21,7 @@
#define INEFFECTIVE_VAL 4096 #define INEFFECTIVE_VAL 4096
#define BASIC_VAL 819 #define BASIC_VAL 819
/*Default configuration of parameters for Ctc2 /*Default configuration of parameters for Ctc2*/
*/
const struct ia_css_ctc2_config default_ctc2_config = { const struct ia_css_ctc2_config default_ctc2_config = {
INEFFECTIVE_VAL, INEFFECTIVE_VAL, INEFFECTIVE_VAL, INEFFECTIVE_VAL, INEFFECTIVE_VAL, INEFFECTIVE_VAL,
INEFFECTIVE_VAL, INEFFECTIVE_VAL, INEFFECTIVE_VAL, INEFFECTIVE_VAL, INEFFECTIVE_VAL, INEFFECTIVE_VAL,
......
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
#define XNR_MAX_ALPHA ((1 << (ISP_VEC_ELEMBITS - 1)) - 1) #define XNR_MAX_ALPHA ((1 << (ISP_VEC_ELEMBITS - 1)) - 1)
/* Minimum value for sigma on host interface. Lower values translate to /* Minimum value for sigma on host interface. Lower values translate to
* max_alpha. */ * max_alpha.
*/
#define XNR_MIN_SIGMA (IA_CSS_XNR3_SIGMA_SCALE / 100) #define XNR_MIN_SIGMA (IA_CSS_XNR3_SIGMA_SCALE / 100)
/* /*
...@@ -118,7 +119,8 @@ compute_coring(int coring) ...@@ -118,7 +119,8 @@ compute_coring(int coring)
int32_t offset = host_scale / 2; /* fixed-point 0.5 */ int32_t offset = host_scale / 2; /* fixed-point 0.5 */
/* Convert from public host-side scale factor to isp-side scale /* Convert from public host-side scale factor to isp-side scale
* factor. Clip to [0, isp_scale-1). */ * factor. Clip to [0, isp_scale-1).
*/
isp_coring = ((coring * isp_scale) + offset) / host_scale; isp_coring = ((coring * isp_scale) + offset) / host_scale;
return min(max(isp_coring, 0), isp_scale - 1); return min(max(isp_coring, 0), isp_scale - 1);
} }
...@@ -138,7 +140,8 @@ compute_blending(int strength) ...@@ -138,7 +140,8 @@ compute_blending(int strength)
/* Convert from public host-side scale factor to isp-side scale /* Convert from public host-side scale factor to isp-side scale
* factor. The blending factor is positive on the host side, but * factor. The blending factor is positive on the host side, but
* negative on the ISP side because +1.0 cannot be represented * negative on the ISP side because +1.0 cannot be represented
* exactly as s0.11 fixed point, but -1.0 can. */ * exactly as s0.11 fixed point, but -1.0 can.
*/
isp_strength = -(((strength * isp_scale) + offset) / host_scale); isp_strength = -(((strength * isp_scale) + offset) / host_scale);
return max(min(isp_strength, 0), -XNR_BLENDING_SCALE_FACTOR); return max(min(isp_strength, 0), -XNR_BLENDING_SCALE_FACTOR);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment