Skip to contentSkip to conversation

:Fix warnings from drivers/i2c/i2c-core.c

PATCH Jean Delvare 1 participant 1 message Aug 29, 2009 1 message not in the archive Linux-next tree

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1249977226.2400.13.camel@HunTEr

#1 lore raw

Hi Vibi,

Quoted 5 lines · vibi sreenivasan

Fix Following Warnings

drivers/i2c/i2c-core.c:234: warning: initialization from incompatible pointer type drivers/i2c/i2c-core.c:537: warning: initialization from incompatible pointer type

Thanks for reporting. Please add the linux-i2c list in Cc next time too.

Quoted 1 line

Signed-off-by lines should only include developer names, not companies names nor countries.

Quoted 18 lines
---
 drivers/i2c/i2c-core.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/i2c-core.c +1 -1
index eeb9ae5..8d80fce 100644
@@ -214,7 +214,7 @@ static struct attribute_group i2c_dev_attr_group = {
        .attrs          = i2c_dev_attrs,
 };
 
-static struct attribute_group *i2c_dev_attr_groups[] = {
+static const struct attribute_group *i2c_dev_attr_groups[] = {
        &i2c_dev_attr_group,
        NULL
 };

drivers/i2c/i2c-core.c static struct attribute_group i2c_adapter_attr_group = { · line 534

Quoted 8 lines
drivers/i2c/i2c-core.c +1 -1
@@ -528,7 +528,7 @@ static struct attribute_group i2c_adapter_attr_group = {
        .attrs          = i2c_adapter_attrs,
 };
 
-static struct attribute_group *i2c_adapter_attr_groups[] = {
+static const struct attribute_group *i2c_adapter_attr_groups[] = {
        &i2c_adapter_attr_group,
        NULL
 };

Patch was corrupted by your e-mail client, I wasn't able to apply it. Please check your configuration for next time.

Anyway, as these warnings are introduced by patches which have not been committed yet, I will update these patches rather than adding the fixes as a separate patch.

Signature · 1 line
Jean Delvare