drivers: led: shell: Correct command help of set_brightness

The help text indicates the range of value is 0-255, while the actual
maximum value acceptable is 100.

This commit updates the text to accurately reflect the acceptable
value range for the set_brightness API.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
This commit is contained in:
Chen Xingyu 2023-04-11 10:06:57 +08:00 committed by Carles Cufí
commit 1939a46629

View file

@ -311,7 +311,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(sub_led,
SHELL_CMD_ARG(off, NULL, "<device> <led>", cmd_off, 3, 0),
SHELL_CMD_ARG(on, NULL, "<device> <led>", cmd_on, 3, 0),
SHELL_CMD_ARG(get_info, NULL, "<device> <led>", cmd_get_info, 3, 0),
SHELL_CMD_ARG(set_brightness, NULL, "<device> <led> <value [0-255]>",
SHELL_CMD_ARG(set_brightness, NULL, "<device> <led> <value [0-100]>",
cmd_set_brightness, 4, 0),
SHELL_CMD_ARG(set_color, NULL,
"<device> <led> <color 0 [0-255]> ... <color N>",