leds: rgb: leds-mt6370-rgb: Improve definition of some struct linear_range
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 2 May 2025 14:51:22 +0000 (16:51 +0200)
committerLee Jones <lee@kernel.org>
Wed, 14 May 2025 08:25:08 +0000 (09:25 +0100)
commitf1c86ab98640e9288049673ca2e4517a9df7ed83
treea681e4516483371a455ad2cdadd678503b7120b6
parentcfa40f29df08c7ad296c81a2fac677830af83ec7
leds: rgb: leds-mt6370-rgb: Improve definition of some struct linear_range

Use LINEAR_RANGE() instead of hand-writing it. It is more robust, should
the layout of the structure change one day.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/1ce4245107e0a51dce502a007a69899bda018d5f.1746197460.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/rgb/leds-mt6370-rgb.c