//[*]--------------------------------------------------------------------------------------------------[*] int odroidq_calibration (struct touch *ts) { ts->pdata->disable(ts); touch_hw_reset(ts); odroidq_sw_config(ts); ts->pdata->enable(ts); return 0; }
//[*]--------------------------------------------------------------------------------------------------[*] static ssize_t store_reset (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct touch *ts = dev_get_drvdata(dev); unsigned long val; int err; if ((err = strict_strtoul(buf, 10, &val))) return err; if((ts->pdata->reset_gpio) && (val == 1)) touch_hw_reset(ts); return count; }