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:
5a696d9
)
extcon: max77693: Constify struct regmap_config
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Mon, 5 Jan 2015 08:57:27 +0000
(09:57 +0100)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 26 Jan 2015 04:47:55 +0000
(13:47 +0900)
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: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-max77693.c
patch
|
blob
|
history
diff --git
a/drivers/extcon/extcon-max77693.c
b/drivers/extcon/extcon-max77693.c
index 740a14d35072a5aaf2d657d6dae628cade715200..af165fd0c6f54761a56d1cf75d81663173ff400a 100644
(file)
--- a/
drivers/extcon/extcon-max77693.c
+++ b/
drivers/extcon/extcon-max77693.c
@@
-1033,7
+1033,7
@@
static irqreturn_t max77693_muic_irq_handler(int irq, void *data)
return IRQ_HANDLED;
}
-static struct regmap_config max77693_muic_regmap_config = {
+static
const
struct regmap_config max77693_muic_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
};