/* Analyse the changes in an effect, and tell if we need to send a magnitude parameter packet  */
static int need_magnitude_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *effect)
/* Analyse the changes in an effect, and tell if we need to send a magnitude parameter packet  */
static int need_magnitude_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *effect)
{
	if (effect->type != FF_CONSTANT) {
		dev_warn(&iforce->dev->dev, "bad effect type in %s\n",
			 __func__);
		return 0;
	}
	return old->u.constant.level != effect->u.constant.level;
}