summaryrefslogtreecommitdiff
path: root/drivers/staging/sm750fb/ddk750_chip.h
diff options
context:
space:
mode:
authorLorenzo Stoakes <lstoakes@gmail.com>2015-03-10 15:25:47 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-10 21:13:55 +0100
commitf8b0dced35e60a857e893648308e056915ffed4a (patch)
tree731d5b697cf2025afe075a64331e59f83b238d0b /drivers/staging/sm750fb/ddk750_chip.h
parenta99e334da16ce81163db0e47ec22469a79a91b72 (diff)
staging: sm750fb: Cleanup the type of mmio750
This patch assigns the more appropriate void* type to the mmio750 variable eliminating an unnecessary volatile qualifier in the process. Additionally it updates parameter types as necessary where those parameters interact with mmio750, removes unnecessary casts and updates the type of the lynx_share->pvReg field which is passed to the ddk750_set_mmio method. As a consequence, this patch fixes the following sparse warning:- drivers/staging/sm750fb/ddk750_help.c:12:17: warning: incorrect type in assignment (different address spaces) Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_chip.h')
-rw-r--r--drivers/staging/sm750fb/ddk750_chip.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.h b/drivers/staging/sm750fb/ddk750_chip.h
index d761b722556f..04cb0d559245 100644
--- a/drivers/staging/sm750fb/ddk750_chip.h
+++ b/drivers/staging/sm750fb/ddk750_chip.h
@@ -5,6 +5,8 @@
#define SM750LE_REVISION_ID ((unsigned char)0xfe)
#endif
+#include <linux/io.h>
+
/* This is all the chips recognized by this library */
typedef enum _logical_chip_type_t
{
@@ -72,7 +74,7 @@ logical_chip_type_t getChipType(void);
unsigned int calcPllValue(unsigned int request,pll_value_t *pll);
unsigned int calcPllValue2(unsigned int,pll_value_t *);
unsigned int formatPllReg(pll_value_t *pPLL);
-void ddk750_set_mmio(volatile unsigned char *,unsigned short,char);
+void ddk750_set_mmio(void __iomem *,unsigned short,char);
unsigned int ddk750_getVMSize(void);
int ddk750_initHw(initchip_param_t *);
unsigned int getPllValue(clock_type_t clockType, pll_value_t *pPLL);