Skip to content

Commit b86aeaf

Browse files
Jean PihetKevin Hilman
authored andcommitted
ARM: OMAP2+: SmartReflex: move the smartreflex header to include/linux/power
Move the smartreflex header file (arch/arm/mach-omap2/smartreflex.h) in a new header file include/linux/power/smartreflex.h. This change makes the SmartReflex implementation ready for the move to drivers/. Signed-off-by: Jean Pihet <j-pihet@ti.com> Signed-off-by: J Keerthy <j-keerthy@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
1 parent cdd3a35 commit b86aeaf

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎arch/arm/mach-omap2/omap_hwmod_3xxx_data.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
*
1515
* XXX these should be marked initdata for multi-OMAP kernels
1616
*/
17+
#include <linux/power/smartreflex.h>
18+
1719
#include <plat/omap_hwmod.h>
1820
#include <mach/irqs.h>
1921
#include <plat/cpu.h>
@@ -29,8 +31,6 @@
2931
#include <plat/dmtimer.h>
3032

3133
#include "omap_hwmod_common_data.h"
32-
33-
#include "smartreflex.h"
3434
#include "prm-regbits-34xx.h"
3535
#include "cm-regbits-34xx.h"
3636
#include "wd_timer.h"

‎arch/arm/mach-omap2/omap_hwmod_44xx_data.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020

2121
#include <linux/io.h>
22+
#include <linux/power/smartreflex.h>
2223

2324
#include <plat/omap_hwmod.h>
2425
#include <plat/cpu.h>
@@ -32,8 +33,6 @@
3233
#include <plat/common.h>
3334

3435
#include "omap_hwmod_common_data.h"
35-
36-
#include "smartreflex.h"
3736
#include "cm1_44xx.h"
3837
#include "cm2_44xx.h"
3938
#include "prm44xx.h"

‎arch/arm/mach-omap2/smartreflex-class3.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
* published by the Free Software Foundation.
1212
*/
1313

14-
#include "smartreflex.h"
14+
#include <linux/power/smartreflex.h>
15+
#include "voltage.h"
1516

1617
static int sr_class3_enable(struct voltagedomain *voltdm)
1718
{

‎arch/arm/mach-omap2/smartreflex.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
#include <linux/delay.h>
2626
#include <linux/slab.h>
2727
#include <linux/pm_runtime.h>
28+
#include <linux/power/smartreflex.h>
2829

2930
#include "common.h"
30-
3131
#include "pm.h"
32-
#include "smartreflex.h"
3332

3433
#define SMARTREFLEX_NAME_LEN 16
3534
#define NVALUE_NAME_LEN 40

‎arch/arm/mach-omap2/sr_device.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
* it under the terms of the GNU General Public License version 2 as
1818
* published by the Free Software Foundation.
1919
*/
20+
#include <linux/power/smartreflex.h>
2021

2122
#include <linux/err.h>
2223
#include <linux/slab.h>
2324
#include <linux/io.h>
2425

2526
#include <plat/omap_device.h>
2627

27-
#include "smartreflex.h"
2828
#include "voltage.h"
2929
#include "control.h"
3030
#include "pm.h"
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
* published by the Free Software Foundation.
1818
*/
1919

20-
#ifndef __ASM_ARM_OMAP_SMARTREFLEX_H
21-
#define __ASM_ARM_OMAP_SMARTREFLEX_H
20+
#ifndef __POWER_SMARTREFLEX_H
21+
#define __POWER_SMARTREFLEX_H
2222

23+
#include <linux/types.h>
2324
#include <linux/platform_device.h>
2425

25-
#include "voltage.h"
26+
#include <plat/voltage.h>
2627

2728
/*
2829
* Different Smartreflex IPs version. The v1 is the 65nm version used in

0 commit comments

Comments
 (0)