Commit a4fa2e6b authored by Aditya Garg's avatar Aditya Garg Committed by Jiri Kosina
Browse files

HID: hid-appletb-bl: use appletb_bl_brightness_map instead of magic numbers to...


HID: hid-appletb-bl: use appletb_bl_brightness_map instead of magic numbers to set default brightness

This commit makes use of appletb_bl_brightness_map instead of using if
statements and magic numbers to set default brightness, and thus simplifies
the code.

Signed-off-by: default avatarAditya Garg <gargaditya08@live.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent cc9714a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment