[components][drivers] update : Move clear_count() function from ops->control() to ops->clear_count()

This commit is contained in:
tangweikang
2019-08-12 13:47:03 +08:00
parent e5dc60e3cf
commit 2b9a9e0163
2 changed files with 4 additions and 1 deletions
@@ -38,6 +38,7 @@ struct rt_encoder_ops
{
rt_err_t (*init)(struct rt_encoder_device *encoder);
rt_int32_t (*get_count)(struct rt_encoder_device *encoder);
rt_err_t (*clear_count)(struct rt_encoder_device *encoder);
rt_err_t (*control)(struct rt_encoder_device *encoder, rt_uint32_t cmd, void *args);
};