Skip to content
Snippets Groups Projects
Commit e4305e09 authored by patacongo's avatar patacongo
Browse files

Eliminate some warnings

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3697 42af7a65-404d-4744-a932-0658087f49c3
parent 80332ad2
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment