From patchwork Thu Sep 17 17:26:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elias Vanderstuyft X-Patchwork-Id: 7209261 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5CA95BEEC1 for ; Thu, 17 Sep 2015 17:27:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6A14A2074B for ; Thu, 17 Sep 2015 17:27:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9CC4A20742 for ; Thu, 17 Sep 2015 17:27:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751953AbbIQR1M (ORCPT ); Thu, 17 Sep 2015 13:27:12 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:36616 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751849AbbIQR1L (ORCPT ); Thu, 17 Sep 2015 13:27:11 -0400 Received: by wicgb1 with SMTP id gb1so402651wic.1; Thu, 17 Sep 2015 10:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=vsV6JHvRPxExSYgoJ0jacjuRyPKrbnuVqhoSloik5+8=; b=QEw9dLAxHM9BbQrO423TcHNBN7t9YHu0zPeb2BF1cAmUST/ox2LJirbIJqWEpK5mSN v/4w5sZ6DBmYnB0NDaM0ArJFIjhRaIJvCDbobsjYrV6detslHZMYTiDDMS/apJip9XS4 0Q6jioSUDRpZfJXkWDvirqM6gq0cJaLa92sGwrRfTtA91Rfvf6JyYgbxwFQpcP+qQDSd W3ASpnWWhrUdbJVarmZWJcJWU6z3pJIt9lFNeUJ3Q42R7VpUaQ69zF/q1vNKYafY1XFc 5eoQmIiepn8+uqzK9VB01uCif1eohNfIkF2dbXS0Wnbs0qoe5l7X9f1WJLDQPzrhoUq7 BFEw== X-Received: by 10.194.83.70 with SMTP id o6mr598173wjy.44.1442510829792; Thu, 17 Sep 2015 10:27:09 -0700 (PDT) Received: from localhost.localdomain (d8D877437.access.telenet.be. [141.135.116.55]) by smtp.googlemail.com with ESMTPSA id p6sm2349663wif.4.2015.09.17.10.27.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 10:27:09 -0700 (PDT) From: Elias Vanderstuyft To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Elias Vanderstuyft Subject: [PATCH] Input: input.h: Fix EVIOCSFF macro inconsistency by using _IOW() Date: Thu, 17 Sep 2015 19:26:36 +0200 Message-Id: <1442510796-3062-1-git-send-email-elias.vds@gmail.com> X-Mailer: git-send-email 1.9.3 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Just like the EVIOCSABS(abs) macro, use the more compact _IOW(..., type) instead of _IOC(_IOC_WRITE, ..., sizeof(type)) for the EVIOCSFF macro. Signed-off-by: Elias Vanderstuyft --- include/uapi/linux/input.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index 731417c..63915a7 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h @@ -147,7 +147,7 @@ struct input_keymap_entry { #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) /* get abs value/limits */ #define EVIOCSABS(abs) _IOW('E', 0xc0 + (abs), struct input_absinfo) /* set abs value/limits */ -#define EVIOCSFF _IOC(_IOC_WRITE, 'E', 0x80, sizeof(struct ff_effect)) /* send a force effect to a force feedback device */ +#define EVIOCSFF _IOW('E', 0x80, struct ff_effect) /* send a force effect to a force feedback device */ #define EVIOCRMFF _IOW('E', 0x81, int) /* Erase a force effect */ #define EVIOCGEFFECTS _IOR('E', 0x84, int) /* Report number of effects playable at the same time */