leds: is31fl319x: Move chipset-specific values in chipdef struct
authorVincent Knecht <vincent.knecht@mailoo.org>
Tue, 12 Jul 2022 10:08:31 +0000 (12:08 +0200)
committerPavel Machek <pavel@ucw.cz>
Tue, 2 Aug 2022 14:43:30 +0000 (16:43 +0200)
commitbd34266fdec2826b852dd099b17af5df2b8c92b1
tree7a48dc131dc3ea4a3dbd2be7bd0207c11c9b42a9
parent8e6dde1b4495348a90e8a49147e8145d957cda52
leds: is31fl319x: Move chipset-specific values in chipdef struct

Allow setting chips' specifics in chipdef struct by adding fields for:
- the reset register address
- a pointer to a regmap_config struct
- a pointer to a brightness_set function
- current default, min and max values
- a boolean to distinguish 319{0,1,3} and 319{6,9} chips
and use those fields in places where distinction has to be made.

The fields for 319{0,1,3} still point to 319{6,9} values.
No functional change.

Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-is31fl319x.c