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: 11023867 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 EFF2F1398 for ; Sat, 29 Jun 2019 12:14:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E02A02881E for ; Sat, 29 Jun 2019 12:14:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D34DA28825; Sat, 29 Jun 2019 12:14:37 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11AE82881E for ; Sat, 29 Jun 2019 12:14:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727038AbfF2MOe (ORCPT ); Sat, 29 Jun 2019 08:14:34 -0400 Received: from mout.gmx.net ([212.227.17.21]:55987 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbfF2MOd (ORCPT ); Sat, 29 Jun 2019 08:14:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1561810448; bh=sawqClbmwzP8gOS82jsaIvyieT/CKO+qLtFgq4B5t5w=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QfI4dNZW4xwaLkIHUFAtaoI9avbKQSmL8ZK3VHmFNVb+NBg9F0ZbZqWe06CP63sC5 /OI2FIZVwKLUGJ3uMgooY5kSvMHkkENz5DwFjwhQGNL0+VG3ryQSj9JGahEBJ29d9U dqHq0Q1/kOTQOUPCIrIcmbhqWNZtRLRtFWjM8xnw= 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 Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-media@vger.kernel.org, Stefan Wahren 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:F0c2/fsffzY=:T+2/Ooa//clQAoTZkRKW5d PL8T3lXqlO1H68AesSW32TSfbl5ldcK7O0yNWeB7quuDpI+0TOIhquBUb80FyYUj/wWmZIz1q SzmcH34NUiVTpVOs/62j0K4U+Prl/4Nen0TYY6kQxSmFswsD3+pYwp+zMJYyipHtAYSm/MCAU v/XPTpiXNh28Yd9xHYQOTWWnsauZx55hG51bfKnbD0+qZp0ahE2Xb7PATrCaHsvt8yT7xE3Mx U+4/p7NtTivJhRJcoDkRny6DLtbCJHq9Z3erdPR7kONCybZC/PDKAMhIzCMcSkfm59tUqBMPa pX/8f8LL4y7AiliN/QqwF2SA4erg2cFrEq4i2Jdu/fwFjKPHbQP7Ndu0XJ6lXCAqzKL3WoF8z yfv0hI+4jF7T9GJfIyhltvY2th8/oDAB9XvGzyZRQj7nmlflF2QF5VY6BgQWwdtgxWrU+MDf+ O/lyDEG3pAHOHA7G9WD7ZgVjs3aQbVDzK8Orq5XvAv8sXCADqPCR91p1omfkqYd3+OpXJ+WiP bivf2skeYQQC6hVaoqrzKdc3G+l0vLZLhaxlmljm+A6XqLh7zOtHKlYgM//sFwGBfCwXPpKDP LqGha+j2Im9dDDAz+p3/OhANHg+9wqbUMQz6Iv+n3d52Pnz4GRb4UvDgS/QUwLXxobEXojQVd GYTtHlqQxSIiLZRqMzsWObocvYnaRC6OD/BiBlnybMNBruNpHsFNOQDYc2JyPW5bY611zTJlT JMVIQ3/1GiYQ3xqThG01xLRCc0A+f1koLNqXDyRcH7Svk56YshijA9+1J1i2zeEIWVWdw1aGO YOMA4sLocLh9vPwgiN5s5aeVYqUoBrPVwRktkZH07COMAmx4lqcm/htRPz6hjD88jCDhSXGn1 lQPBxfU60di3Wly1TMwIh/IqxQFiKNr/WZsLo+MfstUCRoF4QE/meehjC58FhPKYE0iZjVeOT sLY5TQB9MomFcPThwBzBj/lp98D6L3g2SStfEk/cWNyulUzNAItF1Dfb9yO6nzCIb9XfKH1sN 55a+BUfuMtUxwPH/3CL+VH8BWAqcKil/xCMXnglcRSzsIVeZtu7AQGWnfhxBj9UOsaMoU6/6I KdvW3tKtw41AN0= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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 {