platform平台设备驱动简化示例代码
摘要:
driver.c:#include #include #include #include #include #include #define DRIVER_NAME "my_dev"static int my_probe(struct device *dev){ printk("driver found device !!\n"); return 0;}static int my_remove(struct device *dev){ printk("driver found device unpluged !!\n"); retur 阅读全文
posted @ 2013-09-14 14:37 熊猫酒仙是也 阅读(438) 评论(0) 推荐(0) 编辑