ARM: shmobile: Make rmobile_init_pm_domain() static
[deliverable/linux.git] / arch / arm / mach-shmobile / include / mach / pm-rmobile.h
CommitLineData
8f45b112
KM
1/*
2 * Copyright (C) 2012 Renesas Solutions Corp.
3 *
4 * Kuninori Morimoto <morimoto.kuninori@renesas.com>
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
10#ifndef PM_RMOBILE_H
11#define PM_RMOBILE_H
12
13#include <linux/pm_domain.h>
14
15struct platform_device;
16
17struct rmobile_pm_domain {
18 struct generic_pm_domain genpd;
19 struct dev_power_governor *gov;
20 int (*suspend)(void);
21 void (*resume)(void);
22 unsigned int bit_shift;
23 bool no_debug;
24};
25
26static inline
27struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d)
28{
29 return container_of(d, struct rmobile_pm_domain, genpd);
30}
31
32#ifdef CONFIG_PM
0d09f450 33extern void rmobile_init_domains(struct rmobile_pm_domain domains[], int num);
8bdd9468 34extern void rmobile_add_device_to_domain(const char *domain_name,
8f45b112 35 struct platform_device *pdev);
8f45b112 36#else
0d09f450 37#define rmobile_init_domains(domains, num) do { } while (0)
8bdd9468 38#define rmobile_add_device_to_domain(name, pdev) do { } while (0)
8f45b112
KM
39#endif /* CONFIG_PM */
40
41#endif /* PM_RMOBILE_H */
This page took 0.033453 seconds and 5 git commands to generate.