Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756703Ab3DXOyv (ORCPT ); Wed, 24 Apr 2013 10:54:51 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:48681 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752876Ab3DXOyt (ORCPT ); Wed, 24 Apr 2013 10:54:49 -0400 MIME-Version: 1.0 In-Reply-To: <20130418121637.GG27903@gmail.com> References: <1366279934-30761-1-git-send-email-lee.jones@linaro.org> <1366279934-30761-4-git-send-email-lee.jones@linaro.org> <20130418121637.GG27903@gmail.com> Date: Wed, 24 Apr 2013 16:54:49 +0200 Message-ID: Subject: Re: [PATCH 03/32 v2] dmaengine: ste_dma40: Use the BIT macro to replace ugly '(1 << x)'s From: Linus Walleij To: Lee Jones Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Arnd Bergmann , Linus WALLEIJ , Vinod Koul , Dan Williams , Per Forlin , Rabin Vincent Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1196 Lines: 37 On Thu, Apr 18, 2013 at 2:16 PM, Lee Jones wrote: > The aim is to make the code that little more readable. > > Cc: Vinod Koul > Cc: Dan Williams > Cc: Per Forlin > Cc: Rabin Vincent > Acked-by: Arnd Bergmann > Signed-off-by: Lee Jones > > diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c > index 3b83dee..ddf5ff1 100644 > --- a/drivers/dma/ste_dma40.c > +++ b/drivers/dma/ste_dma40.c > @@ -49,9 +49,9 @@ > #define MAX_LCLA_ALLOC_ATTEMPTS 256 > > /* Bit markings for allocation map */ > -#define D40_ALLOC_FREE (1 << 31) > -#define D40_ALLOC_PHY (1 << 30) > -#define D40_ALLOC_LOG_FREE 0 > +#define D40_ALLOC_FREE BIT(31) > +#define D40_ALLOC_PHY BIT(30) > +#define D40_ALLOC_LOG_FREE BIT(0) No. 0 != BIT(0) Please fix this... Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/