Skip to contentSkip to conversation

iio: hid-sensors: make hid_sensor_get_reporting_interval static

PATCH In review Daniel Baluta 2 participants 2 messages Jun 30, 2014 – Jul 7, 2014 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: hid-sensors: make hid_sensor_get_reporting_interval static

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?

---
 drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/common/hid-sensors/hid-sensor-attributes.c +1 -0
index 403dd3d..8220df1 100644
@@ -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)
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 7 lines · Daniel Baluta

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?

Applied to the togreg branch of iio.git, initially pushed out as testing for the autobuilders to play. Thanks,

Jonathan

Quoted 17 lines
---
  drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 1 +
  1 file changed, 1 insertion(+)
drivers/iio/common/hid-sensors/hid-sensor-attributes.c +1 -0
index 403dd3d..8220df1 100644
@@ -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)