summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/adbhid.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-06-24 03:46:57 +1000
committerPaul Mackerras <paulus@samba.org>2008-07-01 11:28:06 +1000
commit9b4a8dd2e9f8af206eb39e3d99c442b0d6158953 (patch)
treefcdb929187809ec1dcc7eb3468ecc0d527899041 /drivers/macintosh/adbhid.c
parentf0c426bc3557a93e9d2f2863fda1e2042f942a60 (diff)
downloadop-kernel-dev-9b4a8dd2e9f8af206eb39e3d99c442b0d6158953.zip
op-kernel-dev-9b4a8dd2e9f8af206eb39e3d99c442b0d6158953.tar.gz
drivers/macintosh: Various cleanups
This contains the following cleanups: - make the following needlessly global code static: - adb.c: adb_controller - adb.c: adb_init() - adbhid.c: adb_to_linux_keycodes[] (also make it const) - via-pmu68k.c: backlight_level - via-pmu68k.c: backlight_enabled - remove the following unused code: - via-pmu68k.c: sleep_notifier_list Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh/adbhid.c')
-rw-r--r--drivers/macintosh/adbhid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c
index ef4c117..59ea520 100644
--- a/drivers/macintosh/adbhid.c
+++ b/drivers/macintosh/adbhid.c
@@ -75,7 +75,7 @@ static struct notifier_block adbhid_adb_notifier = {
#define ADB_KEY_POWER_OLD 0x7e
#define ADB_KEY_POWER 0x7f
-u16 adb_to_linux_keycodes[128] = {
+static const u16 adb_to_linux_keycodes[128] = {
/* 0x00 */ KEY_A, /* 30 */
/* 0x01 */ KEY_S, /* 31 */
/* 0x02 */ KEY_D, /* 32 */
OpenPOWER on IntegriCloud