summaryrefslogtreecommitdiff
path: root/drivers/issi/is31fl3737.c
diff options
context:
space:
mode:
authoryiancar <yiangosyiangou@cytanet.com.cy>2019-11-25 20:33:52 +0000
committerFlorian Didron <fdidron@users.noreply.github.com>2020-01-06 12:22:09 +0900
commit20a2ebfeb9a9e0e535f93d3854219feb42402972 (patch)
tree8fbf48eba95dc190a5e738533877bf5fc3691fe5 /drivers/issi/is31fl3737.c
parentbf09fa6148f4e531d3c201d5a761b84cabf4f197 (diff)
IS31FL3733 Dirty page fix (#7079)
* IS31FL3733 Dirty page fix Function IS31FL3733_update_led_control_registers was never setting update register to false. As a result the led on/off page was being written every transaction even when it was not modified. This is ineficient and causes lots of bandwidth use. -> Fix the IS31FL3733_update_led_control_registers. -> After testing it was evident that failed I2C transactions could corrupt the Led on/off register. -> Update IS31FL3733_write_pwm_buffer and IS31FL3733_write_register functions to return 0 upon succesful tranmission and 1 if any of the transmitions within the function fail. -> Modify IS31FL3733_update_pwm_buffers function so if any of the IS31FL3733_write_pwm_buffer transuction fails, the g_led_control_registers_update_required register is set to true forcing a rewrite of the led on/off register in case it was corrupted. * Minor comment update * Upsie:) * Update is31fl3733.c * Return fix * more return fix * type change * more boolian logic reversal:)
Diffstat (limited to 'drivers/issi/is31fl3737.c')
0 files changed, 0 insertions, 0 deletions