const int max_slope = (1 << IA_CSS_CTC_COEF_SHIFT) - 1;
int dy = y1 - y0;
int dx = x1 - x0;
- int rounding = (dx+1) >> 1;
+ int rounding = (dx + 1) >> 1;
int dy_shift = dy << shift_val;
int slope, dydx;
to->y_y[0][(i << shffl_blck) + 4] = from->y_y4;
to->e_y_slope[0][(i << shffl_blck)] = dydx0;
- to->e_y_slope[0][(i << shffl_blck) +1] = dydx1;
- to->e_y_slope[0][(i << shffl_blck) +2] = dydx2;
- to->e_y_slope[0][(i << shffl_blck) +3] = dydx3;
- to->e_y_slope[0][(i << shffl_blck) +4] = dydx4;
+ to->e_y_slope[0][(i << shffl_blck) + 1] = dydx1;
+ to->e_y_slope[0][(i << shffl_blck) + 2] = dydx2;
+ to->e_y_slope[0][(i << shffl_blck) + 3] = dydx3;
+ to->e_y_slope[0][(i << shffl_blck) + 4] = dydx4;
for (j = 0; j < lenght_zeros; j++) {
- to->y_x[0][(i << shffl_blck)+ 5 + j] = 0;
- to->y_y[0][(i << shffl_blck)+ 5 + j] = 0;
+ to->y_x[0][(i << shffl_blck) + 5 + j] = 0;
+ to->y_y[0][(i << shffl_blck) + 5 + j] = 0;
to->e_y_slope[0][(i << shffl_blck)+ 5 + j] = 0;
}
}
#include "ia_css_xnr3.host.h"
/* Maximum value for alpha on ISP interface */
-#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
* max_alpha. */
#if defined(XNR_ATE_ROUNDING_BUG)
int32_t alpha_unscaled;
#else
- int offset = sigma/2;
+ int offset = sigma / 2;
#endif
if (sigma < XNR_MIN_SIGMA) {
alpha = XNR_MAX_ALPHA;
for (j = 1; j < XNR3_LOOK_UP_TABLE_POINTS; j++) {
assert(x[j] >= 0);
- assert(x[j] > x[j-1]);
+ assert(x[j] > x[j - 1]);
}
PMIC_CRYSTALCOVE } pmic_id;
/* The atomisp uses type==0 for the end-of-list marker, so leave space. */
-static struct intel_v4l2_subdev_table pdata_subdevs[MAX_SUBDEVS+1];
+static struct intel_v4l2_subdev_table pdata_subdevs[MAX_SUBDEVS + 1];
static const struct atomisp_platform_data pdata = {
.subdevs = pdata_subdevs,
else
ret = snprintf(var8, sizeof(var8), "gmin_%s", var);
- if (ret < 0 || ret >= sizeof(var8)-1)
+ if (ret < 0 || ret >= sizeof(var8) - 1)
return -EINVAL;
/* First check a hard-coded list of board-specific variables.
if (strcmp(var8, gv->name))
continue;
- if (vl > *out_len-1)
+ if (vl > *out_len - 1)
return -ENOSPC;
memcpy(out, gv->val, min(*out_len, vl+1));