From patchwork Thu Sep 13 06:09:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1450231 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 EF08FDF24C for ; Thu, 13 Sep 2012 06:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751505Ab2IMGJj (ORCPT ); Thu, 13 Sep 2012 02:09:39 -0400 Received: from mail-oa0-f46.google.com ([209.85.219.46]:33903 "EHLO mail-oa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146Ab2IMGJi (ORCPT ); Thu, 13 Sep 2012 02:09:38 -0400 Received: by oago6 with SMTP id o6so1616929oag.19 for ; Wed, 12 Sep 2012 23:09:38 -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:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:mime-version; bh=fNZJ42kVM1KMpBjC4Nq219goA4AhAqpMjsFwfgkQGxc=; b=Iif6PccZjRo1BK8u6FVx6l7dyricNLi2yTSi6XhqGDMTNEFwIOG2Ywg1jCN/0LhSpa rZHybW1tTZiZ9DwGGkXCN1xOYF0prbEt8YBJYd5Y9YCXA/dIlhs+/v/gXByvQ4ztVxju cMp0nfPWrmW4nX+QoxBIPmATSgDjD3oI602ILfJtnRbKSa0iwXla3S8SyCMZO6wdpgQR VXos6d/PPzHJVtS74EkEAZu4G/O3pUt6q/1DqgG4WLrOANVs3Kf1YpxdgG2MZBFX0OUv +0ds906eSkgUzV/s0eVjSajOeZRUEaXVRpxDT8dCULyNvVdNNt/ws6TIMz/34nK5C+Lp iAdw== Received: by 10.182.18.143 with SMTP id w15mr738507obd.6.1347516578242; Wed, 12 Sep 2012 23:09:38 -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 rg10sm5740097obc.14.2012.09.12.23.09.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Sep 2012 23:09:37 -0700 (PDT) Message-ID: <1347516573.3319.3.camel@phoenix> Subject: [PATCH 2/4] HID: lg4ff: Remove unnecessary casts of void pointers From: Axel Lin To: Jiri Kosina Cc: Simon Wood , Michal =?ISO-8859-1?Q?Mal=FD?= , linux-input@vger.kernel.org Date: Thu, 13 Sep 2012 14:09:33 +0800 In-Reply-To: <1347516512.3319.2.camel@phoenix> References: <1347516512.3319.2.camel@phoenix> 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-lg4ff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index f3390ee..da23c6b 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c @@ -360,7 +360,7 @@ static void lg4ff_led_set_brightness(struct led_classdev *led_cdev, { struct device *dev = led_cdev->dev->parent; struct hid_device *hid = container_of(dev, struct hid_device, dev); - struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hid); + struct lg_drv_data *drv_data = hid_get_drvdata(hid); struct lg4ff_device_entry *entry; int i, state = 0; @@ -395,7 +395,7 @@ static enum led_brightness lg4ff_led_get_brightness(struct led_classdev *led_cde { struct device *dev = led_cdev->dev->parent; struct hid_device *hid = container_of(dev, struct hid_device, dev); - struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hid); + struct lg_drv_data *drv_data = hid_get_drvdata(hid); struct lg4ff_device_entry *entry; int i, value = 0;