pwm: pca9685: Constify struct regmap_config
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 24 Feb 2015 09:40:24 +0000 (10:40 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 11 Mar 2015 09:25:13 +0000 (10:25 +0100)
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>
drivers/pwm/pwm-pca9685.c

index 3fb775ded0dff062e07f6d34e2f37f7e8bb93d1a..34b5c275a92a3ca592c5fee09b8ca45634caea49 100644 (file)
@@ -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,