Skip to content

Commit 28d7f0f

Browse files
krzkchanwoochoi
authored andcommitted
devfreq: exynos-ppmu: use node names with hyphens
Devicetree naming convention requires device node names to use hyphens instead of underscore, so Exynos5422 devfreq event name "ppmu-event3-dmc0_0" should be "ppmu-event3-dmc0-0". Newly introduced dtschema enforces this, however the driver still expects old name with an underscore. Add new events for Exynos5422 while still accepting old name for backwards compatibility. Signed-off-by: Krzysztof Kozlowski <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 3906fe9 commit 28d7f0f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/devfreq/event/exynos-ppmu.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,16 @@ static struct __exynos_ppmu_events {
9494
PPMU_EVENT(d1-general),
9595
PPMU_EVENT(d1-rt),
9696

97-
/* For Exynos5422 SoC */
97+
/* For Exynos5422 SoC, deprecated (backwards compatible) */
9898
PPMU_EVENT(dmc0_0),
9999
PPMU_EVENT(dmc0_1),
100100
PPMU_EVENT(dmc1_0),
101101
PPMU_EVENT(dmc1_1),
102+
/* For Exynos5422 SoC */
103+
PPMU_EVENT(dmc0-0),
104+
PPMU_EVENT(dmc0-1),
105+
PPMU_EVENT(dmc1-0),
106+
PPMU_EVENT(dmc1-1),
102107
};
103108

104109
static int __exynos_ppmu_find_ppmu_id(const char *edev_name)

0 commit comments

Comments
 (0)