Commit 16bc0fe5 authored by Joe Perches's avatar Joe Perches Committed by Jesper Nilsson

arch/cris: Remove unnecessary casts of private_data

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 096b7bdc
...@@ -184,7 +184,7 @@ static volatile unsigned long *dir_oe[NUM_PORTS] = { ...@@ -184,7 +184,7 @@ static volatile unsigned long *dir_oe[NUM_PORTS] = {
static unsigned int gpio_poll(struct file *file, struct poll_table_struct *wait) static unsigned int gpio_poll(struct file *file, struct poll_table_struct *wait)
{ {
unsigned int mask = 0; unsigned int mask = 0;
struct gpio_private *priv = (struct gpio_private *)file->private_data; struct gpio_private *priv = file->private_data;
unsigned long data; unsigned long data;
poll_wait(file, &priv->alarm_wq, wait); poll_wait(file, &priv->alarm_wq, wait);
if (priv->minor == GPIO_MINOR_A) { if (priv->minor == GPIO_MINOR_A) {
...@@ -352,7 +352,7 @@ gpio_pa_interrupt(int irq, void *dev_id) ...@@ -352,7 +352,7 @@ gpio_pa_interrupt(int irq, void *dev_id)
static ssize_t gpio_write(struct file *file, const char *buf, size_t count, static ssize_t gpio_write(struct file *file, const char *buf, size_t count,
loff_t *off) loff_t *off)
{ {
struct gpio_private *priv = (struct gpio_private *)file->private_data; struct gpio_private *priv = file->private_data;
unsigned char data, clk_mask, data_mask, write_msb; unsigned char data, clk_mask, data_mask, write_msb;
unsigned long flags; unsigned long flags;
unsigned long shadow; unsigned long shadow;
...@@ -467,7 +467,7 @@ gpio_release(struct inode *inode, struct file *filp) ...@@ -467,7 +467,7 @@ gpio_release(struct inode *inode, struct file *filp)
spin_lock_irq(&alarm_lock); spin_lock_irq(&alarm_lock);
p = alarmlist; p = alarmlist;
todel = (struct gpio_private *)filp->private_data; todel = filp->private_data;
if (p == todel) { if (p == todel) {
alarmlist = todel->next; alarmlist = todel->next;
...@@ -564,7 +564,7 @@ gpio_ioctl_unlocked(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -564,7 +564,7 @@ gpio_ioctl_unlocked(struct file *file, unsigned int cmd, unsigned long arg)
unsigned long flags; unsigned long flags;
unsigned long val; unsigned long val;
unsigned long shadow; unsigned long shadow;
struct gpio_private *priv = (struct gpio_private *)file->private_data; struct gpio_private *priv = file->private_data;
if (_IOC_TYPE(cmd) != ETRAXGPIO_IOCTYPE) if (_IOC_TYPE(cmd) != ETRAXGPIO_IOCTYPE)
return -EINVAL; return -EINVAL;
...@@ -722,7 +722,7 @@ virtual_gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -722,7 +722,7 @@ virtual_gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
unsigned long flags; unsigned long flags;
unsigned short val; unsigned short val;
unsigned short shadow; unsigned short shadow;
struct gpio_private *priv = (struct gpio_private *)file->private_data; struct gpio_private *priv = file->private_data;
switch (_IOC_NR(cmd)) { switch (_IOC_NR(cmd)) {
case IO_SETBITS: case IO_SETBITS:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment