From patchwork Tue Jan 4 05:37:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Ott X-Patchwork-Id: 449641 X-Patchwork-Delegate: jikos@jikos.cz Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0460XlQ016007 for ; Tue, 4 Jan 2011 06:00:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751693Ab1ADGAE (ORCPT ); Tue, 4 Jan 2011 01:00:04 -0500 Received: from core.signal11.us ([64.251.29.136]:58057 "EHLO core.signal11.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699Ab1ADGAA (ORCPT ); Tue, 4 Jan 2011 01:00:00 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by core.signal11.us (Postfix) with SMTP id 63DBD1CCAB6D for ; Tue, 4 Jan 2011 00:37:29 -0500 (EST) Received: from localhost.localdomain (c-76-29-154-30.hsd1.fl.comcast.net [76.29.154.30]) by core.signal11.us (Postfix) with ESMTP id 669241CCAB64; Tue, 4 Jan 2011 00:37:27 -0500 (EST) From: Alan Ott To: Jiri Kosina , Stefan Achatz , Antonio Ospite , Tejun Heo , Marcel Holtmann , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Alan Ott Subject: [PATCH 1/1] hidraw: Added Compatibility ioctl() for 32-bit applications. Date: Tue, 4 Jan 2011 00:37:22 -0500 Message-Id: <1294119442-6827-2-git-send-email-alan@signal11.us> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1294119442-6827-1-git-send-email-alan@signal11.us> References: <1294119442-6827-1-git-send-email-alan@signal11.us> X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Tue Jan 4 00:37:29 2011 X-DSPAM-Confidence: 0.9899 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4d22b219251899179018503 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 04 Jan 2011 06:00:33 +0000 (UTC) diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 29495e6..57ccc5f 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c @@ -428,6 +428,9 @@ static const struct file_operations hidraw_ops = { .open = hidraw_open, .release = hidraw_release, .unlocked_ioctl = hidraw_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = hidraw_ioctl, +#endif }; void hidraw_report_event(struct hid_device *hid, u8 *data, int len)