/* Checks whether 2 effects can be combined together  */
static int check_effects_compatible(struct ff_effect *e1, struct ff_effect *e2)
/* Checks whether 2 effects can be combined together  */
static int check_effects_compatible(struct ff_effect *e1, struct ff_effect *e2)
{
	return e1->type == e2->type &&
	       (e1->type != FF_PERIODIC ||
		e1->u.periodic.waveform == e2->u.periodic.waveform);
}