Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] dm644x_ccdc: use unsigned long for fpc_table_addr

The fpc_table_addr is used as an unsigned integer that stores
an address. At the Kernel, the proper type for such integers
is unsigned long.

This generates lots of warnings when compiling on 64 bits.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

+3 -3
+2 -2
drivers/media/platform/davinci/dm644x_ccdc.c
··· 291 291 dev_dbg(ccdc_cfg.dev, "\n copy_from_user failed"); 292 292 return -EFAULT; 293 293 } 294 - config_params->fault_pxl.fpc_table_addr = (unsigned int)fpc_physaddr; 294 + config_params->fault_pxl.fpc_table_addr = (unsigned long)fpc_physaddr; 295 295 return 0; 296 296 } 297 297 ··· 506 506 507 507 /* Configure Fault pixel if needed */ 508 508 regw(fpc->fpc_table_addr, CCDC_FPC_ADDR); 509 - dev_dbg(ccdc_cfg.dev, "\nWriting 0x%x to FPC_ADDR...\n", 509 + dev_dbg(ccdc_cfg.dev, "\nWriting 0x%lx to FPC_ADDR...\n", 510 510 (fpc->fpc_table_addr)); 511 511 /* Write the FPC params with FPC disable */ 512 512 val = fpc->fp_num & CCDC_FPC_FPC_NUM_MASK;
+1 -1
include/media/davinci/dm644x_ccdc.h
··· 114 114 /* Number of fault pixel */ 115 115 unsigned short fp_num; 116 116 /* Address of fault pixel table */ 117 - unsigned int fpc_table_addr; 117 + unsigned long fpc_table_addr; 118 118 }; 119 119 120 120 /* Structure for CCDC configuration parameters for raw capture mode passed