Skip to content

Commit

Permalink
pwm: pca9685: Constify struct regmap_config
Browse files Browse the repository at this point in the history
The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
  • Loading branch information
Krzysztof Kozlowski authored and Thierry Reding committed Mar 11, 2015
1 parent 67d7bc4 commit c456fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-pca9685.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static const struct pwm_ops pca9685_pwm_ops = {
.owner = THIS_MODULE,
};

static struct regmap_config pca9685_regmap_i2c_config = {
static const struct regmap_config pca9685_regmap_i2c_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = PCA9685_NUMREGS,
Expand Down

0 comments on commit c456fbb

Please sign in to comment.