/* This function is called for all triggers. It calls the appropriate function that writes the actual trigger records.  */
void dasd_eer_write(struct dasd_device *device, struct dasd_ccw_req *cqr, unsigned int id)
/* This function is called for all triggers. It calls the appropriate function that writes the actual trigger records.  */
void dasd_eer_write(struct dasd_device *device, struct dasd_ccw_req *cqr, unsigned int id)
{
	if (!device->eer_cqr)
		return;
	switch (id) {
	case DASD_EER_FATALERROR:
	case DASD_EER_PPRCSUSPEND:
		dasd_eer_write_standard_trigger(device, cqr, id);
		break;
	case DASD_EER_NOPATH:
		dasd_eer_write_standard_trigger(device, NULL, id);
		break;
	case DASD_EER_STATECHANGE:
		dasd_eer_write_snss_trigger(device, cqr, id);
		break;
	default:
		dasd_eer_write_standard_trigger(device, NULL, id);
		break;
	}
}