File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 9
9
#include <linux/init.h>
10
10
#include <linux/kernel.h>
11
11
#include <linux/leds.h>
12
+ #include <linux/mod_devicetable.h>
12
13
#include <linux/module.h>
13
14
#include <linux/of.h>
14
15
#include <linux/platform_data/cros_ec_commands.h>
@@ -247,17 +248,23 @@ static const struct of_device_id keyboard_led_of_match[] = {
247
248
MODULE_DEVICE_TABLE (of , keyboard_led_of_match );
248
249
#endif
249
250
251
+ static const struct platform_device_id keyboard_led_id [] = {
252
+ { "cros-keyboard-leds" , 0 },
253
+ {}
254
+ };
255
+ MODULE_DEVICE_TABLE (platform , keyboard_led_id );
256
+
250
257
static struct platform_driver keyboard_led_driver = {
251
258
.driver = {
252
- .name = "chromeos -keyboard-leds" ,
259
+ .name = "cros -keyboard-leds" ,
253
260
.acpi_match_table = ACPI_PTR (keyboard_led_acpi_match ),
254
261
.of_match_table = of_match_ptr (keyboard_led_of_match ),
255
262
},
256
263
.probe = keyboard_led_probe ,
264
+ .id_table = keyboard_led_id ,
257
265
};
258
266
module_platform_driver (keyboard_led_driver );
259
267
260
268
MODULE_AUTHOR (
"Simon Que <[email protected] >" );
261
269
MODULE_DESCRIPTION ("ChromeOS Keyboard backlight LED Driver" );
262
270
MODULE_LICENSE ("GPL" );
263
- MODULE_ALIAS ("platform:chromeos-keyboard-leds" );
You can’t perform that action at this time.
0 commit comments