mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
media: i2c: hall-dc-motor: fix compilation issue on 32bit
ERROR: "__aeabi_uldivmod" [drivers/media/i2c/hall-dc-motor.ko] undefined!
Fixes: a73b62eb59 ("media: add hall-dc-motor driver for camera iris")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I22fec672086f1187da795a510373eb3ee579e1f2
This commit is contained in:
@@ -92,7 +92,7 @@ static int motor_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
case V4L2_CID_IRIS_ABSOLUTE:
|
||||
motor->pwm_state.enabled = true;
|
||||
motor->pwm_state.duty_cycle =
|
||||
(u64)motor->pwm_state.period * ctrl->val / IRIS_MAX_LOG;
|
||||
div64_u64((u64)motor->pwm_state.period * ctrl->val, IRIS_MAX_LOG);
|
||||
pwm_apply_state(motor->pwm, &motor->pwm_state);
|
||||
dev_dbg(motor->dev, "iris, ctrl->val %d, pwm duty %lld, period %lld, polarity %d\n",
|
||||
ctrl->val,
|
||||
|
||||
Reference in New Issue
Block a user