msm: camera: bug fix in IR LED driver
This commit addresses below issues
- Previous review comments given by kernel reviewers
- Unnecessary Debug prints
- Handling probe deferring
- Bug fix to turn off IR LED
- To turn off IR LED, pwm_disable api is used. If duty cycle is not zero
LED remains ON. To turn off LED, We need to configure pwm duty cycle to
zero with valid period.
- If user mode component does not send valid period and duty cycle, it
initializes these two with default values.
CRs-Fixed: 1063954
Change-Id: I8ec89830fc1e489fca5dd6cee01583d5ea0ed19d
Signed-off-by:
Alok Pandey <akumarpa@codeaurora.org>
Loading
Please register or sign in to comment