Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: hid-sensors: Fix compilation warning

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>

authored by

Sachin Kamat and committed by
Jonathan Cameron
a0342342 fc96d25a

+2 -2
+2 -2
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
··· 26 26 #include <linux/iio/iio.h> 27 27 #include <linux/iio/sysfs.h> 28 28 29 - struct { 29 + static struct { 30 30 u32 usage_id; 31 31 int unit; /* 0 for default others from HID sensor spec */ 32 32 int scale_val0; /* scale, whole number */ 33 33 int scale_val1; /* scale, fraction in micros */ 34 - } static unit_conversion[] = { 34 + } unit_conversion[] = { 35 35 {HID_USAGE_SENSOR_ACCEL_3D, 0, 9, 806650}, 36 36 {HID_USAGE_SENSOR_ACCEL_3D, 37 37 HID_USAGE_SENSOR_UNITS_METERS_PER_SEC_SQRD, 1, 0},