[AS7326-5X] Fix code bug for led drv (#8555)

Signed-off-by: Jostar Yang <jostar_yang@accton.com.tw>
This commit is contained in:
jostar-yang 2022-03-02 05:33:42 +08:00 committed by GitHub
parent 74e790c89f
commit 76363cfa16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ static int accton_getLedReg(enum led_type type, u8 *reg)
int i;
for (i = 0; i < ARRAY_SIZE(led_reg_map); i++) {
if(led_reg_map[i].types ==type)) {
if(led_reg_map[i].types ==type) {
*reg = led_reg_map[i].reg_addr;
return 0;
}