This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error in software driver of LP5562

Other Parts Discussed in Thread: LP5562

HI ,

There is an error in lp5562 linux driver where it checks for program length commands. When I tried to send all the 16 commands through the led_pattern, the size check fails.

This function _is_pc_overflow checking  for ">=" should be chagned to ">". Can somebody please confirm.

static inline bool _is_pc_overflow(struct lp55xx_predef_pattern *ptn)
{
        return (ptn->size_r >= LP5562_PROGRAM_LENGTH ||
                ptn->size_g >= LP5562_PROGRAM_LENGTH ||
                ptn->size_b >= LP5562_PROGRAM_LENGTH);
}

Thanks,