On Mon, Jan 18, 2016 at 03:46:37PM -0800, Ping Cheng wrote: > Those events are set for all devices in current code. > > Signed-off-by: Ping Cheng <pi...@wacom.com> > --- > wacom.c | 141 > ++++++++++++++++++++++++++-------------------------------------- > 1 file changed, 57 insertions(+), 84 deletions(-) > > diff --git a/wacom.c b/wacom.c > index 4ec3290..cd89aab 100644 > --- a/wacom.c > +++ b/wacom.c [...] > - set_event(info, UI_SET_ABSBIT, ABS_Y); > - if (features->type != INTUOS5S && > - features->type != INTUOS5M && > - features->type != INTUOS5L) { > - set_event(info, UI_SET_ABSBIT, ABS_RX); > - set_event(info, UI_SET_ABSBIT, ABS_RY); > - } > - set_event(info, UI_SET_ABSBIT, ABS_RZ); > - set_event(info, UI_SET_ABSBIT, ABS_TILT_X); > - set_event(info, UI_SET_ABSBIT, ABS_TILT_Y); > - set_event(info, UI_SET_ABSBIT, ABS_PRESSURE); > - set_event(info, UI_SET_ABSBIT, ABS_DISTANCE); > - set_event(info, UI_SET_ABSBIT, ABS_WHEEL); > - set_event(info, UI_SET_ABSBIT, ABS_THROTTLE); > - set_event(info, UI_SET_ABSBIT, ABS_MISC); > - > - set_event(info, UI_SET_RELBIT, REL_WHEEL); > - > - set_event(info, UI_SET_MSCBIT, MSC_SERIAL); > - > - return 0;
I've readded the return 0 here, otherwise: wacom.c: In function ‘wacom_set_events’: wacom.c:385:1: warning: control reaches end of non-void function [-Wreturn-type] this one and 3/4 are pushed now Cheers, Peter > } > > #define USB_VENDOR_ID_WACOM 0x056a > -- > 1.9.1 > ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel