parent
e7119ab331
commit
12048b9dd9
|
@ -49,7 +49,7 @@ struct demo_dev
|
||||||
struct class *class;
|
struct class *class;
|
||||||
struct demo_dev* demo_devp;
|
struct demo_dev* demo_devp;
|
||||||
|
|
||||||
static int demo_open(struct inode *inode, struct file* filp)
|
static int demo_open(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
struct demo_dev *demo;
|
struct demo_dev *demo;
|
||||||
demo = container_of(inode->i_cdev, struct demo_dev, cdev);
|
demo = container_of(inode->i_cdev, struct demo_dev, cdev);
|
||||||
|
@ -58,7 +58,7 @@ static int demo_open(struct inode *inode, struct file* filp)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demo_release(struct inode *inode, struct file* filp)
|
static int demo_release(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,7 @@ static long demo_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demo_mmap(struct file* filp, struct vm_area_struct* vma)
|
static int demo_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
{
|
{
|
||||||
struct demo_dev *devp = filp->private_data;
|
struct demo_dev *devp = filp->private_data;
|
||||||
(void)devp;
|
(void)devp;
|
||||||
|
|
|
@ -45,12 +45,12 @@ MODULE_LICENSE("GPL");
|
||||||
#define DEMO_CTL_IOWR _IOWR(DEMO_MAGIC, 4, uint32_t)
|
#define DEMO_CTL_IOWR _IOWR(DEMO_MAGIC, 4, uint32_t)
|
||||||
#define DEMO_CTL_MAX 5
|
#define DEMO_CTL_MAX 5
|
||||||
|
|
||||||
static int demo_open(struct inode *inode, struct file* filp)
|
static int demo_open(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demo_release(struct inode *inode, struct file* filp)
|
static int demo_release(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ static long demo_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demo_mmap(struct file* filp, struct vm_area_struct* vma)
|
static int demo_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,13 +59,13 @@ struct mfis_iccom
|
||||||
|
|
||||||
#define to_miccom(priv) container_of((priv), struct mfis_iccom, mis)
|
#define to_miccom(priv) container_of((priv), struct mfis_iccom, mis)
|
||||||
|
|
||||||
static int miccom_open(struct inode *inode, struct file* filp)
|
static int miccom_open(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
struct mfis_iccom *miccom = to_miccom(filp->private_data);
|
struct mfis_iccom *miccom = to_miccom(filp->private_data);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int miccom_release(struct inode *inode, struct file* filp)
|
static int miccom_release(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ static struct file_operations miccom_fops = {
|
||||||
.unlocked_ioctl = miccom_ioctl,
|
.unlocked_ioctl = miccom_ioctl,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void miccom_enable_irq(struct mfis_iccom* miccom)
|
static void miccom_enable_irq(struct mfis_iccom *miccom)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ static void miccom_enable_irq(struct mfis_iccom* miccom)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void miccom_disable_irq_nosync(struct mfis_iccom* miccom)
|
static void miccom_disable_irq_nosync(struct mfis_iccom *miccom)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ static void miccom_disable_irq_nosync(struct mfis_iccom* miccom)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int miccom_remap_cta(struct device *dev, struct device_node *node, struct mfis_iccom* miccom)
|
static int miccom_remap_cta(struct device *dev, struct device_node *node, struct mfis_iccom *miccom)
|
||||||
{
|
{
|
||||||
int32_t len;
|
int32_t len;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
|
@ -49,7 +49,7 @@ struct demo_dev
|
||||||
struct class *class;
|
struct class *class;
|
||||||
struct demo_dev* demo_devp;
|
struct demo_dev* demo_devp;
|
||||||
|
|
||||||
static int demo_open(struct inode *inode, struct file* filp)
|
static int demo_open(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
struct demo_dev *demo;
|
struct demo_dev *demo;
|
||||||
demo = container_of(inode->i_cdev, struct demo_dev, cdev);
|
demo = container_of(inode->i_cdev, struct demo_dev, cdev);
|
||||||
|
@ -58,7 +58,7 @@ static int demo_open(struct inode *inode, struct file* filp)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demo_release(struct inode *inode, struct file* filp)
|
static int demo_release(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,7 @@ static long demo_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demo_mmap(struct file* filp, struct vm_area_struct* vma)
|
static int demo_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
{
|
{
|
||||||
struct demo_dev *devp = filp->private_data;
|
struct demo_dev *devp = filp->private_data;
|
||||||
(void)devp;
|
(void)devp;
|
||||||
|
|
|
@ -45,12 +45,12 @@ MODULE_LICENSE("GPL");
|
||||||
#define DEMO_CTL_IOWR _IOWR(DEMO_MAGIC, 4, uint32_t)
|
#define DEMO_CTL_IOWR _IOWR(DEMO_MAGIC, 4, uint32_t)
|
||||||
#define DEMO_CTL_MAX 5
|
#define DEMO_CTL_MAX 5
|
||||||
|
|
||||||
static int demo_open(struct inode *inode, struct file* filp)
|
static int demo_open(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demo_release(struct inode *inode, struct file* filp)
|
static int demo_release(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ static long demo_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demo_mmap(struct file* filp, struct vm_area_struct* vma)
|
static int demo_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue