Skip to content

Commit 172e23f

Browse files
AdityaGarg8Jiri Kosina
authored andcommitted
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 534bac4 commit 172e23f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/hid/hid-appletb-bl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ static int appletb_bl_probe(struct hid_device *hdev, const struct hid_device_id
145145
appletb_bl_brightness_map[(appletb_bl_def_brightness > 2) ? 2 : appletb_bl_def_brightness]);
146146

147147
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);
149150
goto close_hw;
150151
}
151152

@@ -199,5 +200,5 @@ module_hid_driver(appletb_bl_hid_driver);
199200

200201
MODULE_AUTHOR("Ronald Tschalär");
201202
MODULE_AUTHOR("Kerem Karabay <[email protected]>");
202-
MODULE_DESCRIPTION("MacBookPro Touch Bar Backlight Driver");
203+
MODULE_DESCRIPTION("MacBook Pro Touch Bar Backlight driver");
203204
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)