From: christian.hitz@aizo•com (Christian Hitz)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH Resend] arm: at91: fix NAND bus width decoding from system_rev
Date: Mon, 24 Oct 2011 08:57:32 +0200 [thread overview]
Message-ID: <4EA50C5C.2040701@aizo.com> (raw)
Make it safe to assign the return value of this function
to u8/u16 variables.
Signed-off-by: Christian Hitz <christian.hitz@aizo•com>
Cc: Andrew Victor <linux@maxim•org.za>
Cc: Nicolas Ferre <nicolas.ferre@atmel•com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft•com>
---
arch/arm/mach-at91/include/mach/system_rev.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-at91/include/mach/system_rev.h
b/arch/arm/mach-at91/include/mach/system_rev.h
index 8f48660..ec164a4 100644
--- a/arch/arm/mach-at91/include/mach/system_rev.h
+++ b/arch/arm/mach-at91/include/mach/system_rev.h
@@ -19,7 +19,7 @@
#define BOARD_HAVE_NAND_16BIT (1 << 31)
static inline int board_have_nand_16bit(void)
{
- return system_rev & BOARD_HAVE_NAND_16BIT;
+ return (system_rev & BOARD_HAVE_NAND_16BIT) ? 1 : 0;
}
#endif /* __ARCH_SYSTEM_REV_H__ */
--
1.7.4.1
reply other threads:[~2011-10-24 6:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EA50C5C.2040701@aizo.com \
--to=christian.hitz@aizo$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox