Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87275856 authored by Olaf Hering's avatar Olaf Hering Committed by Paul Mackerras
Browse files

[POWERPC] move variables in drivers/macintosh to bss



Move all the initialized variables to bss.
Mark a version string as const.

Signed-off-by: default avatarOlaf Hering <olaf@aepfle.de>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 9ea8b7c9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -574,8 +574,8 @@ static struct adb_request led_request;
static int leds_pending[16];
static int leds_req_pending;
static int pending_devs[16];
static int pending_led_start=0;
static int pending_led_end=0;
static int pending_led_start;
static int pending_led_end;
static DEFINE_SPINLOCK(leds_lock);

static void leds_done(struct adb_request *req)
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ static struct pmu_sleep_notifier apm_sleep_notifier = {
	SLEEP_LEVEL_USERLAND,
};

static char			driver_version[] = "0.5";	/* no spaces */
static const char driver_version[] = "0.5";	/* no spaces */

#ifdef DEBUG
static char *	apm_event_name[] = {
+2 −2
Original line number Diff line number Diff line
@@ -17,10 +17,10 @@

static struct input_dev *emumousebtn;
static int emumousebtn_input_register(void);
static int mouse_emulate_buttons = 0;
static int mouse_emulate_buttons;
static int mouse_button2_keycode = KEY_RIGHTCTRL;	/* right control key */
static int mouse_button3_keycode = KEY_RIGHTALT;	/* right option key */
static int mouse_last_keycode = 0;
static int mouse_last_keycode;

#if defined(CONFIG_SYSCTL)
/* file(s) in /proc/sys/dev/mac_hid */
+3 −3
Original line number Diff line number Diff line
@@ -48,11 +48,11 @@ static u8 FAN_SPD_SET[2] = {0x30, 0x31};

static u8 default_limits_local[3] = {70, 50, 70};    /* local, sensor1, sensor2 */
static u8 default_limits_chip[3] = {80, 65, 80};    /* local, sensor1, sensor2 */
static const char *sensor_location[3] = {NULL, NULL, NULL};
static const char *sensor_location[3];

static int limit_adjust = 0;
static int limit_adjust;
static int fan_speed = -1;
static int verbose = 0;
static int verbose;

MODULE_AUTHOR("Colin Leroy <colin@colino.net>");
MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and "
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ static int data_index;
#ifdef CONFIG_PPC
static struct device_node *vias;
#endif
static int cuda_fully_inited = 0;
static int cuda_fully_inited;

#ifdef CONFIG_ADB
static int cuda_probe(void);
Loading