Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: hid-appletb-bl: fix incorrect error message for default brightness

The error message responsible to show failure to set default backlight
brightness incorrectly showed the intended brightness as off irrespective
of what the user had set it. This patch intends to fix the same.

Also, a small typo in MODULE_DESCRIPTION has been fixed.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>

authored by

Aditya Garg and committed by
Jiri Kosina
172e23f5 534bac4f

+3 -2
+3 -2
drivers/hid/hid-appletb-bl.c
··· 145 145 appletb_bl_brightness_map[(appletb_bl_def_brightness > 2) ? 2 : appletb_bl_def_brightness]); 146 146 147 147 if (ret) { 148 - dev_err_probe(dev, ret, "Failed to set touch bar brightness to off\n"); 148 + dev_err_probe(dev, ret, "Failed to set default touch bar brightness to %d\n", 149 + appletb_bl_def_brightness); 149 150 goto close_hw; 150 151 } 151 152 ··· 200 199 201 200 MODULE_AUTHOR("Ronald Tschalär"); 202 201 MODULE_AUTHOR("Kerem Karabay <kekrby@gmail.com>"); 203 - MODULE_DESCRIPTION("MacBookPro Touch Bar Backlight Driver"); 202 + MODULE_DESCRIPTION("MacBook Pro Touch Bar Backlight driver"); 204 203 MODULE_LICENSE("GPL");