leds: class: Warn about name collisions earlier
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 26 May 2024 18:17:15 +0000 (20:17 +0200)
committerLee Jones <lee@kernel.org>
Fri, 14 Jun 2024 09:09:34 +0000 (10:09 +0100)
commitbfefbecdeadc608c625e85259ad0a89d34728d61
tree93eabddace96b940722dc2b5d1fa031a9cfadec7
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
leds: class: Warn about name collisions earlier

Other warnings refer to the name after renaming, which is clearer when
that name is mentioned first.

It is also clearer where "ret" comes from.

While at it, also add the necessary newline to the message and fix the
parameter alignment.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20240526-cros_ec-kbd-led-framework-v3-1-ee577415a521@weissschuh.net
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/led-class.c