Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
662470d2
Commit
662470d2
authored
Jul 12, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pid.c build when built as a module.
parent
5365c6b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
22 deletions
+1
-22
drivers/usb/input/Makefile
drivers/usb/input/Makefile
+1
-3
drivers/usb/input/pid.c
drivers/usb/input/pid.c
+0
-19
No files found.
drivers/usb/input/Makefile
View file @
662470d2
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
hid-objs
:=
hid-core.o
hid-objs
:=
hid-core.o
# Optional parts of multipart objects.
# Optional parts of multipart objects.
ifeq
($(CONFIG_USB_HIDDEV),y)
ifeq
($(CONFIG_USB_HIDDEV),y)
hid-objs
+=
hiddev.o
hid-objs
+=
hiddev.o
endif
endif
...
@@ -15,15 +16,12 @@ endif
...
@@ -15,15 +16,12 @@ endif
ifeq
($(CONFIG_HID_PID),y)
ifeq
($(CONFIG_HID_PID),y)
hid-objs
+=
pid.o
hid-objs
+=
pid.o
endif
endif
ifeq
($(CONFIG_LOGITECH_RUMBLE),y)
ifeq
($(CONFIG_LOGITECH_RUMBLE),y)
hid-objs
+=
hid-lgff.o
hid-objs
+=
hid-lgff.o
endif
endif
ifeq
($(CONFIG_LOGITECH_3D),y)
ifeq
($(CONFIG_LOGITECH_3D),y)
hid-objs
+=
hid-lg3dff.o
hid-objs
+=
hid-lg3dff.o
endif
endif
ifeq
($(CONFIG_HID_FF),y)
ifeq
($(CONFIG_HID_FF),y)
hid-objs
+=
hid-ff.o
hid-objs
+=
hid-ff.o
endif
endif
...
...
drivers/usb/input/pid.c
View file @
662470d2
...
@@ -39,10 +39,6 @@
...
@@ -39,10 +39,6 @@
#define DEBUG
#define DEBUG
MODULE_AUTHOR
(
"Rodrigo Damazio <rdamazio@lsi.usp.br>"
);
MODULE_DESCRIPTION
(
"USB PID(Physical Interface Device) Driver"
);
MODULE_LICENSE
(
"GPL"
);
#define CHECK_OWNERSHIP(i, hid_pid) \
#define CHECK_OWNERSHIP(i, hid_pid) \
((i) < FF_EFFECTS_MAX && i >= 0 && \
((i) < FF_EFFECTS_MAX && i >= 0 && \
test_bit(FF_PID_FLAGS_USED, &hid_pid->effects[(i)].flags) && \
test_bit(FF_PID_FLAGS_USED, &hid_pid->effects[(i)].flags) && \
...
@@ -313,18 +309,3 @@ int hid_pid_init(struct hid_device *hid)
...
@@ -313,18 +309,3 @@ int hid_pid_init(struct hid_device *hid)
return
0
;
return
0
;
}
}
static
int
__init
hid_pid_modinit
(
void
)
{
return
0
;
}
static
void
__exit
hid_pid_modexit
(
void
)
{
}
module_init
(
hid_pid_modinit
);
module_exit
(
hid_pid_modexit
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment