瀏覽代碼

Input: gameport_driver - mark description as const pointer

Memory pointed to by the pointer should not change.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Dmitry Torokhov 14 年之前
父節點
當前提交
37b0bb112b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/gameport.h

+ 1 - 1
include/linux/gameport.h

@@ -55,7 +55,7 @@ struct gameport {
 struct gameport_driver {
 struct gameport_driver {
 
 
 	void *private;
 	void *private;
-	char *description;
+	const char *description;
 
 
 	int (*connect)(struct gameport *, struct gameport_driver *drv);
 	int (*connect)(struct gameport *, struct gameport_driver *drv);
 	int (*reconnect)(struct gameport *);
 	int (*reconnect)(struct gameport *);