Changeset 27322


Ignore:
Timestamp:
2011-07-01T05:20:13+02:00 (7 years ago)
Author:
nbd
Message:

fix the gpio_dev driver: remove existing forward port patches, use unlocked_ioctl on all platforms and fix the arguments to the ioctl handler (based on patch from #9198)

Location:
trunk/target/linux/generic
Files:
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/char/gpio_dev.c

    r21952 r27322  
    3333#include <linux/platform_device.h> 
    3434#include <linux/gpio_dev.h> 
     35#include <linux/fs.h> 
    3536 
    3637#define DRVNAME         "gpiodev" 
     
    4344/* third argument of user space ioctl ('arg' here) contains the <pin> */ 
    4445static int 
    45 gpio_ioctl(struct inode * inode, struct file * file, unsigned int cmd, 
    46            unsigned long arg) 
     46gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) 
    4747{ 
    4848        int retval = 0; 
     
    115115 
    116116struct file_operations gpio_fops = { 
    117         ioctl:          gpio_ioctl, 
     117        unlocked_ioctl: gpio_ioctl, 
    118118        open:           gpio_open, 
    119119        release:        gpio_close 
Note: See TracChangeset for help on using the changeset viewer.