diff mbox

[1/3] HID: Export hid_register_field

Message ID 1268083780.9018.19.camel@localhost.localdomain (mailing list archive)
State New, archived
Delegated to: Jiri Kosina
Headers show

Commit Message

Benjamin Tissoires March 8, 2010, 9:29 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index bfd8301..3313dff 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -83,7 +83,7 @@  EXPORT_SYMBOL_GPL(hid_register_report);
  * Register a new field for this report.
  */
 
-static struct hid_field *hid_register_field(struct hid_report *report, unsigned usages, unsigned values)
+struct hid_field *hid_register_field(struct hid_report *report, unsigned usages, unsigned values)
 {
 	struct hid_field *field;
 
@@ -103,6 +103,7 @@  static struct hid_field *hid_register_field(struct hid_report *report, unsigned
 
 	return field;
 }
+EXPORT_SYMBOL_GPL(hid_register_field);
 
 /*
  * Open a collection. The type/usage is pushed on the stack.
diff --git a/include/linux/hid.h b/include/linux/hid.h
index b1344ec..50f17de 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -691,6 +691,7 @@  int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int
 void hid_output_report(struct hid_report *report, __u8 *data);
 struct hid_device *hid_allocate_device(void);
 struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id);
+struct hid_field *hid_register_field(struct hid_report *report, unsigned usages, unsigned values);
 int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size);
 int hid_check_keys_pressed(struct hid_device *hid);
 int hid_connect(struct hid_device *hid, unsigned int connect_mask);