Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754276AbeAHRil (ORCPT + 1 other); Mon, 8 Jan 2018 12:38:41 -0500 Received: from mail.CARNet.hr ([161.53.123.6]:54828 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753920AbeAHRii (ORCPT ); Mon, 8 Jan 2018 12:38:38 -0500 From: Valentin Vidic To: Greg Kroah-Hartman Cc: Marcin Ciupak , =?UTF-8?q?Simon=20Sandstr=C3=B6m?= , Marcus Wolf , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Valentin Vidic Date: Mon, 8 Jan 2018 18:38:31 +0100 Message-Id: <20180108173831.19300-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.15.1 X-SA-Exim-Connect-IP: 2001:b68:ff:12:6af7:28ff:fed9:8491 Subject: [PATCH] staging: pi433: replace shifting with BIT macro X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Fixes checkpatch warnings: CHECK: Prefer using the BIT macro Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 960249c600a5..f56425ffbe90 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -54,7 +54,7 @@ #include "pi433_if.h" #include "rf69.h" -#define N_PI433_MINORS (1U << MINORBITS) /*32*/ /* ... up to 256 */ +#define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */ #define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */ #define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */ #define NUM_DIO 2 -- 2.15.1