From: Axel Lin <axel.lin@gmail.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: "Simon Wood" <simon@mungewell.org>,
"Michal Malý" <madcatxster@gmail.com>,
linux-input@vger.kernel.org
Subject: [PATCH 2/4] HID: lg4ff: Remove unnecessary casts of void pointers
Date: Thu, 13 Sep 2012 14:09:33 +0800 [thread overview]
Message-ID: <1347516573.3319.3.camel@phoenix> (raw)
In-Reply-To: <1347516512.3319.2.camel@phoenix>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
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;
--
1.7.9.5
next prev parent reply other threads:[~2012-09-13 6:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-13 6:08 [PATCH 1/4] HID: lg: Remove unnecessary casts of void pointers Axel Lin
2012-09-13 6:09 ` Axel Lin [this message]
2012-09-17 11:08 ` [PATCH 2/4] HID: lg4ff: " Jiri Kosina
2012-09-13 6:10 ` [PATCH 3/4] HID: prodikeys: " Axel Lin
2012-09-17 11:08 ` Jiri Kosina
2012-09-13 6:12 ` [PATCH 4/4] HID: lenovo-tpkbd: " Axel Lin
2012-09-17 11:10 ` Jiri Kosina
2012-09-17 11:07 ` [PATCH 1/4] HID: lg: " Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1347516573.3319.3.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=madcatxster@gmail.com \
--cc=simon@mungewell.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).