Add exported ztm620_motor_is_running() function to inform the motor state
to outside of ztm620 device driver.
Change-Id: If9e1b42755d0b2c7d8c1f10d78746be58d011b6b
Signed-off-by: jeongsup.jeong <jeongsup.jeong@samsung.com>
[cw00.choi: Add commit-msg as the public style]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
return 0;
}
+bool ztm620_motor_is_running(void)
+{
+ if (g_Ztm620MotorData)
+ return g_Ztm620MotorData->running;
+ else
+ return false;
+}
+
static struct regmap_config ztm620_motor_i2c_regmap = {
.reg_bits = 8,
.val_bits = 8,
};
int ztm620_motor_reset_handler(void);
+bool ztm620_motor_is_running(void);
#endif