]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: hid-sensors: Fix compilation warning
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 7 Mar 2014 07:44:00 +0000 (07:44 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 23 Feb 2017 03:54:29 +0000 (03:54 +0000)
commit a034234277d2f51104deadd559dd9584ba00a8cc upstream.

Move the 'static' keyword to beginning of definition to silence the
following compilation warning:
drivers/iio/common/hid-sensors/hid-sensor-attributes.c:34:1: warning: â€˜static’ is not at beginning of declaration [-Wold-style-declaration]

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c

index b321a253eba8cf2165e856c92b23b02be838e475..5a1700ef3c85d607029e71f0c8dc025292c351de 100644 (file)
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 
-struct {
+static struct {
        u32 usage_id;
        int unit; /* 0 for default others from HID sensor spec */
        int scale_val0; /* scale, whole number */
        int scale_val1; /* scale, fraction in micros */
-} static unit_conversion[] = {
+} unit_conversion[] = {
        {HID_USAGE_SENSOR_ACCEL_3D, 0, 9, 806650},
        {HID_USAGE_SENSOR_ACCEL_3D,
                HID_USAGE_SENSOR_UNITS_METERS_PER_SEC_SQRD, 1, 0},