mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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]>
This commit is contained in:
parent
7ed31e0fa0
commit
870897a5ab
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue