All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/media/i2c/ov8865.c:2799 ov8865_get_selection() warn: inconsistent indenting
@ 2022-01-18 15:48 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-18 15:48 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1924 bytes --]

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(a)intel.com/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@intel.com>

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(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/media/i2c/ov8865.c:2799 ov8865_get_selection() warn: inconsistent indenting
@ 2022-01-18 15:48 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-18 15:48 UTC (permalink / raw)
  To: Daniel Scally
  Cc: kbuild-all, linux-kernel, Mauro Carvalho Chehab, linux-media,
	Sakari Ailus

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@intel.com/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@intel.com>

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@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-18 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-18 15:48 drivers/media/i2c/ov8865.c:2799 ov8865_get_selection() warn: inconsistent indenting kernel test robot
2022-01-18 15:48 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.