summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-11 16:58:02 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-11 16:58:02 +0000
commit20c042b27642181230e5e0edc038bf97fcd0a7ff (patch)
treec420bc276a771cde7c8826dafbe559bdfd6107e3 /nuttx
parent63866f8da09e268ecb79c346e51355a74f1fd3df (diff)
downloadpx4-nuttx-20c042b27642181230e5e0edc038bf97fcd0a7ff.tar.gz
px4-nuttx-20c042b27642181230e5e0edc038bf97fcd0a7ff.tar.bz2
px4-nuttx-20c042b27642181230e5e0edc038bf97fcd0a7ff.zip
Eliminate some warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3697 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/drivers/mtd/rammtd.c4
-rwxr-xr-xnuttx/drivers/mtd/ramtron.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/drivers/mtd/rammtd.c b/nuttx/drivers/mtd/rammtd.c
index c4c422cd6..c50db6a3a 100644
--- a/nuttx/drivers/mtd/rammtd.c
+++ b/nuttx/drivers/mtd/rammtd.c
@@ -317,7 +317,7 @@ static int ram_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
{
case MTDIOC_GEOMETRY:
{
- FAR struct mtd_geometry_s *geo = (FAR struct mtd_geometry_s *)arg;
+ FAR struct mtd_geometry_s *geo = (FAR struct mtd_geometry_s *)((uintptr_t)arg);
if (geo)
{
/* Populate the geometry structure with information need to know
@@ -334,7 +334,7 @@ static int ram_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
case MTDIOC_XIPBASE:
{
- FAR void **ppv = (FAR void**)arg;
+ FAR void **ppv = (FAR void**)((uintptr_t)arg);
if (ppv)
{
/* Return (void*) base address of device memory */
diff --git a/nuttx/drivers/mtd/ramtron.c b/nuttx/drivers/mtd/ramtron.c
index 5739b3b05..f1149df6d 100755
--- a/nuttx/drivers/mtd/ramtron.c
+++ b/nuttx/drivers/mtd/ramtron.c
@@ -160,7 +160,7 @@ struct ramtron_dev_s
static struct ramtron_parts_s ramtron_parts[] =
{
{
- .size = 32*1024,
+ .size = 32L*1024L,
.addr_len = 2,
.id1 = 0x22,
.id2 = 0x00,
@@ -168,7 +168,7 @@ static struct ramtron_parts_s ramtron_parts[] =
.name = "FM25V02",
},
{
- .size = 32*1024,
+ .size = 32L*1024L,
.addr_len = 2,
.id1 = 0x22,
.id2 = 0x01,
@@ -176,7 +176,7 @@ static struct ramtron_parts_s ramtron_parts[] =
.name = "FM25VN02",
},
{
- .size = 64*1024,
+ .size = 64L*1024L,
.addr_len = 2,
.id1 = 0x23,
.id2 = 0x00,
@@ -184,7 +184,7 @@ static struct ramtron_parts_s ramtron_parts[] =
.name = "FM25V05",
},
{
- .size = 64*1024,
+ .size = 64L*1024L,
.addr_len = 2,
.id1 = 0x23,
.id2 = 0x01,
@@ -192,7 +192,7 @@ static struct ramtron_parts_s ramtron_parts[] =
.name = "FM25VN05",
},
{
- .size = 128*1024,
+ .size = 128L*1024L,
.addr_len = 3,
.id1 = 0x24,
.id2 = 0x00,
@@ -200,7 +200,7 @@ static struct ramtron_parts_s ramtron_parts[] =
.name = "FM25V10",
},
{
- .size = 128*1024,
+ .size = 128L*1024L,
.addr_len = 3,
.id1 = 0x24,
.id2 = 0x01,
@@ -209,7 +209,7 @@ static struct ramtron_parts_s ramtron_parts[] =
},
#ifdef CONFIG_RAMTRON_FRAM_NON_JEDEC
{
- .size = 256*1024,
+ .size = 256L*1024L,
.addr_len = 3,
.id1 = 0xff,
.id2 = 0xff,