Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4cfb7b7c
Commit
4cfb7b7c
authored
Jan 21, 2012
by
Kukjin Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: S3C24XX: use static declaration when it is not used in other files
Signed-off-by:
Kukjin Kim
<
kgene.kim@samsung.com
>
parent
e745e06f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
25 deletions
+19
-25
arch/arm/mach-s3c2410/mach-h1940.c
arch/arm/mach-s3c2410/mach-h1940.c
+6
-6
arch/arm/mach-s3c2416/clock.c
arch/arm/mach-s3c2416/clock.c
+0
-6
arch/arm/mach-s3c2416/mach-smdk2416.c
arch/arm/mach-s3c2416/mach-smdk2416.c
+4
-4
arch/arm/mach-s3c2440/mach-gta02.c
arch/arm/mach-s3c2440/mach-gta02.c
+2
-2
arch/arm/mach-s3c2440/mach-rx1950.c
arch/arm/mach-s3c2440/mach-rx1950.c
+6
-6
arch/arm/plat-s3c24xx/s3c2443-clock.c
arch/arm/plat-s3c24xx/s3c2443-clock.c
+1
-1
No files found.
arch/arm/mach-s3c2410/mach-h1940.c
View file @
4cfb7b7c
...
...
@@ -162,7 +162,7 @@ static int h1940_gpiolib_latch_get(struct gpio_chip *chip,
return
(
latch_state
>>
(
offset
+
16
))
&
1
;
}
struct
gpio_chip
h1940_latch_gpiochip
=
{
st
atic
st
ruct
gpio_chip
h1940_latch_gpiochip
=
{
.
base
=
H1940_LATCH_GPIO
(
0
),
.
owner
=
THIS_MODULE
,
.
label
=
"H1940_LATCH"
,
...
...
@@ -304,7 +304,7 @@ static const struct s3c_adc_bat_thresh bat_lut_acin[] = {
{
.
volt
=
3841
,
.
cur
=
0
,
.
level
=
0
},
};
int
h1940_bat_init
(
void
)
static
int
h1940_bat_init
(
void
)
{
int
ret
;
...
...
@@ -317,17 +317,17 @@ int h1940_bat_init(void)
}
void
h1940_bat_exit
(
void
)
static
void
h1940_bat_exit
(
void
)
{
gpio_free
(
H1940_LATCH_SM803_ENABLE
);
}
void
h1940_enable_charger
(
void
)
static
void
h1940_enable_charger
(
void
)
{
gpio_set_value
(
H1940_LATCH_SM803_ENABLE
,
1
);
}
void
h1940_disable_charger
(
void
)
static
void
h1940_disable_charger
(
void
)
{
gpio_set_value
(
H1940_LATCH_SM803_ENABLE
,
0
);
}
...
...
@@ -364,7 +364,7 @@ static struct platform_device h1940_battery = {
},
};
DEFINE_SPINLOCK
(
h1940_blink_spin
);
static
DEFINE_SPINLOCK
(
h1940_blink_spin
);
int
h1940_led_blink_set
(
unsigned
gpio
,
int
state
,
unsigned
long
*
delay_on
,
unsigned
long
*
delay_off
)
...
...
arch/arm/mach-s3c2416/clock.c
View file @
4cfb7b7c
...
...
@@ -132,12 +132,6 @@ static struct clk hsmmc0_clk = {
.
ctrlbit
=
S3C2416_HCLKCON_HSMMC0
,
};
void
__init_or_cpufreq
s3c2416_setup_clocks
(
void
)
{
s3c2443_common_setup_clocks
(
s3c2416_get_pll
);
}
static
struct
clksrc_clk
*
clksrcs
[]
__initdata
=
{
&
hsspi_eplldiv
,
&
hsspi_mux
,
...
...
arch/arm/mach-s3c2416/mach-smdk2416.c
View file @
4cfb7b7c
...
...
@@ -125,7 +125,7 @@ static struct s3c2410_uartcfg smdk2416_uartcfgs[] __initdata = {
}
};
void
smdk2416_hsudc_gpio_init
(
void
)
static
void
smdk2416_hsudc_gpio_init
(
void
)
{
s3c_gpio_setpull
(
S3C2410_GPH
(
14
),
S3C_GPIO_PULL_UP
);
s3c_gpio_setpull
(
S3C2410_GPF
(
2
),
S3C_GPIO_PULL_NONE
);
...
...
@@ -133,20 +133,20 @@ void smdk2416_hsudc_gpio_init(void)
s3c2410_modify_misccr
(
S3C2416_MISCCR_SEL_SUSPND
,
0
);
}
void
smdk2416_hsudc_gpio_uninit
(
void
)
static
void
smdk2416_hsudc_gpio_uninit
(
void
)
{
s3c2410_modify_misccr
(
S3C2416_MISCCR_SEL_SUSPND
,
1
);
s3c_gpio_setpull
(
S3C2410_GPH
(
14
),
S3C_GPIO_PULL_NONE
);
s3c_gpio_cfgpin
(
S3C2410_GPH
(
14
),
S3C_GPIO_SFN
(
0
));
}
struct
s3c24xx_hsudc_platdata
smdk2416_hsudc_platdata
=
{
st
atic
st
ruct
s3c24xx_hsudc_platdata
smdk2416_hsudc_platdata
=
{
.
epnum
=
9
,
.
gpio_init
=
smdk2416_hsudc_gpio_init
,
.
gpio_uninit
=
smdk2416_hsudc_gpio_uninit
,
};
struct
s3c_fb_pd_win
smdk2416_fb_win
[]
=
{
st
atic
st
ruct
s3c_fb_pd_win
smdk2416_fb_win
[]
=
{
[
0
]
=
{
/* think this is the same as the smdk6410 */
.
win_mode
=
{
...
...
arch/arm/mach-s3c2440/mach-gta02.c
View file @
4cfb7b7c
...
...
@@ -258,7 +258,7 @@ static struct pcf50633_bl_platform_data gta02_backlight_data = {
.
ramp_time
=
5
,
};
struct
pcf50633_platform_data
gta02_pcf_pdata
=
{
st
atic
st
ruct
pcf50633_platform_data
gta02_pcf_pdata
=
{
.
resumers
=
{
[
0
]
=
PCF50633_INT1_USBINS
|
PCF50633_INT1_USBREM
|
...
...
@@ -404,7 +404,7 @@ static struct platform_device gta02_nor_flash = {
};
struct
platform_device
s3c24xx_pwm_device
=
{
st
atic
st
ruct
platform_device
s3c24xx_pwm_device
=
{
.
name
=
"s3c24xx_pwm"
,
.
num_resources
=
0
,
};
...
...
arch/arm/mach-s3c2440/mach-rx1950.c
View file @
4cfb7b7c
...
...
@@ -217,7 +217,7 @@ static const struct s3c_adc_bat_thresh bat_lut_acin[] = {
{
.
volt
=
3820
,
.
cur
=
0
,
.
level
=
0
},
};
int
rx1950_bat_init
(
void
)
static
int
rx1950_bat_init
(
void
)
{
int
ret
;
...
...
@@ -236,25 +236,25 @@ int rx1950_bat_init(void)
return
ret
;
}
void
rx1950_bat_exit
(
void
)
static
void
rx1950_bat_exit
(
void
)
{
gpio_free
(
S3C2410_GPJ
(
2
));
gpio_free
(
S3C2410_GPJ
(
3
));
}
void
rx1950_enable_charger
(
void
)
static
void
rx1950_enable_charger
(
void
)
{
gpio_direction_output
(
S3C2410_GPJ
(
2
),
1
);
gpio_direction_output
(
S3C2410_GPJ
(
3
),
1
);
}
void
rx1950_disable_charger
(
void
)
static
void
rx1950_disable_charger
(
void
)
{
gpio_direction_output
(
S3C2410_GPJ
(
2
),
0
);
gpio_direction_output
(
S3C2410_GPJ
(
3
),
0
);
}
DEFINE_SPINLOCK
(
rx1950_blink_spin
);
static
DEFINE_SPINLOCK
(
rx1950_blink_spin
);
static
int
rx1950_led_blink_set
(
unsigned
gpio
,
int
state
,
unsigned
long
*
delay_on
,
unsigned
long
*
delay_off
)
...
...
@@ -382,7 +382,7 @@ static struct s3c2410fb_mach_info rx1950_lcd_cfg = {
static
struct
pwm_device
*
lcd_pwm
;
void
rx1950_lcd_power
(
int
enable
)
static
void
rx1950_lcd_power
(
int
enable
)
{
int
i
;
static
int
enabled
;
...
...
arch/arm/plat-s3c24xx/s3c2443-clock.c
View file @
4cfb7b7c
...
...
@@ -53,7 +53,7 @@ int s3c2443_clkcon_enable_s(struct clk *clk, int enable)
* elided as the EPLL can be either sourced by the XTAL or EXTCLK and as
* such directly equating the two source clocks is impossible.
*/
struct
clk
clk_mpllref
=
{
st
atic
st
ruct
clk
clk_mpllref
=
{
.
name
=
"mpllref"
,
.
parent
=
&
clk_xtal
,
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment