diff options
| author | a_p_u_r_o <applause@elfmimi.jp> | 2020-10-04 03:15:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-04 05:15:44 +1100 |
| commit | 1fe7743af88cf0d65800d3ccfc1c59d1c2d65db2 (patch) | |
| tree | e420104f54c22db35aac0eb36736824876439633 /drivers/issi/is31fl3741.h | |
| parent | a0467fda3816e7c87d8cd0b2584ed701ff78375e (diff) | |
| download | qmk_firmware-1fe7743af88cf0d65800d3ccfc1c59d1c2d65db2.tar.gz qmk_firmware-1fe7743af88cf0d65800d3ccfc1c59d1c2d65db2.zip | |
IS31FL3741 driver fixup (#10519)
* Fix issue with data transfer of CS1_SW7 to CS18_SW7.
* Fix issue with handling of scaling register buffer's dirty flag.
* Remove unused extern declaration.
* Compaction of struct is31_led utilizing bit fields.
Diffstat (limited to 'drivers/issi/is31fl3741.h')
| -rw-r--r-- | drivers/issi/is31fl3741.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/issi/is31fl3741.h b/drivers/issi/is31fl3741.h index ed5350932..2df0c5b1a 100644 --- a/drivers/issi/is31fl3741.h +++ b/drivers/issi/is31fl3741.h | |||
| @@ -23,14 +23,13 @@ | |||
| 23 | #include <stdbool.h> | 23 | #include <stdbool.h> |
| 24 | 24 | ||
| 25 | typedef struct is31_led { | 25 | typedef struct is31_led { |
| 26 | uint8_t driver : 2; | 26 | uint32_t driver : 2; |
| 27 | uint16_t r; | 27 | uint32_t r : 10; |
| 28 | uint16_t g; | 28 | uint32_t g : 10; |
| 29 | uint16_t b; | 29 | uint32_t b : 10; |
| 30 | } __attribute__((packed)) is31_led; | 30 | } __attribute__((packed)) is31_led; |
| 31 | 31 | ||
| 32 | extern const is31_led g_is31_leds[DRIVER_LED_TOTAL]; | 32 | extern const is31_led g_is31_leds[DRIVER_LED_TOTAL]; |
| 33 | extern const is31_led g_is31_indicator_leds[DRIVER_INDICATOR_LED_TOTAL]; | ||
| 34 | 33 | ||
| 35 | void IS31FL3741_init(uint8_t addr); | 34 | void IS31FL3741_init(uint8_t addr); |
| 36 | void IS31FL3741_write_register(uint8_t addr, uint8_t reg, uint8_t data); | 35 | void IS31FL3741_write_register(uint8_t addr, uint8_t reg, uint8_t data); |
