/* Analyse the changes in an effect, and tell if we need to send an effect packet  */
static int need_core(struct ff_effect *old, struct ff_effect *new)
/* Analyse the changes in an effect, and tell if we need to send an effect packet  */
static int need_core(struct ff_effect *old, struct ff_effect *new)
{
	if (old->direction != new->direction
		|| old->trigger.button != new->trigger.button
		|| old->trigger.interval != new->trigger.interval
		|| old->replay.length != new->replay.length
		|| old->replay.delay != new->replay.delay)
		return 1;
	return 0;
}