/* sysfs: /sys/class/touch/cmcs/line_cs1 */
ssize_t ist30xx_line_cs1_show(struct device *dev, struct device_attribute *attr,
			      char *buf)
{
	CMCS_INFO *cmcs = (CMCS_INFO *)&ts_cmcs->cmcs;

	if (cmcs_ready == CMCS_NOT_READY)
		return sprintf(buf, "CMCS test is not work!!\n");

	if ((cmcs->cmd.mode) && !(cmcs->cmd.mode & FLAG_ENABLE_CS))
		return 0;

	return print_line_cmcs(CMCS_FLAG_CS1, ts_cmcs_buf->cs1, buf);
}
/* sysfs: /sys/class/touch/cmcs/line_cs0 */
ssize_t ist30xx_line_cs0_show(struct device *dev, struct device_attribute *attr,
			      char *buf)
{
	struct ist30xx_data *data = dev_get_drvdata(dev);
	CMCS_INFO *cmcs = (CMCS_INFO *)&data->cmcs->cmcs;

	if (data->cmcs_ready == CMCS_NOT_READY)
		return sprintf(buf, "CMCS test is not work!!\n");

	if ((cmcs->cmd.mode) && !(cmcs->cmd.mode & FLAG_ENABLE_CS))
		return 0;

	return print_line_cmcs(data, CMCS_FLAG_CS0, data->cmcs_buf->cs0, buf);
}