static ssize_t show_extwatch_setting(struct device *dev, char *buf) { TOUCH_TRACE(); ext_watch_get_mode(dev); ext_watch_get_position(dev); ext_watch_get_current_time(dev); ext_watch_get_dic_st(dev); return 0; }
enum error_type ext_watch_get_cfg(struct spi_device *spi, struct ext_watch_cfg *cfg) { TOUCH_I("%s \n", __func__); DO_IF(ext_watch_get_mode(spi, cfg) != 0, error); DO_IF(ext_watch_get_position(spi, cfg) != 0, error); DO_IF(ext_watch_get_current_time(spi,cfg)!= 0, error); return NO_ERROR; error: TOUCH_I("%s Fail \n", __func__); return ERROR; }