diff mbox

[10/11] rc: Fir warnings on m68k arch

Message ID 1383334770-27130-11-git-send-email-m.chehab@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mauro Carvalho Chehab Nov. 1, 2013, 7:39 p.m. UTC
Fix the following warnings:
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c: In function 'fintek_cr_write':
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c:45:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c:46:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c: In function 'fintek_cr_read':
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c:54:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c:55:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c: In function 'fintek_config_mode_enable':
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c:80:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c:81:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c: In function 'fintek_config_mode_disable':
	/devel/v4l/ktest-build/drivers/media/rc/fintek-cir.c:87:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c: In function 'nvt_cr_write':
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:45:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:46:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c: In function 'nvt_cr_read':
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:52:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:53:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c: In function 'nvt_efm_enable':
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:74:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:75:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c: In function 'nvt_efm_disable':
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:81:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c: In function 'nvt_select_logical_dev':
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:91:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
	/devel/v4l/ktest-build/drivers/media/rc/nuvoton-cir.c:92:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Those are caused because the I/O port is u32, instead of u8.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---
 drivers/media/rc/fintek-cir.h  | 4 ++--
 drivers/media/rc/nuvoton-cir.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/drivers/media/rc/fintek-cir.h b/drivers/media/rc/fintek-cir.h
index 82516a1d39b0..b698f3d2ced9 100644
--- a/drivers/media/rc/fintek-cir.h
+++ b/drivers/media/rc/fintek-cir.h
@@ -76,8 +76,8 @@  struct fintek_dev {
 	} tx;
 
 	/* Config register index/data port pair */
-	u8 cr_ip;
-	u8 cr_dp;
+	u32 cr_ip;
+	u32 cr_dp;
 
 	/* hardware I/O settings */
 	unsigned long cir_addr;
diff --git a/drivers/media/rc/nuvoton-cir.h b/drivers/media/rc/nuvoton-cir.h
index 7c3674ff5ea2..07e83108df0f 100644
--- a/drivers/media/rc/nuvoton-cir.h
+++ b/drivers/media/rc/nuvoton-cir.h
@@ -84,8 +84,8 @@  struct nvt_dev {
 	} tx;
 
 	/* EFER Config register index/data pair */
-	u8 cr_efir;
-	u8 cr_efdr;
+	u32 cr_efir;
+	u32 cr_efdr;
 
 	/* hardware I/O settings */
 	unsigned long cir_addr;