Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=870897a5ab60a6afeba0a7eff42d21faf79edf33
Commit:     870897a5ab60a6afeba0a7eff42d21faf79edf33
Parent:     7ed31e0fa0e595a8840dbb6c60a7207b5bd90333
Author:     Jason Uhlenkott <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 7 00:15:05 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 08:42:23 2008 -0800

    drivers/edac/i3000: document type promotion
    
    By popular request, add a comment documenting the implicit type promotion
    here.
    
    Signed-off-by: Jason Uhlenkott <[EMAIL PROTECTED]>
    Signed-off-by: Doug Thompson <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/edac/i3000_edac.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c
index b813f35..5d42928 100644
--- a/drivers/edac/i3000_edac.c
+++ b/drivers/edac/i3000_edac.c
@@ -44,6 +44,13 @@
                                 */
 #define I3000_DEAP_GRAIN               (1 << 7)
 
+/*
+ * Helper functions to decode the DEAP/EDEAP hardware registers.
+ *
+ * The type promotion here is deliberate; we're deriving an
+ * unsigned long pfn and offset from hardware regs which are u8/u32.
+ */
+
 static inline unsigned long deap_pfn(u8 edeap, u32 deap)
 {
        deap >>= PAGE_SHIFT;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to