lkml.org 
[lkml]   [2014]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 05/12] at91: smc: Increased the size of tdf_cycles in struct sam9_smc_config.
Date
This makes it possible to check if the tdf_cycle is too big to fit in the
register.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
---
arch/arm/mach-at91/include/mach/at91sam9_smc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-at91/include/mach/at91sam9_smc.h b/arch/arm/mach-at91/include/mach/at91sam9_smc.h
index 56de08a..c3e29311 100644
--- a/arch/arm/mach-at91/include/mach/at91sam9_smc.h
+++ b/arch/arm/mach-at91/include/mach/at91sam9_smc.h
@@ -38,7 +38,7 @@ struct sam9_smc_config {

/* Mode register */
u32 mode;
- u8 tdf_cycles:4;
+ u8 tdf_cycles;
};

extern void sam9_smc_configure(int id, int cs, struct sam9_smc_config *config);
--
1.8.5.2


\
 
 \ /
  Last update: 2014-01-09 19:41    [W:0.593 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site