projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67d7bc4
)
pwm: pca9685: Constify struct regmap_config
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Tue, 24 Feb 2015 09:40:24 +0000
(10:40 +0100)
committer
Thierry 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
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-pca9685.c
b/drivers/pwm/pwm-pca9685.c
index 3fb775ded0dff062e07f6d34e2f37f7e8bb93d1a..34b5c275a92a3ca592c5fee09b8ca45634caea49 100644
(file)
--- a/
drivers/pwm/pwm-pca9685.c
+++ b/
drivers/pwm/pwm-pca9685.c
@@
-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,