[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    nds32: To refine readability of INT_MASK_INITAIAL_VAL
From:       "Linux Kernel Mailing List" <linux-kernel () vger ! kernel ! org>
Date:       2018-05-28 12:29:32
Message-ID: 20180528122932.5829521B2E () pdx-korg-gitolite-1 ! ci ! codeaurora ! org
[Download RAW message or body]

Web:        https://git.kernel.org/torvalds/c/8769c223491a7fbb345021e7004cbdffe024eaf8
Commit:     8769c223491a7fbb345021e7004cbdffe024eaf8
Parent:     3ff2228dcea4e5c9b517375bd3aa9e3a1a3f29a0
Refname:    refs/heads/master
Author:     Greentime Hu <greentime@andestech.com>
AuthorDate: Mon Apr 30 11:32:47 2018 +0800
Committer:  Greentime Hu <greentime@andestech.com>
CommitDate: Wed May 23 13:26:21 2018 +0800

    nds32: To refine readability of INT_MASK_INITAIAL_VAL
    
    Refine readability of INT_MASK_INITAIAL_VAL with meaningful macro instead
    of magic number.
    
    Signed-off-by: Greentime Hu <greentime@andestech.com>
---
 arch/nds32/include/asm/bitfield.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/nds32/include/asm/bitfield.h b/arch/nds32/include/asm/bitfield.h
index c73f71d67744..28b7d797fd59 100644
--- a/arch/nds32/include/asm/bitfield.h
+++ b/arch/nds32/include/asm/bitfield.h
@@ -336,7 +336,7 @@
 #define INT_MASK_mskIDIVZE	( 0x1  << INT_MASK_offIDIVZE )
 #define INT_MASK_mskDSSIM	( 0x1  << INT_MASK_offDSSIM )
 
-#define INT_MASK_INITAIAL_VAL	0x10003
+#define INT_MASK_INITAIAL_VAL	(INT_MASK_mskDSSIM|INT_MASK_mskIDIVZE)
 
 /******************************************************************************
  * ir15: INT_PEND (Interrupt Pending Register)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic