From patchwork Sat Oct 24 03:39:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 535358 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 98C25141316 for ; Sat, 24 Oct 2015 14:43:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C16814B795; Sat, 24 Oct 2015 05:41:50 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id maLfpVYbADIl; Sat, 24 Oct 2015 05:41:50 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7146A4B766; Sat, 24 Oct 2015 05:41:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 883594B622 for ; Sat, 24 Oct 2015 05:40:43 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BMcOED2CTrlO for ; Sat, 24 Oct 2015 05:40:43 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by theia.denx.de (Postfix) with ESMTPS id 2B09B4B70B for ; Sat, 24 Oct 2015 05:40:28 +0200 (CEST) Received: by pacfv9 with SMTP id fv9so140274310pac.3 for ; Fri, 23 Oct 2015 20:40:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lEpUVD1tfHD/AO17F6VEw5Rpkzk644umXfl8wkvl09M=; b=WtVRhhUeAWk1Bbt/b6v/pL0n1uJ1qCQz0He38HQoV+ONfK2ltMrhqgVig6IS5en+Gu Jv3wlotFDgAfflnB/qKtEaUiOl/WK2BRCXV29mrjzUk5+2hJZtXHW1Rd5sH/qnIjGN3Y O7RFKuWTvH+w+JcNEkJGHGnQSyj1dLmBlyG0SNYyh+xvlZ70bjyETKnejKHpZqplf5Ei Ikto6XkEYR4DgShS2NHngi1UNlIPI0gXbw8paFLExQkrjwgZPXEl/J+oXrzubZ+xoyvP UVjmRjO1N/JbPJKue9F4QkXbEi4usa1+OCCxgF+OodoTSNJP3BjtHoMuEq9189T2m5TP 4Vtw== X-Received: by 10.66.62.202 with SMTP id a10mr8673212pas.31.1445658027436; Fri, 23 Oct 2015 20:40:27 -0700 (PDT) Received: from localhost.localdomain ([1.39.13.114]) by smtp.gmail.com with ESMTPSA id tk4sm21622200pab.45.2015.10.23.20.40.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Oct 2015 20:40:26 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Sat, 24 Oct 2015 09:09:03 +0530 Message-Id: <1445657950-7117-17-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445657950-7117-1-git-send-email-jteki@openedev.com> References: <1445657950-7117-1-git-send-email-jteki@openedev.com> Cc: Jagan Teki , Bo Shen Subject: [U-Boot] [PATCH v5 16/23] spi: atmel_spi: Use GENMASK X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Replace numeric mask hexcodes with GENMASK macro in atmel_spi Cc: Bo Shen Reviewed-by: Tom Rini Signed-off-by: Jagan Teki --- drivers/spi/atmel_spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h index 5b892d2..76b8556 100644 --- a/drivers/spi/atmel_spi.h +++ b/drivers/spi/atmel_spi.h @@ -59,7 +59,7 @@ #define ATMEL_SPI_CSRx_CSAAT BIT(3) #define ATMEL_SPI_CSRx_BITS(x) ((x) << 4) #define ATMEL_SPI_CSRx_SCBR(x) ((x) << 8) -#define ATMEL_SPI_CSRx_SCBR_MAX 0xff +#define ATMEL_SPI_CSRx_SCBR_MAX GENMASK(7, 0) #define ATMEL_SPI_CSRx_DLYBS(x) ((x) << 16) #define ATMEL_SPI_CSRx_DLYBCT(x) ((x) << 24)