drivers/media/i2c/ov8865.c:2799 ov8865_get_selection() warn: inconsistent indenting

From: kernel test robot
Date: Tue Jan 18 2022 - 10:49:04 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fe81ba137ebcc7f236780996a0b375732c07e85c
commit: acd25e220921de232b027c677668c93aa6ba5d15 media: i2c: Add .get_selection() support to ov8865
date: 7 weeks ago
config: x86_64-randconfig-m001-20220117 (https://download.01.org/0day-ci/archive/20220118/202201182306.qGenOYaU-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

smatch warnings:
drivers/media/i2c/ov8865.c:2799 ov8865_get_selection() warn: inconsistent indenting

vim +2799 drivers/media/i2c/ov8865.c

2787
2788 static int ov8865_get_selection(struct v4l2_subdev *subdev,
2789 struct v4l2_subdev_state *state,
2790 struct v4l2_subdev_selection *sel)
2791 {
2792 struct ov8865_sensor *sensor = ov8865_subdev_sensor(subdev);
2793
2794 switch (sel->target) {
2795 case V4L2_SEL_TGT_CROP:
2796 mutex_lock(&sensor->mutex);
2797 __ov8865_get_pad_crop(sensor, state, sel->pad,
2798 sel->which, &sel->r);
> 2799 mutex_unlock(&sensor->mutex);
2800 break;
2801 case V4L2_SEL_TGT_NATIVE_SIZE:
2802 sel->r.top = 0;
2803 sel->r.left = 0;
2804 sel->r.width = OV8865_NATIVE_WIDTH;
2805 sel->r.height = OV8865_NATIVE_HEIGHT;
2806 break;
2807 case V4L2_SEL_TGT_CROP_BOUNDS:
2808 case V4L2_SEL_TGT_CROP_DEFAULT:
2809 sel->r.top = OV8865_ACTIVE_START_TOP;
2810 sel->r.left = OV8865_ACTIVE_START_LEFT;
2811 sel->r.width = OV8865_ACTIVE_WIDTH;
2812 sel->r.height = OV8865_ACTIVE_HEIGHT;
2813 break;
2814 default:
2815 return -EINVAL;
2816 }
2817
2818 return 0;
2819 }
2820

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx