Przeglądaj źródła

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 lat temu
rodzic
commit
37b0bb112b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      include/linux/gameport.h

+ 1 - 1
include/linux/gameport.h

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