i2c-core: Storage class should be before const qualifier
authorTobias Klauser <tklauser@distanz.ch>
Sat, 16 Jan 2010 19:43:12 +0000 (20:43 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 16 Jan 2010 19:43:12 +0000 (20:43 +0100)
The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c

index 0ac2f90ab840c8f1863013ba9551a3266247f738..d610e995bbfdef8fd0a25224029efbc3060f20d1 100644 (file)
@@ -248,7 +248,7 @@ static const struct attribute_group *i2c_dev_attr_groups[] = {
        NULL
 };
 
-const static struct dev_pm_ops i2c_device_pm_ops = {
+static const struct dev_pm_ops i2c_device_pm_ops = {
        .suspend = i2c_device_pm_suspend,
        .resume = i2c_device_pm_resume,
 };