ARM: tegra: boards: define variables as static type
Laxman Dewangan [Wed, 10 Jul 2013 10:18:21 +0000 (15:18 +0530)]
Define the file local variable to static type to avoid export and
multiple declaration on other file.

Also remove initdata keyword from variable data.

Change-Id: I74cce98e2eb14551444b7aa76cc1b2a479955b99
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/247101
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/board-macallan-power.c
arch/arm/mach-tegra/board-pluto-power.c
arch/arm/mach-tegra/board-roth-power.c

index cc53eb2..cb276e5 100644 (file)
@@ -380,7 +380,7 @@ static struct palmas_pinctrl_platform_data palmas_pinctrl_pdata = {
        .dvfs2_enable = false,
 };
 
-struct palmas_extcon_platform_data palmas_extcon_pdata = {
+static struct palmas_extcon_platform_data palmas_extcon_pdata = {
        .connection_name = "palmas-extcon",
        .enable_vbus_detection = true,
        .enable_id_pin_detection = true,
index 9bab074..194486d 100644 (file)
@@ -623,7 +623,7 @@ static struct palmas_pmic_platform_data pmic_platform = {
        .dvfs_init_data_size = ARRAY_SIZE(palmas_dvfs_idata),
 };
 
-struct palmas_clk32k_init_data palmas_clk32k_idata[] = {
+static struct palmas_clk32k_init_data palmas_clk32k_idata[] = {
        {
                .clk32k_id = PALMAS_CLOCK32KG,
                .enable = true,
index f02a7bb..7699492 100644 (file)
@@ -131,7 +131,7 @@ static struct i2c_board_info __initdata bq2419x_boardinfo[] = {
        },
 };
 
-struct max17048_battery_model max17048_mdata __initdata = {
+static struct max17048_battery_model max17048_mdata = {
        .rcomp          = 105,
        .soccheck_A     = 240,
        .soccheck_B     = 242,
@@ -156,7 +156,7 @@ struct max17048_battery_model max17048_mdata __initdata = {
        },
 };
 
-struct max17048_platform_data max17048_pdata = {
+static struct max17048_platform_data max17048_pdata = {
        .model_data = &max17048_mdata,
 };