[2.6 patch] drivers/macintosh/: possible cleanups
Stephen Rothwell
sfr at canb.auug.org.au
Tue Jun 24 10:38:04 EST 2008
On Mon, 23 Jun 2008 20:46:57 +0300 Adrian Bunk <bunk at kernel.org> wrote:
>
> On Tue, Jun 10, 2008 at 10:21:25AM +1000, Stephen Rothwell wrote:
> > Hi Adrian,
> >
> > On Tue, 10 Jun 2008 01:23:12 +0300 Adrian Bunk <bunk at kernel.org> wrote:
> > >
> > > +++ 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 u16 adb_to_linux_keycodes[128] = {
> >
> > This could be const as well.
>
> Updated patch below.
>
> cu
> Adrian
>
>
> <-- snip -->
>
>
> This patch contains the following possible 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 at kernel.org>
Acked-by: Stephen Rothwell <sfr at canb.auug.org.au>
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080624/2d72f6ce/attachment.pgp>
More information about the Linuxppc-dev
mailing list