Skip to contentSkip to conversation

staging: greybus: audio: fix error message for BTN_3 button

PATCH New Haoyu Lu 1 participant 1 message Mar 30

Subsystems (3)
lore
Share & tools
lore

Haoyu Lu

author
#0 lore raw

PATCH v2 1/1 staging: greybus: audio: fix error message for BTN_3 button

In gbaudio_init_jack(), when setting SND_JACK_BTN_3 key, the error message incorrectly says "Failed to set BTN_0". This should be "Failed to set BTN_3" to match the button being configured.

---
 drivers/staging/greybus/audio_codec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/audio_codec.c +1 -1
index 444c53b4e08d..720aa752e17e 100644
@@ -781,7 +781,7 @@ static int gbaudio_init_jack(struct gbaudio_module_info *module,
 		ret = snd_jack_set_key(module->button.jack.jack, SND_JACK_BTN_3,
 				       KEY_VOLUMEDOWN);
 		if (ret) {
-			dev_err(module->dev, "Failed to set BTN_0\n");
+			dev_err(module->dev, "Failed to set BTN_3\n");
 			goto free_jacks;
 		}
 	}

--
2.17.1