static ssize_t show_tabletDiagnosticMessage(struct device *dev, char *buf)
static ssize_t show_tabletDiagnosticMessage(struct device *dev, struct device_attribute *attr, char *buf)
static ssize_t show_tabletDiagnosticMessage(struct device *dev, char *buf){	struct aiptek *aiptek = dev_get_drvdata(dev);	char *retMsg;	if (aiptek == NULL)		return 0;	switch (aiptek->diagnostic) {	case AIPTEK_DIAGNOSTIC_NA:		retMsg = "no errors\n";		break;	case AIPTEK_DIAGNOSTIC_SENDING_RELATIVE_IN_ABSOLUTE:		retMsg = "Error: receiving relative reports\n";		break;	case AIPTEK_DIAGNOSTIC_SENDING_ABSOLUTE_IN_RELATIVE:		retMsg = "Error: receiving absolute reports\n";		break;	case AIPTEK_DIAGNOSTIC_TOOL_DISALLOWED:		if (aiptek->curSetting.pointerMode ==		    AIPTEK_POINTER_ONLY_MOUSE_MODE) {			retMsg = "Error: receiving stylus reports\n";		} else {			retMsg = "Error: receiving mouse reports\n";		}		break;	default:		return 0;	}	return snprintf(buf, PAGE_SIZE, retMsg);}