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:
Tao Huang
2020-12-14 20:55:54 +08:00
parent 427ab8296d
commit f8db99ebac

View File

@@ -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,