Explorar el Código

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 hace 15 años
padre
commit
37b0bb112b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 *);