Messages in this thread | | | Date | Wed, 6 Jul 2011 15:28:49 +0900 | From | Jinyoung Park <> | Subject | Re: [PATCH 1/2] regulator: aat2870: Fix the logic of checking if no id is matched in aat2870_get_regulator |
| |
Hi, Axel
> In current implementation, the pointer ri is not NULL if no id is matched. > Fix it by checking i == ARRAY_SIZE(aat2870_regulators) if no id is matched. You are right, the ri never be NULL in current implementation. That's my mistake, I didn't find it when writing and verifying the driver.
Thanks, Jin.
| |