HID: make hid_input_field and usbhid_modify_dquirk static

This patch makes the following needlessly global functions static:
- hid-core.c:hid_input_field()
- usbhid/hid-quirks.c:usbhid_modify_dquirk()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
Adrian Bunk 2008-03-31 01:53:56 +02:00 коммит произвёл Jiri Kosina
Родитель b54ec3c13c
Коммит abdff0f774
3 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -830,7 +830,8 @@ static void hid_process_event(struct hid_device *hid, struct hid_field *field, s
* reporting to the layer). * reporting to the layer).
*/ */
void hid_input_field(struct hid_device *hid, struct hid_field *field, __u8 *data, int interrupt) static void hid_input_field(struct hid_device *hid, struct hid_field *field,
__u8 *data, int interrupt)
{ {
unsigned n; unsigned n;
unsigned count = field->report_count; unsigned count = field->report_count;
@ -876,7 +877,6 @@ void hid_input_field(struct hid_device *hid, struct hid_field *field, __u8 *data
exit: exit:
kfree(value); kfree(value);
} }
EXPORT_SYMBOL_GPL(hid_input_field);
/* /*
* Output the field into the report. * Output the field into the report.

Просмотреть файл

@ -809,8 +809,8 @@ static struct hid_blacklist *usbhid_exists_dquirk(const u16 idVendor,
* *
* Returns: 0 OK, -error on failure. * Returns: 0 OK, -error on failure.
*/ */
int usbhid_modify_dquirk(const u16 idVendor, const u16 idProduct, static int usbhid_modify_dquirk(const u16 idVendor, const u16 idProduct,
const u32 quirks) const u32 quirks)
{ {
struct quirks_list_struct *q_new, *q; struct quirks_list_struct *q_new, *q;
int list_edited = 0; int list_edited = 0;

Просмотреть файл

@ -531,14 +531,12 @@ int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int
int hidinput_mapping_quirks(struct hid_usage *, struct input_dev *, unsigned long **, int *); int hidinput_mapping_quirks(struct hid_usage *, struct input_dev *, unsigned long **, int *);
int hidinput_event_quirks(struct hid_device *, struct hid_field *, struct hid_usage *, __s32); int hidinput_event_quirks(struct hid_device *, struct hid_field *, struct hid_usage *, __s32);
int hidinput_apple_event(struct hid_device *, struct input_dev *, struct hid_usage *, __s32); int hidinput_apple_event(struct hid_device *, struct input_dev *, struct hid_usage *, __s32);
void hid_input_field(struct hid_device *hid, struct hid_field *field, __u8 *data, int interrupt);
void hid_output_report(struct hid_report *report, __u8 *data); void hid_output_report(struct hid_report *report, __u8 *data);
void hid_free_device(struct hid_device *device); void hid_free_device(struct hid_device *device);
struct hid_device *hid_parse_report(__u8 *start, unsigned size); struct hid_device *hid_parse_report(__u8 *start, unsigned size);
/* HID quirks API */ /* HID quirks API */
u32 usbhid_lookup_quirk(const u16 idVendor, const u16 idProduct); u32 usbhid_lookup_quirk(const u16 idVendor, const u16 idProduct);
int usbhid_modify_dquirk(const u16 idVendor, const u16 idProduct, const u32 quirks);
int usbhid_quirks_init(char **quirks_param); int usbhid_quirks_init(char **quirks_param);
void usbhid_quirks_exit(void); void usbhid_quirks_exit(void);
void usbhid_fixup_report_descriptor(const u16, const u16, char *, unsigned, char **); void usbhid_fixup_report_descriptor(const u16, const u16, char *, unsigned, char **);