> > @@ -1247,11 +1247,11 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv) > > input_set_abs_params(dev, ABS_PRESSURE, 0, 255, 0, 0); > > > > if (SYN_CAP_IMAGE_SENSOR(priv->ext_cap_0c)) { > > - input_mt_init_slots(dev, 2, 0); > > set_abs_position_params(dev, priv, ABS_MT_POSITION_X, > > ABS_MT_POSITION_Y); > > /* Image sensors can report per-contact pressure */ > > input_set_abs_params(dev, ABS_MT_PRESSURE, 0, 255, 0, 0); > > + input_mt_init_slots(dev, 2, INPUT_MT_POINTER); > > ABS_X/Y/PRESSURE are already init'ed in the common code a few lines > above the if (). > Perhaps you could refactor things a bit to only define them once? I looked into it, of course, but there are many other values (event bits, event properties) that also get duplicated. Treating them the same way leads to a fairly large patch, for a small change in truth. The present patch is the balanced optimum, IMHO. It is also easy to prove. Henrik -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html