Skip to content

Commit

Permalink
clocksource/drivers/timer-ti-dm: Move struct omap_dm_timer fields to …
Browse files Browse the repository at this point in the history
…driver

There is no longer any need to expose the elements of struct omap_dm_timer
outside the driver. The pwm and remoteproc drivers just use struct
omap_dm_timer as a cookie.

Let's move the elements of struct omap_dm_timer into struct dmtimer that
is private to the driver. To do this, we mostly rename omap_dm_timer to
dmtimer in the driver. We keep omap_dm_timer only for the exposed
functions in the platform_data for the pwm and remoteproc drivers.

Let's also add a note about not using the exposed functions internally as
those will get deprecated eventually in favor of Linux generic frameworks.

Signed-off-by: Tony Lindgren <[email protected]>
Reviewed-by: Janusz Krzysztofik <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
  • Loading branch information
tmlind authored and dlezcano committed Sep 20, 2022
1 parent bd351f1 commit a6e543f
Show file tree
Hide file tree
Showing 2 changed files with 170 additions and 91 deletions.
Loading

0 comments on commit a6e543f

Please sign in to comment.