iio: hid-sensors: make hid_sensor_get_reporting_interval static
authorDaniel Baluta <daniel.baluta@intel.com>
Mon, 30 Jun 2014 09:29:00 +0000 (10:29 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 7 Jul 2014 12:29:49 +0000 (13:29 +0100)
This fixes the following sparse warning:

  CHECK   drivers/iio/common/hid-sensors/hid-sensor-attributes.c
drivers/iio/common/hid-sensors/hid-sensor-attributes.c:346:5: warning:
symbol 'hid_sensor_get_reporting_interval' was not declared. Should it be static?

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c

index 1614340..25b01e1 100644 (file)
@@ -343,6 +343,7 @@ int hid_sensor_format_scale(u32 usage_id,
 }
 EXPORT_SYMBOL(hid_sensor_format_scale);
 
+static
 int hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev,
                                        u32 usage_id,
                                        struct hid_sensor_common *st)