Skip to content

Commit

Permalink
hwmon: Make regmap configs const
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
AxelLin authored and groeck committed Aug 4, 2014
1 parent fa0efc4 commit 034b44b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/hwmon/emc1403.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ static bool emc1403_regmap_is_volatile(struct device *dev, unsigned int reg)
}
}

static struct regmap_config emc1403_regmap_config = {
static const struct regmap_config emc1403_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.cache_type = REGCACHE_RBTREE,
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/ltc2945.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ static struct attribute *ltc2945_attrs[] = {
};
ATTRIBUTE_GROUPS(ltc2945);

static struct regmap_config ltc2945_regmap_config = {
static const struct regmap_config ltc2945_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = LTC2945_MIN_ADIN_THRES_L,
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/ltc4222.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static struct attribute *ltc4222_attrs[] = {
};
ATTRIBUTE_GROUPS(ltc4222);

static struct regmap_config ltc4222_regmap_config = {
static const struct regmap_config ltc4222_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = LTC4222_ADC_CONTROL,
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/ltc4260.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static struct attribute *ltc4260_attrs[] = {
};
ATTRIBUTE_GROUPS(ltc4260);

static struct regmap_config ltc4260_regmap_config = {
static const struct regmap_config ltc4260_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = LTC4260_ADIN,
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/tmp103.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static bool tmp103_regmap_is_volatile(struct device *dev, unsigned int reg)
return reg == TMP103_TEMP_REG;
}

static struct regmap_config tmp103_regmap_config = {
static const struct regmap_config tmp103_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = TMP103_THIGH_REG,
Expand Down

0 comments on commit 034b44b

Please sign in to comment.