From patchwork Sat Oct 24 03:39:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 535361 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 B3A39141316 for ; Sat, 24 Oct 2015 14:43:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5CB6E4B761; Sat, 24 Oct 2015 05:42:13 +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 1OjCzTv8MY7u; Sat, 24 Oct 2015 05:42:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B70D84B6D4; Sat, 24 Oct 2015 05:41:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A82A64B6B5 for ; Sat, 24 Oct 2015 05:40:54 +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 hTIHmxNYEHO6 for ; Sat, 24 Oct 2015 05:40:54 +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-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by theia.denx.de (Postfix) with ESMTPS id 3574C4B6EB for ; Sat, 24 Oct 2015 05:40:43 +0200 (CEST) Received: by pacfv9 with SMTP id fv9so140278406pac.3 for ; Fri, 23 Oct 2015 20:40:42 -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=qEyY0aG4tiGpqwAAr25kHEsPnpK7gV4dUckv0Iw4uzs=; b=XDyQJUi7Gg4WDQkxzJlqSbsU0OJW96+jLycacA9I2x/An6E5joO0Q+BbTCbrGC3V3M HWz2nt7Seq5VAQb+jlJZcL2TxDeaqsMsNR4NOaPrP9qXR8ogVuOhuWh3ctpeNWcIDc+P o6oB9GSuIWtd8Av072rh0YbMltDtCPqMPwREIIwqjKp0yTwaa2UG3HR6tgDRUO4Wp97L FXTFllYWbAOc1wG7gyNVNsiqHT9BZqvMfc0YE9OHMwqF0lY5f7GZq6B7rFSmMNA0cNN4 /4vRMyMhdYbAghkv5bx2xtCIvzEghMQ3TH5149jaGy7IpVV53hSRwZpki9RwkadZ7z3y YXqA== X-Received: by 10.68.131.130 with SMTP id om2mr9144941pbb.84.1445658041987; Fri, 23 Oct 2015 20:40:41 -0700 (PDT) Received: from localhost.localdomain ([1.39.13.114]) by smtp.gmail.com with ESMTPSA id tk4sm21622200pab.45.2015.10.23.20.40.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Oct 2015 20:40:40 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Sat, 24 Oct 2015 09:09:06 +0530 Message-Id: <1445657950-7117-20-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 , York Sun , Haikun Wang Subject: [U-Boot] [PATCH v5 19/23] spi: fsl_qspi: 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 fsl_qspi Cc: York Sun Cc: Haikun Wang Signed-off-by: Jagan Teki --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index e1a0ec9..10733df 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR; #define TX_BUFFER_SIZE 0x40 #endif -#define OFFSET_BITS_MASK 0x00ffffff +#define OFFSET_BITS_MASK GENMASK(24, 0) #define FLASH_STATUS_WEL 0x02