Просмотр исходного кода

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 15 лет назад
Родитель
Сommit
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 {
 
 	void *private;
-	char *description;
+	const char *description;
 
 	int (*connect)(struct gameport *, struct gameport_driver *drv);
 	int (*reconnect)(struct gameport *);