Skip to content

Commit 2e7babf

Browse files
committed
Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86
Pull x86 platform driver updates from Matthew Garrett: "A moderate diffstat, but it's almost entirely just moving the chromebook driver into its own directory in order to ease ARM support, adding back rfkill support to the one Dell laptop model where it's expected to work, updates to the Intel IPC driver for hardware I've never actually seen and the usual set of small fixes" [ This actually came in before the merge window closed, and I had just missed it because it didn't match my git pull email pattern. - Linus ] * 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86: (24 commits) x86, wmi fix modalias_show return values ipc: Added support for IPC interrupt mode ipc: Handle error conditions in ipc command ipc: Enabled ipc support for additional intel platforms ipc: Added platform data structure thinkpad_acpi: Fix build error when CONFIG_SND_MAX_CARDS > 32 platform: add chrome platform directory hp-wmi: detect "2009 BIOS or later" flag by WMI 0x0d for wireless cmd dell-wmi: Add KEY_MICMUTE to bios_to_linux_keycode platform:x86: Remove OOM message after input_allocate_device sony-laptop: fixe typos in sony_laptop_input_keycode_map sony-laptop: warn on multiple KBD backlight handles dell-laptop: Only enable rfkill functionality on laptops with a hw killswitch dell-laptop: Add a force_rfkill module parameter dell-laptop: Wait less long before updating rfkill after an rfkill keypress dell-laptop: Do not skip setting blocked bit rfkill_set while hw-blocked dell-laptop: Sync current block state to BIOS on hw switch change dell-laptop: Allow changing the sw_state while the radio is blocked by hw dell-laptop: Don't read-back sw_state on machines with a hardware switch dell-laptop: Don't set sw_state from the query callback ...
2 parents 6ce4eac + a80e105 commit 2e7babf

22 files changed

Lines changed: 477 additions & 62 deletions

‎MAINTAINERS‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,6 +2142,11 @@ L: linux-usb@vger.kernel.org
21422142
S: Maintained
21432143
F: drivers/usb/chipidea/
21442144

2145+
CHROME HARDWARE PLATFORM SUPPORT
2146+
M: Olof Johansson <olof@lixom.net>
2147+
S: Maintained
2148+
F: drivers/platform/chrome/
2149+
21452150
CISCO VIC ETHERNET NIC DRIVER
21462151
M: Christian Benvenuti <benve@cisco.com>
21472152
M: Sujith Sankar <ssujith@cisco.com>

‎drivers/platform/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ if GOLDFISH
55
source "drivers/platform/goldfish/Kconfig"
66
endif
77

8+
source "drivers/platform/chrome/Kconfig"

‎drivers/platform/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
obj-$(CONFIG_X86) += x86/
66
obj-$(CONFIG_OLPC) += olpc/
77
obj-$(CONFIG_GOLDFISH) += goldfish/
8+
obj-$(CONFIG_CHROME_PLATFORMS) += chrome/

‎drivers/platform/chrome/Kconfig‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Platform support for Chrome OS hardware (Chromebooks and Chromeboxes)
3+
#
4+
5+
menuconfig CHROME_PLATFORMS
6+
bool "Platform support for Chrome hardware"
7+
depends on X86
8+
---help---
9+
Say Y here to get to see options for platform support for
10+
various Chromebooks and Chromeboxes. This option alone does
11+
not add any kernel code.
12+
13+
If you say N, all options in this submenu will be skipped and disabled.
14+
15+
if CHROME_PLATFORMS
16+
17+
config CHROMEOS_LAPTOP
18+
tristate "Chrome OS Laptop"
19+
depends on I2C
20+
depends on DMI
21+
---help---
22+
This driver instantiates i2c and smbus devices such as
23+
light sensors and touchpads.
24+
25+
If you have a supported Chromebook, choose Y or M here.
26+
The module will be called chromeos_laptop.
27+
28+
endif # CHROMEOS_PLATFORMS

‎drivers/platform/chrome/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o

‎drivers/platform/x86/Kconfig‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,6 @@ config ASUS_LAPTOP
7979

8080
If you have an ACPI-compatible ASUS laptop, say Y or M here.
8181

82-
config CHROMEOS_LAPTOP
83-
tristate "Chrome OS Laptop"
84-
depends on I2C
85-
depends on DMI
86-
---help---
87-
This driver instantiates i2c and smbus devices such as
88-
light sensors and touchpads.
89-
90-
If you have a supported Chromebook, choose Y or M here.
91-
The module will be called chromeos_laptop.
92-
9382
config DELL_LAPTOP
9483
tristate "Dell Laptop Extras"
9584
depends on X86

‎drivers/platform/x86/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ obj-$(CONFIG_INTEL_MID_POWER_BUTTON) += intel_mid_powerbtn.o
5050
obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o
5151
obj-$(CONFIG_SAMSUNG_Q10) += samsung-q10.o
5252
obj-$(CONFIG_APPLE_GMUX) += apple-gmux.o
53-
obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o
5453
obj-$(CONFIG_INTEL_RST) += intel-rst.o
5554
obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o
5655

‎drivers/platform/x86/asus-laptop.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,10 +1494,9 @@ static int asus_input_init(struct asus_laptop *asus)
14941494
int error;
14951495

14961496
input = input_allocate_device();
1497-
if (!input) {
1498-
pr_warn("Unable to allocate input device\n");
1497+
if (!input)
14991498
return -ENOMEM;
1500-
}
1499+
15011500
input->name = "Asus Laptop extra buttons";
15021501
input->phys = ASUS_LAPTOP_FILE "/input0";
15031502
input->id.bustype = BUS_HOST;

0 commit comments

Comments
 (0)