Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1553897ybt; Thu, 25 Jun 2020 08:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzzjfQPUvsapzwX9URVBi5kaVR22NVV3vn9+univ3TNqZGS1dmlg+fNE+MsFRWZTgpve57 X-Received: by 2002:a05:6402:1d10:: with SMTP id dg16mr32046994edb.309.1593099477496; Thu, 25 Jun 2020 08:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593099477; cv=none; d=google.com; s=arc-20160816; b=Akz49koiqjHVYEEuKkgcnIBMTBni9LiS8OTo91PR4LjLeeef+ID/0fSDoKWW1qvucR 8QJqyHhUq/OiwUMr1aQnqFBNkTY/8d3BmcsKChwbVO7dmNqst1YNphmlOil5crGw82q6 bZleFsHG5ql10c/NMquBVp4L9ydg2F5IzcWfMa9Ec75QT1dhvCk7sMZE7sTgojKqXxcn Id5VG/pS2uqoHuS1stzLRlpTMPV/9a1oEU/yDZ5BywZVdFIkFQz3i7/LwHaxhpTYqAM8 acJ8w3lZ/1y/mZDmWMEihlxO5H4qkVFOi17jqpkNxI2Tqedohs/Z+hHHDtXe3HsZ2JI4 BYjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:date:from:dkim-signature; bh=x5rltbZgoac+dXb+DOgX5rzO4ebpNO9QKIAaqizWabE=; b=R3TNhjBosHTXrZxKLE3evgNrQ0Whr69fMZWrxQWoCLquUifPW92s2EKSk1yKDbPWJM wNX0R4l4pOl3e3PPrhKtix6UNvZ7jjgB/+9V8khtn2CUwWt0fjt4onNHwgm8HBhSKar3 q+cxz8/uJkI1udDeSh2njd5iLbXnYSiPhwvoGVkcyoDWhjxLLoMUJVNNcNxSOCa9A0hP i/bYoiU/EQGPveTEX6zxYfz2rqfDfkDrcJlwCJfAQxS1SHgXOFwZa9la2yQ5aCvD1E4W R684Nui1SwX31uAgmDuTQEZOgX0wi4iLNL7wg/ua05uzD0Mbbbj/nr6lIR9bOrXJ7bdv GpOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pesu-pes-edu.20150623.gappssmtp.com header.s=20150623 header.b=1YlTo2+H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pes.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh2si6191158edb.55.2020.06.25.08.37.33; Thu, 25 Jun 2020 08:37:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pesu-pes-edu.20150623.gappssmtp.com header.s=20150623 header.b=1YlTo2+H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pes.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405815AbgFYPf1 (ORCPT + 99 others); Thu, 25 Jun 2020 11:35:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405394AbgFYPf0 (ORCPT ); Thu, 25 Jun 2020 11:35:26 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A28FBC08C5C1 for ; Thu, 25 Jun 2020 08:35:26 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id p3so3463747pgh.3 for ; Thu, 25 Jun 2020 08:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pesu-pes-edu.20150623.gappssmtp.com; s=20150623; h=from:date:to:subject:message-id:mime-version:content-disposition :user-agent; bh=x5rltbZgoac+dXb+DOgX5rzO4ebpNO9QKIAaqizWabE=; b=1YlTo2+HW3hy9QDNoY9ia6mxIaKs0Lmc62+aANLbGds86ssI1gK73TAkjnObtlBJ59 s8tgqw+IHZmO4qHNdku31gfctjoCG5Gay5R6e6iJBbVX2prZ4X3MkQ6ikPMCmFN7XUoy x9qVWk2zDe3W1xy3riTJGueSp06DeMbd1gO9BSdpWMz4bVFwpOIZDqnWqK4JL0q+GzdZ KRhVDKUnjRhRr1ylDZkZa4Z4gWB91Hs1nJHHBLX0yseO1KI6Y6lqRo8NV+d8D263DsMT EfJF8tjhRDmqoTP6ruWR0N2/Skk18+JZ2M/0HoqI3Hxf4eS8k40ZrADS7BacuDQg2uiz rc8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mime-version :content-disposition:user-agent; bh=x5rltbZgoac+dXb+DOgX5rzO4ebpNO9QKIAaqizWabE=; b=D4tf90fqyg36CrhV5VqoigAWahU72I7vDtwmkD/dp6mVSah2zfDEuwMbxJ+gILBsDw yHnkRvouVEiVRsWoQsBbD9gaMRKSRKbg7rbYaA2GlGUCBr8AZT7a5a78zkNbeZ92lsf0 G8q+Nj/wdy89hYgSazWe7+ZK3YEEhyFZRD22A4+1BiyU9dlsb7zlNTwTyYIFQx2xZSuG X7p1ATm9tGtHxCMXLTNX0pkSutiuyh1FKK6gyUWZvgj/XgacCngw0MsN4RCkcWhZiKjX eQwddx4pZlYNBj7SUWPWmhKN84Z8AxiaBeO7AvTH3+HdUh2tJLDDlH2HHDEB4bd4KVvL pFtA== X-Gm-Message-State: AOAM532JIv/LcKp6rA+7jUKU8wEEihBlpKAkKcC6MEiwdggTiDRWylMd I/WR0IrD1gxLMWe8oH38rSVUgw== X-Received: by 2002:aa7:84cc:: with SMTP id x12mr33886230pfn.235.1593099325951; Thu, 25 Jun 2020 08:35:25 -0700 (PDT) Received: from localhost ([2406:7400:73:51e4:908:f18a:1156:5c38]) by smtp.gmail.com with ESMTPSA id o1sm8649025pjp.37.2020.06.25.08.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 08:35:24 -0700 (PDT) From: B K Karthik X-Google-Original-From: B K Karthik Date: Thu, 25 Jun 2020 11:35:17 -0400 To: Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Laurent Pinchart , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] staging: media: soc_camera: Adding parentheses to macro defination at line 241, Clearing alignment issues at lines 410 and 1270, fixing return values at EPOLLERR Message-ID: <20200625153516.fibpfsodnogrimlh@pesu-pes-edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fhzbuehlmb54oq5j" Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fhzbuehlmb54oq5j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable staging: media: soc_camera: soc_camera.c: Clearing coding-style problem "Macros with complex values should be enclosed in parentheses" in line 241 = by adding parentheses. staging: media: soc_camera: soc_camera.c: Clearing coding-style problem "Alignment should match open parenthesis" by adding tab spaces in line 410. staging: media: soc_camera: soc_camera.c: Clearing coding-style problem "return of an errno should typically be negative" by adding a "-" in front = of EPOLLER in line 812. staging: media: soc_camera: soc_camera.c: Clearing coding-style problem "Alignment should match open parenthesis" by adding tab spaces in line 1270. Signed-off-by: B K Karthik --- drivers/staging/media/soc_camera/soc_camera.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/media/soc_camera/soc_camera.c b/drivers/stagin= g/media/soc_camera/soc_camera.c index 39f513f69b89..66a14ebd8093 100644 --- a/drivers/staging/media/soc_camera/soc_camera.c +++ b/drivers/staging/media/soc_camera/soc_camera.c @@ -238,8 +238,8 @@ unsigned long soc_camera_apply_board_flags(struct soc_c= amera_subdev_desc *ssdd, } EXPORT_SYMBOL(soc_camera_apply_board_flags); =20 -#define pixfmtstr(x) (x) & 0xff, ((x) >> 8) & 0xff, ((x) >> 16) & 0xff, \ - ((x) >> 24) & 0xff +#define pixfmtstr(x) ((x) & 0xff, ((x) >> 8) & 0xff, ((x) >> 16) & 0xff, \ + ((x) >> 24) & 0xff) =20 static int soc_camera_try_fmt(struct soc_camera_device *icd, struct v4l2_format *f) @@ -407,7 +407,7 @@ static int soc_camera_dqbuf(struct file *file, void *pr= iv, } =20 static int soc_camera_create_bufs(struct file *file, void *priv, - struct v4l2_create_buffers *create) + struct v4l2_create_buffers *create) { struct soc_camera_device *icd =3D file->private_data; int ret; @@ -806,10 +806,10 @@ static __poll_t soc_camera_poll(struct file *file, po= ll_table *pt) { struct soc_camera_device *icd =3D file->private_data; struct soc_camera_host *ici =3D to_soc_camera_host(icd->parent); - __poll_t res =3D EPOLLERR; + __poll_t res =3D -EPOLLERR; =20 if (icd->streamer !=3D file) - return EPOLLERR; + return -EPOLLERR; =20 mutex_lock(&ici->host_lock); res =3D ici->ops->poll(file, pt); @@ -1267,7 +1267,7 @@ static int soc_camera_i2c_init(struct soc_camera_devi= ce *icd, } =20 subdev =3D v4l2_i2c_new_subdev_board(&ici->v4l2_dev, adap, - shd->board_info, NULL); + shd->board_info, NULL); if (!subdev) { ret =3D -ENODEV; goto ei2cnd; --=20 2.20.1 --fhzbuehlmb54oq5j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEEpIrzAt4LvWLJmKjp471Q5AHeZ2oFAl70xDQACgkQ471Q5AHe Z2oZlAv/bmnvULtnv3yC5oXsH9CF4NejDM305ZbwMYLCm0k5INVKHk2hgumFNw/v mHDKoKT+D7vujqhWAlVh/l996TVlIbTAntl2W76FoJ0xBsZ4C4Qczn0GOKpDE08N kQKuqtUCRv1Cb9Uz+e8yJJJ68O3Lhhb82NKEc9oI5YzwfC1sge97L05xcAmHqGRn lkl2aNouT4hAm03kIl0aSM8mT3Ik3lkECcT9tncwaSa9iHwxXI/XW8B9yZaXDvDA HEIJjpHHqtii5srCdxkQn8MR5cvYOWvocxx6leyqZrq3lo6bPJpIT4+zwqanKFPM jl2VHSqHO7h/3nS04NVnUrS0ONon8REFoIU5iKLlN0lnwL1XY+XHNqNlbqpknb8s /6+ah50oOevSmjjMGXE19JSr46GRgaDcSYcbV9ODQFziFtr3U40j7BssOqveWVDw bXojJE1ObgFwcq7OjXJhKIy+OsjJf0Rp195iIVpWmrudGb670/sIQdaAXo/H4ocn DyfxNma/ =OdLO -----END PGP SIGNATURE----- --fhzbuehlmb54oq5j--