From patchwork Thu Sep 13 06:08:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1450221 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 15BF6DF24C for ; Thu, 13 Sep 2012 06:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751727Ab2IMGIj (ORCPT ); Thu, 13 Sep 2012 02:08:39 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:40082 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011Ab2IMGIh (ORCPT ); Thu, 13 Sep 2012 02:08:37 -0400 Received: by obbuo13 with SMTP id uo13so3969446obb.19 for ; Wed, 12 Sep 2012 23:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version; bh=kJVBgNkE1qjJOlv3hFNCEVFtUHY5nCxD05NByaAvfgQ=; b=JFlOWUB00tyoxCzZGs5N+UYBKZEggGmQtX5XaW1V6Pl7MQsk9T4/x2qEDuEIFnU0UR HyUTs2VqLHkK1JU8toS/L5QSnEkrvFWXhrKJXqlnirndXH6EvCkOFez+XFWSeFY4ImEH IgCPDjQPnfZxieVDPz/P3c5jK7lNlMYeJx3dCqP2g2a98aMRKskV2Pz/LuC+F6SjAaO0 9wlHnaZO4yvn6GT34iAttocAByyB6kF9a5C+zkCQ30hHEx7Nr1UftrrdnD/5T8t4I/9o 2Ph9Vp83rLJYFsoQOqvW56phA8neo9gBXXspG1XkFD9tl5Y0uJ6P7z5V/9UFqRBuEPf9 8UKg== Received: by 10.182.144.68 with SMTP id sk4mr773816obb.0.1347516517459; Wed, 12 Sep 2012 23:08:37 -0700 (PDT) Received: from [218.173.173.81] (218-173-173-81.dynamic.hinet.net. [218.173.173.81]) by mx.google.com with ESMTPS id l10sm18562480oeb.13.2012.09.12.23.08.34 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Sep 2012 23:08:36 -0700 (PDT) Message-ID: <1347516512.3319.2.camel@phoenix> Subject: [PATCH 1/4] HID: lg: Remove unnecessary casts of void pointers From: Axel Lin To: Jiri Kosina Cc: Michal =?ISO-8859-1?Q?Mal=FD?= , Michael Bauer , linux-input@vger.kernel.org Date: Thu, 13 Sep 2012 14:08:32 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Signed-off-by: Axel Lin --- drivers/hid/hid-lg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index e6eca2d..55ce2bf 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -108,7 +108,7 @@ static __u8 dfp_rdesc_fixed[] = { static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) { - struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hdev); + struct lg_drv_data *drv_data = hid_get_drvdata(hdev); if ((drv_data->quirks & LG_RDESC) && *rsize >= 90 && rdesc[83] == 0x26 && rdesc[84] == 0x8c && rdesc[85] == 0x02) { @@ -277,7 +277,7 @@ static int lg_input_mapping(struct hid_device *hdev, struct hid_input *hi, 0, 0, 0, 0, 0,183,184,185,186,187, 188,189,190,191,192,193,194, 0, 0, 0 }; - struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hdev); + struct lg_drv_data *drv_data = hid_get_drvdata(hdev); unsigned int hid = usage->hid; if (hdev->product == USB_DEVICE_ID_LOGITECH_RECEIVER && @@ -318,7 +318,7 @@ static int lg_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) { - struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hdev); + struct lg_drv_data *drv_data = hid_get_drvdata(hdev); if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && (field->flags & HID_MAIN_ITEM_RELATIVE)) @@ -334,7 +334,7 @@ static int lg_input_mapped(struct hid_device *hdev, struct hid_input *hi, static int lg_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) { - struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hdev); + struct lg_drv_data *drv_data = hid_get_drvdata(hdev); if ((drv_data->quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) { input_event(field->hidinput->input, usage->type, usage->code, @@ -415,7 +415,7 @@ err_free: static void lg_remove(struct hid_device *hdev) { - struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hdev); + struct lg_drv_data *drv_data = hid_get_drvdata(hdev); if (drv_data->quirks & LG_FF4) lg4ff_deinit(hdev);