struct s5p_mfc_buf_ctrl *buf_ctrl;
list_for_each_entry(buf_ctrl, head, list) {
- if ((buf_ctrl->id == id)) {
+ if (buf_ctrl->id == id) {
buf_ctrl->val = value;
mfc_debug(5, "++id: 0x%08x val: %d\n",
buf_ctrl->id, buf_ctrl->val);
.id = V4L2_CID_MPEG_MFC_GET_EXTRA_BUFFER_SIZE,
.type = V4L2_CTRL_TYPE_INTEGER,
.name = "Get extra buffer size",
- .minimum = 0,
- .maximum = (2 << 31) - 1,
+ .minimum = INT_MIN,
+ .maximum = INT_MAX,
.step = 1,
.default_value = 0,
},
struct s5p_mfc_buf_ctrl *buf_ctrl;
list_for_each_entry(buf_ctrl, head, list) {
- if ((buf_ctrl->id == id)) {
+ if (buf_ctrl->id == id) {
buf_ctrl->val = value;
mfc_debug(5, "++id: 0x%08x val: %d\n",
buf_ctrl->id, buf_ctrl->val);
MFC_WRITEL(value, S5P_FIMV_E_H264_NAL_CONTROL);
}
- if ((buf_ctrl->id == V4L2_CID_MPEG_MFC51_VIDEO_I_PERIOD_CH)) {
+ if (buf_ctrl->id == V4L2_CID_MPEG_MFC51_VIDEO_I_PERIOD_CH) {
value = MFC_READL(S5P_FIMV_E_GOP_CONFIG2);
buf_ctrl->old_val |= (value << 16) & 0x3FFF0000;
value &= ~(0x3FFF);