linux驱动注册汇总
2024-08-30 02:08:56
---
01)TP
file_operations:
{
1.
static struct file_operations tpd_fops =
{
// .owner = THIS_MODULE,
.open = tpd_misc_open,
.release = tpd_misc_release,
.unlocked_ioctl = tpd_unlocked_ioctl,
};
2.
static const struct file_operations gt_upgrade_proc_fops = {
.write = gt91xx_config_write_proc,
.read = gt91xx_config_read_proc
};
3.
static const struct file_operations ctp_version_proc_fops = {
.write = ctp_version_write_proc,
.read = ctp_version_read_proc
};
}
①
module_init(tpd_driver_init);
module_exit(tpd_driver_exit);
②
static int __init tpd_driver_init(void)
{
GTP_INFO("MediaTek gt91xx touch panel driver init\n");
tpd_get_dts_info();
if (tpd_driver_add(&tpd_device_driver) < )
GTP_INFO("add generic driver failed\n"); return ;
}
③
static struct tpd_driver_t tpd_device_driver = {
.tpd_device_name = "gt9xx",
.tpd_local_init = tpd_local_init,
.suspend = tpd_suspend,
.resume = tpd_resume,
};
④
-----
最新文章
- YARN-MR 大数据第二天
- SpringMVC解析4-DispatcherServlet逻辑脉络
- /dev/tty /dev/ttyS0 /dev/tty0区别 (转载)
- 题目1049:字符串去特定字符——九度OJ
- 22.I/O特性
- PYTHON代码摘录
- PHP面向对象编程快速入门
- java设计模式--结构型模式--享元模式
- 如何实现简单的位数组(bit array)(转)
- CSS样式之选择器
- dpkg: 处理软件包 qjackctl (--configure)时出错解决方法
- Java基础(四)线程快速了解
- ExtJS6 根据Value设置单元格颜色
- 第五周 PSP 燃尽图 以及 进度条总结
- 在python中读写matlab文件
- 简单说明webbench的安装和使用
- KineticJS教程(5)
- springmvc.xml配置
- Unity 2D 入门
- 解决xshell6评估过期,需采购问题