/* Remove the provided input device. Make sure not to use the provided input device afterwards anymore.  */
void lv_indev_delete(lv_indev_t *indev)
/* Remove the provided input device. Make sure not to use the provided input device afterwards anymore.  */
void lv_indev_delete(lv_indev_t *indev)
{
    LV_ASSERT_NULL(indev);
    LV_ASSERT_NULL(indev->driver);
    LV_ASSERT_NULL(indev->driver->read_timer);
    lv_timer_del(indev->driver->read_timer);
    _lv_ll_remove(&LV_GC_ROOT(_lv_indev_ll), indev);
    lv_mem_free(indev);
}