Skip to content

Commit

Permalink
[ARM] 5004/1: Tosa: make several unreferenced structures static.
Browse files Browse the repository at this point in the history
Now that scoop gpio's are converted to generic_gpio,
tosascoop_device and tosascoop_jc_device don't have
to be exported.

Also make tosa_gpio_* static

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Dmitry Baryshkov authored and Russell King committed Apr 19, 2008
1 parent d8a42fc commit ba4eb7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions arch/arm/mach-pxa/tosa.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static struct scoop_config tosa_scoop_setup = {
.gpio_base = TOSA_SCOOP_GPIO_BASE,
};

struct platform_device tosascoop_device = {
static struct platform_device tosascoop_device = {
.name = "sharp-scoop",
.id = 0,
.dev = {
Expand All @@ -197,7 +197,7 @@ static struct scoop_config tosa_scoop_jc_setup = {
.gpio_base = TOSA_SCOOP_JC_GPIO_BASE,
};

struct platform_device tosascoop_jc_device = {
static struct platform_device tosascoop_jc_device = {
.name = "sharp-scoop",
.id = 1,
.dev = {
Expand Down Expand Up @@ -421,7 +421,7 @@ static struct platform_device tosa_gpio_keys_device = {
/*
* Tosa LEDs
*/
struct gpio_led tosa_gpio_leds[] = {
static struct gpio_led tosa_gpio_leds[] = {
{
.name = "tosa:amber:charge",
.default_trigger = "main-battery-charging",
Expand All @@ -434,7 +434,7 @@ struct gpio_led tosa_gpio_leds[] = {
},
};

struct gpio_led_platform_data tosa_gpio_leds_platform_data = {
static struct gpio_led_platform_data tosa_gpio_leds_platform_data = {
.leds = tosa_gpio_leds,
.num_leds = ARRAY_SIZE(tosa_gpio_leds),
};
Expand Down
4 changes: 0 additions & 4 deletions include/asm-arm/arch-pxa/tosa.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,8 @@

#define TOSA_IRQ_GPIO_MAIN_BAT_LOW IRQ_GPIO(TOSA_GPIO_MAIN_BAT_LOW)

extern struct platform_device tosascoop_jc_device;
extern struct platform_device tosascoop_device;

#define TOSA_KEY_SYNC KEY_102ND /* ??? */


#ifndef CONFIG_KEYBOARD_TOSA_USE_EXT_KEYCODES
#define TOSA_KEY_RECORD KEY_YEN
#define TOSA_KEY_ADDRESSBOOK KEY_KATAKANA
Expand Down

0 comments on commit ba4eb7e

Please sign in to comment.