diff --git a/drivers/leds/leds-lp50xx.c b/drivers/leds/leds-lp50xx.c index 76ca5cc1347c..52246565f15d 100644 --- a/drivers/leds/leds-lp50xx.c +++ b/drivers/leds/leds-lp50xx.c @@ -336,7 +336,7 @@ enum lp50xx_model { * @reset_reg: device reset register */ struct lp50xx_chip_info { - const struct regmap_config lp50xx_regmap_config; + const struct regmap_config *lp50xx_regmap_config; int model_id; u8 max_modules; u8 num_leds; @@ -357,7 +357,7 @@ static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = { .bank_brt_reg = LP5012_BNK_BRT, .bank_mix_reg = LP5012_BNKA_CLR, .reset_reg = LP5012_RESET, - .lp50xx_regmap_config = lp5012_regmap_config, + .lp50xx_regmap_config = &lp5012_regmap_config, }, [LP5012] = { .model_id = LP5012, @@ -368,7 +368,7 @@ static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = { .bank_brt_reg = LP5012_BNK_BRT, .bank_mix_reg = LP5012_BNKA_CLR, .reset_reg = LP5012_RESET, - .lp50xx_regmap_config = lp5012_regmap_config, + .lp50xx_regmap_config = &lp5012_regmap_config, }, [LP5018] = { .model_id = LP5018, @@ -379,7 +379,7 @@ static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = { .bank_brt_reg = LP5024_BNK_BRT, .bank_mix_reg = LP5024_BNKA_CLR, .reset_reg = LP5024_RESET, - .lp50xx_regmap_config = lp5024_regmap_config, + .lp50xx_regmap_config = &lp5024_regmap_config, }, [LP5024] = { .model_id = LP5024, @@ -390,7 +390,7 @@ static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = { .bank_brt_reg = LP5024_BNK_BRT, .bank_mix_reg = LP5024_BNKA_CLR, .reset_reg = LP5024_RESET, - .lp50xx_regmap_config = lp5024_regmap_config, + .lp50xx_regmap_config = &lp5024_regmap_config, }, [LP5030] = { .model_id = LP5030, @@ -401,7 +401,7 @@ static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = { .bank_brt_reg = LP5036_BNK_BRT, .bank_mix_reg = LP5036_BNKA_CLR, .reset_reg = LP5036_RESET, - .lp50xx_regmap_config = lp5036_regmap_config, + .lp50xx_regmap_config = &lp5036_regmap_config, }, [LP5036] = { .model_id = LP5036, @@ -412,7 +412,7 @@ static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = { .bank_brt_reg = LP5036_BNK_BRT, .bank_mix_reg = LP5036_BNKA_CLR, .reset_reg = LP5036_RESET, - .lp50xx_regmap_config = lp5036_regmap_config, + .lp50xx_regmap_config = &lp5036_regmap_config, }, }; @@ -716,7 +716,7 @@ static int lp50xx_probe(struct i2c_client *client, i2c_set_clientdata(client, led); led->regmap = devm_regmap_init_i2c(client, - &led->chip_info->lp50xx_regmap_config); + led->chip_info->lp50xx_regmap_config); if (IS_ERR(led->regmap)) { ret = PTR_ERR(led->regmap); dev_err(&client->dev, "Failed to allocate register map: %d\n",