mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
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>
This commit is contained in:
@@ -145,7 +145,8 @@ static int appletb_bl_probe(struct hid_device *hdev, const struct hid_device_id
|
||||
appletb_bl_brightness_map[(appletb_bl_def_brightness > 2) ? 2 : appletb_bl_def_brightness]);
|
||||
|
||||
if (ret) {
|
||||
dev_err_probe(dev, ret, "Failed to set touch bar brightness to off\n");
|
||||
dev_err_probe(dev, ret, "Failed to set default touch bar brightness to %d\n",
|
||||
appletb_bl_def_brightness);
|
||||
goto close_hw;
|
||||
}
|
||||
|
||||
@@ -199,5 +200,5 @@ module_hid_driver(appletb_bl_hid_driver);
|
||||
|
||||
MODULE_AUTHOR("Ronald Tschalär");
|
||||
MODULE_AUTHOR("Kerem Karabay <kekrby@gmail.com>");
|
||||
MODULE_DESCRIPTION("MacBookPro Touch Bar Backlight Driver");
|
||||
MODULE_DESCRIPTION("MacBook Pro Touch Bar Backlight driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
Reference in New Issue
Block a user