* FLIP - Inverts display for upside-down mounted board
* bits 0-4 - 7-segment display contents
*/
-volatile u8* d7s_regs = 0;
+volatile u8* d7s_regs = NULL;
static inline void d7s_free(void)
{
/* assign device register values
* we mask-out D7S_FLIP if in sol_compat mode
*/
- if (get_user(ireg, (int *) arg))
+ if (get_user(ireg, (int __user *) arg))
return -EFAULT;
if (0 != sol_compat) {
(regs & D7S_FLIP) ?
* This driver will not misinform you about the state
* of your hardware while in sol_compat mode
*/
- if (put_user(regs, (int *) arg))
+ if (put_user(regs, (int __user *) arg))
return -EFAULT;
break;