Re: [PATCH 10/25] sony-laptop: keyboard backlight support extended to newer Vaios

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 04/06/2011 09:58, Mattia Dongili wrote:

-static void sony_nc_kbd_backlight_resume(void);
-
-enum sony_nc_rfkill {
-	SONY_WIFI,
-	SONY_BLUETOOTH,
-	SONY_WWAN,
-	SONY_WIMAX,
-	N_SONY_RFKILL,
-};

removing this enum seems superfluous (it's re-added some patches later)
and breaks compilation at this point.

Sorry, I made a mistake, I'm going to fix and resend patches #10 and #11.

  static struct kbd_backlight *kbdbl_handle;
+static int sony_kbd_handle = -1;

there seems to be no real point initializing this to -1.

Just for safety, since handle 0x0000 is a valid handle [1] it would be better to initialize it to an invalid value.

Also, can it be
made part of the struct above?

Sure


[1]
sony_laptop: found handle 0x0000 (offset: 0x0d)
sony_laptop: called SN07 with 0x000d (result: 0x0000)
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux