Date: Tue, 15 Jul 2014 22:17:17 +0000 (UTC) From: Jakub Wojciech Klama <jceel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r268717 - user/jceel/soc2014_evdev/head/sys/dev/evdev Message-ID: <201407152217.s6FMHHuo037291@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jceel Date: Tue Jul 15 22:17:17 2014 New Revision: 268717 URL: http://svnweb.freebsd.org/changeset/base/268717 Log: Fake EV_FF handling until we gain a proper support for it. Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c ============================================================================== --- user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Tue Jul 15 22:16:46 2014 (r268716) +++ user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Tue Jul 15 22:17:17 2014 (r268717) @@ -482,7 +482,13 @@ evdev_ioctl_eviocgbit(struct evdev_dev * bitmap = evdev->ev_sw_flags; limit = SW_CNT; break; - + case EV_FF: + /* + * We don't support EV_FF now, so let's + * just fake it returning only zeros. + */ + bzero(data, len); + return (0); default: return (ENOTTY); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407152217.s6FMHHuo037291>