aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2010-12-08 02:02:48 -0500
committerJiri Kosina <jkosina@suse.cz>2010-12-08 08:35:14 -0500
commit5bea7660bba973dc5e8e9d92b11fb1dd5b524ebf (patch)
tree511ae632c2d2c22d94956ed2d236bd8654d27ff0 /drivers/hid/hid-input.c
parent33d6eb570b1f3fe5ba93cef465c5be66535c2c9a (diff)
HID: add hid_hw_open/close/power() handlers
Instead of exposing the guts of hid->ll_driver relationship to HID sub-drivers provide these helpers to encapsulate the details. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 834ef47b76d6..b718f7144ce1 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -772,14 +772,14 @@ static int hidinput_open(struct input_dev *dev)
772{ 772{
773 struct hid_device *hid = input_get_drvdata(dev); 773 struct hid_device *hid = input_get_drvdata(dev);
774 774
775 return hid->ll_driver->open(hid); 775 return hid_hw_open(hid);
776} 776}
777 777
778static void hidinput_close(struct input_dev *dev) 778static void hidinput_close(struct input_dev *dev)
779{ 779{
780 struct hid_device *hid = input_get_drvdata(dev); 780 struct hid_device *hid = input_get_drvdata(dev);
781 781
782 hid->ll_driver->close(hid); 782 hid_hw_close(hid);
783} 783}
784 784
785/* 785/*