From patchwork Sat Jun 29 12:13:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 11023903 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD09E138D for ; Sat, 29 Jun 2019 12:20:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCDDA20072 for ; Sat, 29 Jun 2019 12:20:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C07B82869F; Sat, 29 Jun 2019 12:20:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1DAC620072 for ; Sat, 29 Jun 2019 12:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RJ+2+WoZPhC9DTEngjzLt9ltMeB7HdNUXuxZ+qN1LR0=; b=Q9gekf0AXGbRjYgtZKtjqdTo+9 DA8IzlnQalXhY0hqOP4fFxcczxk+UqH2ozsIUQyKyGKgN35jSVre0pqAWhIlwFlM/XIOlE2QJmF7Y GWhoEKy+/JIYnfHRKXFqpWc1oasaLZxTLP/zFSw5KtkaNqtIvIWasoIzGu3Wn95///ES8uOrueI+a zx0t3M1iceZ8I4IgynbV7ET6kXa0XTDq8tFFf8++6FnfTzCAcBV4DvHFUh/b3QMe8WCoF9JF6WoEj /kGZQ8KkDQUl+3qqzhMaAZjRCxgN7BGI0WbdC2wJ2w9uyoK2rxjyvwvQWM57sJ7mmWrmmcdI+8T4H tSCwB3tw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hhCLT-0005NP-AY; Sat, 29 Jun 2019 12:20:43 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hhCKe-0003cE-7T for linux-arm-kernel@lists.infradead.org; Sat, 29 Jun 2019 12:19:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1561810790; bh=sawqClbmwzP8gOS82jsaIvyieT/CKO+qLtFgq4B5t5w=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BZxXCtepAZS1m1LCs6jSwauClOFGmrga73cxa8Aae75yt3BrnNjLzhNl8+4/HmjXW SGIru2YvaimnXNAzPpAywqmI0LKoQ3W/szxJ0HjRfeNUCq3rJMcKI/BK/BF38vLj07 bnbLsIQ3LFSYcFyrkGgwzK3Z3H1GrQZErrJPE4C0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([37.4.249.111]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MMkgl-1hd3dw48TP-008WkP; Sat, 29 Jun 2019 14:14:08 +0200 From: Stefan Wahren To: Eric Anholt , Greg Kroah-Hartman , Dave Stevenson , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH V2 08/29] staging: bcm2835-camera: Fix spacing around operators Date: Sat, 29 Jun 2019 14:13:23 +0200 Message-Id: <1561810410-8829-9-git-send-email-wahrenst@gmx.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561810410-8829-1-git-send-email-wahrenst@gmx.net> References: <1561810410-8829-1-git-send-email-wahrenst@gmx.net> X-Provags-ID: V03:K1:uZlFCPIvwSrwoy1+6SmtOF/rdR78jw0SmsjXI8sYKvrfE3z+oes Xj/6YtX/idHia93ZrvoMnttlVTmSUt1DBmvmLpFN7ga4dGlwlkhehguKQ7m9FHDyEXxJSqz +LGBlbQ+DlJ3vdBF2L4pwIu6iohCgU5mhXV9IJx3DaucGCyDYVQOxrb5gxtK/P5xCLx1O+/ biVMshJADUxXkuEAQWNHQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:5bv0E9Fj+n8=:kGvgDtW5oNgqv2hXOhxvT8 xRFFjTbTfVZFdYkn36huZOt9FWY7wwFhq0bUtnUWb99RYHyNHbyD2UTiKmA50d8O9FR3a7WtU spxS4fHYZ9dnC8tlWB4AJbh93eQQGh8V6E02CPidT3hPQssEgRMTOJcwCM5lyy12T1o4kVxOf 0qzDvV2QsMP/ZdkPrhYp4wevyt80xHQKCGKFJSoW5Mf2k5BTySZy33ZeAp2J8PJDmd7xJrPQH eFr4iaGgEI27zTE0LWZZvdHF1j0ts8FqVHT//gs1kcYIbAn5UZiGI/yVh76XKwJldaEmxiTaX dZ3kOMBU/OP9UnveiPuyg8ulxzp6d7/Jb1+cHChPE1DgC0O6EoJj4pLxJtSYmmIkHLOW0ar+U Ol7KGywkITyXXg5l86Zdz7jhsNI5ES11nH2NFSPs5hcdO//AqynlmiIKeoffiRHA8eHFBUJUH jrvz27l2kD3CkwFDAT6DTaLnL5MZcJTbjY86TC0DqMqmITP8Pe/J4+hu5y26yl0iEp+EYel4W mlsIlXMP8AqLbMe9vGKGWk3P16Oys7wLneHZDMrq+0wpmRQQ4hJXM+DGvJJlG3KH+Y7X11NX5 oOJclEYmkh+HAXWifz5WjyYk0BActf9Vui6SeZVrbVPjIKJjE/8wI0LJ41nS16wlK5se9DFJL NJJYgqGXj9ORdOlc3Ig8x+Owpdox8VMFRwA/XtY9Z5iVl5D7GSNCY4tPH9ds1+RK5fsuvpqWu p1r2D9mBu/9nwb9uUYLVagLltwXIytmYGJ3ZAwapVipp87aEsV058NIBpyG37XH96OwVmACP/ kIOeL0vqfL45CnIvRYazpfLfiN/Jl9seYFiOHdLHaLhgD3yVezMFAIQlkCJVNuj4hTp3Zl7cg fzdYonFwghzSkMVLXo0oGvhWuW2fuS6FDCJSYub/mQtgk23TXTuN9P3X9g8XsY89pZwdlJK4L 9SWB6fGTzPofyIFjLyfVnqOKH4hLE5vP+mxflXGn6XcvWIc6qGG3OlFcClRjPKilWyyHR20qn xymykVFScDl+dMrPc+w6DFaoFBIy9l+rIt0QWp2WdFSiLwRMG78ql5gS8x/uTdanoyDHuh9iJ jd0QyS9kpPdogs= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190629_051952_563550_0944ECA3 X-CRM114-Status: GOOD ( 11.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, Stefan Wahren , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dave Stevenson Fix checkpatch warnings over spaces around operators. Many were around operations that can be replaced with the BIT(x) macro, so replace with that where appropriate. Signed-off-by: Dave Stevenson Signed-off-by: Stefan Wahren Acked-by: Hans Verkuil Acked-by: Mauro Carvalho Chehab --- .../vc04_services/bcm2835-camera/controls.c | 32 +++++++++++----------- .../vc04_services/bcm2835-camera/mmal-msg.h | 3 +- .../vc04_services/bcm2835-camera/mmal-parameters.h | 12 ++++---- 3 files changed, 24 insertions(+), 23 deletions(-) -- 2.7.4 diff --git a/drivers/staging/vc04_services/bcm2835-camera/controls.c b/drivers/staging/vc04_services/bcm2835-camera/controls.c index b142130..e79e7cd 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c @@ -1130,10 +1130,10 @@ static const struct bm2835_mmal_v4l2_ctrl v4l2_ctrls[V4L2_CTRL_COUNT] = { { V4L2_CID_MPEG_VIDEO_H264_PROFILE, MMAL_CONTROL_TYPE_STD_MENU, - ~((1<1) */ #define MMAL_BUFFER_HEADER_FLAG_FRAME \ - (MMAL_BUFFER_HEADER_FLAG_FRAME_START|MMAL_BUFFER_HEADER_FLAG_FRAME_END) + (MMAL_BUFFER_HEADER_FLAG_FRAME_START | \ + MMAL_BUFFER_HEADER_FLAG_FRAME_END) /* Signals that the current payload is a keyframe (i.e. self decodable) */ #define MMAL_BUFFER_HEADER_FLAG_KEYFRAME BIT(3) /* diff --git a/drivers/staging/vc04_services/bcm2835-camera/mmal-parameters.h b/drivers/staging/vc04_services/bcm2835-camera/mmal-parameters.h index 96e987d..6d21594 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/mmal-parameters.h +++ b/drivers/staging/vc04_services/bcm2835-camera/mmal-parameters.h @@ -23,17 +23,17 @@ #define __MMAL_PARAMETERS_H /** Common parameter ID group, used with many types of component. */ -#define MMAL_PARAMETER_GROUP_COMMON (0<<16) +#define MMAL_PARAMETER_GROUP_COMMON (0 << 16) /** Camera-specific parameter ID group. */ -#define MMAL_PARAMETER_GROUP_CAMERA (1<<16) +#define MMAL_PARAMETER_GROUP_CAMERA (1 << 16) /** Video-specific parameter ID group. */ -#define MMAL_PARAMETER_GROUP_VIDEO (2<<16) +#define MMAL_PARAMETER_GROUP_VIDEO (2 << 16) /** Audio-specific parameter ID group. */ -#define MMAL_PARAMETER_GROUP_AUDIO (3<<16) +#define MMAL_PARAMETER_GROUP_AUDIO (3 << 16) /** Clock-specific parameter ID group. */ -#define MMAL_PARAMETER_GROUP_CLOCK (4<<16) +#define MMAL_PARAMETER_GROUP_CLOCK (4 << 16) /** Miracast-specific parameter ID group. */ -#define MMAL_PARAMETER_GROUP_MIRACAST (5<<16) +#define MMAL_PARAMETER_GROUP_MIRACAST (5 << 16) /* Common parameters */ enum mmal_parameter_common_type {