Commit d165ce8d authored by Martin Kepplinger's avatar Martin Kepplinger Committed by Dorota Czaplejewicz
Browse files

hi846: remove some debug prints

parent 5168a575
......@@ -846,12 +846,10 @@ static int hi846_set_ctrl(struct v4l2_ctrl *ctrl)
switch (ctrl->id) {
case V4L2_CID_ANALOGUE_GAIN:
dev_dbg(&client->dev, "%s: V4L2_CID_ANALOGUE_GAIN\n", __func__);
ret = hi846_write_reg(hi846, HI846_REG_ANALOG_GAIN, ctrl->val);
break;
case V4L2_CID_DIGITAL_GAIN:
dev_dbg(&client->dev, "%s: V4L2_CID_DIGITAL_GAIN\n", __func__);
ret = hi846_update_digital_gain(hi846, ctrl->val);
break;
......@@ -859,12 +857,7 @@ static int hi846_set_ctrl(struct v4l2_ctrl *ctrl)
shutter = ctrl->val;
frame_len = hi846->cur_mode->frame_len;
dev_dbg(&client->dev, "%s: V4L2_CID_EXPOSURE: writing %d\n",
__func__, shutter);
if (shutter > frame_len - 6) { /* margin */
dev_dbg(&client->dev, "SHUTTER > FRAME_LENGTH %d - 6\n",
frame_len);
frame_len = shutter + 6;
if (frame_len > 0xffff) { /* max frame len */
frame_len = 0xffff;
......@@ -883,9 +876,6 @@ static int hi846_set_ctrl(struct v4l2_ctrl *ctrl)
break;
case V4L2_CID_VBLANK:
dev_dbg(&client->dev, "%s: V4L2_CID_VBLANK: writing %d+%d\n",
__func__,
hi846->cur_mode->height, ctrl->val);
/* Update FLL that meets expected vertical blanking */
ret = hi846_write_reg_16(hi846, HI846_REG_FLL,
hi846->cur_mode->height + ctrl->val);
......@@ -1092,8 +1082,6 @@ static void hi846_stop_streaming(struct hi846 *hi846)
{
struct i2c_client *client = v4l2_get_subdevdata(&hi846->sd);
dev_dbg(&client->dev, "%s\n", __func__);
if (hi846_write_reg(hi846, HI846_REG_MODE_SELECT, HI846_MODE_STANDBY))
dev_err(&client->dev, "failed to stop stream");
......@@ -1106,8 +1094,6 @@ static int hi846_set_stream(struct v4l2_subdev *sd, int enable)
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret = 0;
dev_dbg(&client->dev, "%s\n", __func__);
if (hi846->streaming == enable)
return 0;
......@@ -1163,8 +1149,6 @@ static int __maybe_unused hi846_suspend(struct device *dev)
struct v4l2_subdev *sd = i2c_get_clientdata(client);
struct hi846 *hi846 = to_hi846(sd);
dev_dbg(dev, "%s\n", __func__);
if (hi846->streaming)
hi846_stop_streaming(hi846);
......@@ -1183,8 +1167,6 @@ static int __maybe_unused hi846_resume(struct device *dev)
struct hi846 *hi846 = to_hi846(sd);
int ret;
dev_dbg(dev, "%s\n", __func__);
ret = hi846_regulator_enable(hi846);
if (ret) {
dev_err(dev, "enable regulator failed: %d\n", ret);
......@@ -1230,7 +1212,6 @@ static int hi846_set_format(struct v4l2_subdev *sd,
u32 tgt_fps;
s32 vblank_def, h_blank;
dev_dbg(&client->dev, "------------ starting %s ---------\n", __func__);
if (!fmt) {
mf->code = hi846_colour_fmts[0].code;
mf->colorspace = hi846_colour_fmts[0].colorspace;
......@@ -1287,8 +1268,6 @@ static int hi846_set_format(struct v4l2_subdev *sd,
mf->width, mf->height,
fmt->code, fmt->colorspace);
dev_dbg(&client->dev, "--------------------------------------------\n");
mutex_unlock(&hi846->mutex);
return 0;
......@@ -1312,8 +1291,6 @@ static int hi846_get_format(struct v4l2_subdev *sd,
return 0;
}
dev_dbg(&client->dev, "hi846: starting %s\n", __func__);
mutex_lock(&hi846->mutex);
mf->code = HI846_MEDIA_BUS_FORMAT;
mf->colorspace = V4L2_COLORSPACE_RAW;
......@@ -1346,8 +1323,6 @@ static int hi846_enum_frame_size(struct v4l2_subdev *sd,
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
dev_dbg(&client->dev, "%s frame size index: %d\n", __func__, fse->index);
if (fse->pad || fse->index >= ARRAY_SIZE(supported_modes))
return -EINVAL;
......@@ -1393,9 +1368,6 @@ static int hi846_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
{
struct hi846 *hi846 = to_hi846(sd);
struct v4l2_mbus_framefmt *mf;
struct i2c_client *client = v4l2_get_subdevdata(sd);
dev_dbg(&client->dev, "%s: starting\n", __func__);
mf = v4l2_subdev_get_try_format(sd, fh->pad, 0);
......
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