summaryrefslogtreecommitdiffstats
path: root/drivers/staging/omapdrm/omap_drv.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-08-14 13:45:53 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-14 16:46:34 -0700
commit69af59970bec925d182ca5ebd80e643fdd90b1cc (patch)
tree57a0c87342094f26dee353ba159e0352e08cbcc7 /drivers/staging/omapdrm/omap_drv.c
parent9291975d6647794710553630c2613b5658c81d3f (diff)
downloadlinux-stable-69af59970bec925d182ca5ebd80e643fdd90b1cc.tar.gz
linux-stable-69af59970bec925d182ca5ebd80e643fdd90b1cc.tar.bz2
linux-stable-69af59970bec925d182ca5ebd80e643fdd90b1cc.zip
staging: comedi: adl_pci7x3x: fix pointer-to-int-cast warning
This driver uses the void *private variable in the comedi_subdevice to pass the offset needed to read/write the appropriate register to get/set the channels for the subdevice. The adl_pci7x3x_do_insn_bits() and adl_pci7x3x_di_insn_bits() functions were retrieving this offset by casting the s->private value as an unsigned int. On 64-bit builds this results in a warning: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Fix these warnings by casting the void * to an unsigned long. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/omapdrm/omap_drv.c')
0 files changed, 0 insertions, 0 deletions