Skip to content

Commit

Permalink
ARM: shmobile: R-Mobile: Move to_rmobile_pd from header to source file
Browse files Browse the repository at this point in the history
to_rmobile_pd() is only used inside pm-rmobile.c

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Geert Uytterhoeven authored and Simon Horman committed Jul 6, 2015
1 parent d770e55 commit 2375825
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mach-shmobile/pm-rmobile.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
#define PSTR_RETRIES 100
#define PSTR_DELAY_US 10

static inline
struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d)
{
return container_of(d, struct rmobile_pm_domain, genpd);
}

static int rmobile_pd_power_down(struct generic_pm_domain *genpd)
{
struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd);
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-shmobile/pm-rmobile.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ struct rmobile_pm_domain {
bool no_debug;
};

static inline
struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d)
{
return container_of(d, struct rmobile_pm_domain, genpd);
}

struct pm_domain_device {
const char *domain_name;
struct platform_device *pdev;
Expand Down

0 comments on commit 2375825

Please sign in to comment.