diff options
Diffstat (limited to 'drivers/motor')
-rw-r--r-- | drivers/motor/ztm620_motor.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/motor/ztm620_motor.c b/drivers/motor/ztm620_motor.c index 1fad3cf464e6..0003ec0e98da 100644 --- a/drivers/motor/ztm620_motor.c +++ b/drivers/motor/ztm620_motor.c @@ -729,6 +729,14 @@ int ztm620_motor_reset_handler(void) 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, |