Skip to contentSkip to conversation

vt: keyboard, Fix typo in the doc for vt_get_shift_state()

PATCH In review Andy Shevchenko 2 participants 2 messages Mar 3, 2021 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vt: keyboard, Fix typo in the doc for vt_get_shift_state()

Kernel documentation validator is not happy:

.../keyboard.c:2195: warning: expecting prototype for vt_get_shiftstate(). Prototype was for vt_get_shift_state() instead

This is due to typo, fix it here.

---
 drivers/tty/vt/keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/vt/keyboard.c +1 -1
index 77638629c562..5d2309742718 100644
@@ -2186,7 +2186,7 @@ void vt_reset_unicode(int console)
 }
 
 /**
- *	vt_get_shiftstate	-	shift bit state
+ *	vt_get_shift_state	-	shift bit state
  *
  *	Report the shift bits from the keyboard state. We have to export
  *	this to support some oddities in the vt layer.
Signature · 1 line
2.30.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Andy Shevchenko

Kernel documentation validator is not happy:

.../keyboard.c:2195: warning: expecting prototype for vt_get_shiftstate(). Prototype was for vt_get_shift_state() instead

This is due to typo, fix it here.

Quoted 18 lines
---
  drivers/tty/vt/keyboard.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/vt/keyboard.c +1 -1
index 77638629c562..5d2309742718 100644
@@ -2186,7 +2186,7 @@ void vt_reset_unicode(int console)
  }
 
  /**
- *	vt_get_shiftstate	-	shift bit state
+ *	vt_get_shift_state	-	shift bit state
   *
   *	Report the shift bits from the keyboard state. We have to export
   *	this to support some oddities in the vt layer.
Signature · 1 line
js