media: i2c: sensor adapter fixed get_selection bug

Fixed: 0ea608c ("media: i2c: sensor adapter fixed get_selection error")

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie84a776f6b02d56014ae706e3e72af8e1ffa74ed
This commit is contained in:
Zefa Chen
2022-04-13 15:51:45 +08:00
committed by Tao Huang
parent 21225a4a1e
commit b3a6efd40f

View File

@@ -1045,8 +1045,8 @@ static int sensor_get_selection(struct v4l2_subdev *sd,
sensor->crop.top, sensor->crop.height);
} else {
sel->r.left = 0;
sel->r.width = 0;
sel->r.top = sensor->cur_mode->width;
sel->r.width = sensor->cur_mode->width;
sel->r.top = 0;
sel->r.height = sensor->cur_mode->height;
}
return 0;