* [PATCH] iio: hid-sensors: make hid_sensor_get_reporting_interval static
@ 2014-06-30 9:29 Daniel Baluta
2014-07-07 12:30 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Baluta @ 2014-06-30 9:29 UTC (permalink / raw)
To: jic23
Cc: srinivas.pandruvada, archana.patni, subramony.sesha, linux-iio,
linux-kernel, 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?
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
---
drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
index 403dd3d..8220df1 100644
--- a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
+++ b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
@@ -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)
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: hid-sensors: make hid_sensor_get_reporting_interval static
2014-06-30 9:29 [PATCH] iio: hid-sensors: make hid_sensor_get_reporting_interval static Daniel Baluta
@ 2014-07-07 12:30 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2014-07-07 12:30 UTC (permalink / raw)
To: Daniel Baluta
Cc: srinivas.pandruvada, archana.patni, subramony.sesha, linux-iio,
linux-kernel
On 30/06/14 10:29, Daniel Baluta wrote:
> 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>
Applied to the togreg branch of iio.git, initially pushed out as testing
for the autobuilders to play. Thanks,
Jonathan
> ---
> drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
> index 403dd3d..8220df1 100644
> --- a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
> +++ b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
> @@ -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)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-07 12:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-30 9:29 [PATCH] iio: hid-sensors: make hid_sensor_get_reporting_interval static Daniel Baluta
2014-07-07 12:30 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).