Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 77 lines (61 sloc) 1.452 kB
12845e7 @gregkh initial pci structure for driver
authored
1 /*
2 * Samsung N130 Laptop Backlight driver
3 *
4 * Copyright (C) 2009 Greg Kroah-Hartman (gregkh@suse.de)
5 * Copyright (C) 2009 Novell Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
10 *
11 */
12
31a634d @gregkh initial commit
authored
13 #include <linux/kernel.h>
14 #include <linux/init.h>
15 #include <linux/module.h>
12845e7 @gregkh initial pci structure for driver
authored
16 #include <linux/pci.h>
17
18 static struct pci_dev *device;
19
20 static struct pci_device_id samsung_ids[] = {
21 { PCI_DEVICE(0x8086, 0x27ae) },
22 { },
23 };
24 MODULE_DEVICE_TABLE(pci, samsung_ids);
25
26 static int probe(struct pci_dev *pci_dev, const struct pci_device_id *id)
27 {
28 return -ENODEV;
29 }
31a634d @gregkh initial commit
authored
30
12845e7 @gregkh initial pci structure for driver
authored
31 static void remove(struct pci_dev *pci_dev)
31a634d @gregkh initial commit
authored
32 {
12845e7 @gregkh initial pci structure for driver
authored
33 }
34
35 static struct pci_driver samsung_driver = {
36 .name = "samsung-backlight",
37 .id_table = samsung_ids,
38 .probe = probe,
39 .remove = remove,
40 };
41
42
43 static int find_video_card(void)
44 {
45
31a634d @gregkh initial commit
authored
46 return 0;
47 }
48
12845e7 @gregkh initial pci structure for driver
authored
49 static void remove_video_card(void)
50 {
51 if (!device)
52 return;
53 }
54
55 static int __init samsung_init(void)
56 {
57 int retval;
58 retval = pci_register_driver(&samsung_driver);
59 if (retval)
60 return retval;
61
62 return find_video_card();
63 }
64
65 static void __exit samsung_exit(void)
31a634d @gregkh initial commit
authored
66 {
12845e7 @gregkh initial pci structure for driver
authored
67 pci_unregister_driver(&samsung_driver);
68 remove_video_card();
31a634d @gregkh initial commit
authored
69 }
70
12845e7 @gregkh initial pci structure for driver
authored
71 module_init(samsung_init);
72 module_exit(samsung_exit);
31a634d @gregkh initial commit
authored
73
12845e7 @gregkh initial pci structure for driver
authored
74 MODULE_AUTHOR("Greg Kroah-Hartman <gregkh@suse.de>");
75 MODULE_DESCRIPTION("Samsung N130 Backlight driver");
31a634d @gregkh initial commit
authored
76 MODULE_LICENSE("GPL");
Something went wrong with that request. Please try again.