diff options
author | Ike Panhc <ike.pan@canonical.com> | 2011-09-05 14:33:00 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-10-24 10:52:39 -0400 |
commit | 349d594be45bdc7a86a08385f2f4f49d08ab68dd (patch) | |
tree | ae75802bc1963ea1cac53a102393bd0809fc00a5 | |
parent | 773e3206e6a8b4c81826dc76057a96ba3cc96672 (diff) |
ideapad: remove sysfs node for cfg
Replaced by the one in debugfs.
Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
-rw-r--r-- | Documentation/ABI/testing/sysfs-platform-ideapad-laptop | 15 | ||||
-rw-r--r-- | drivers/platform/x86/ideapad-laptop.c | 12 |
2 files changed, 0 insertions, 27 deletions
diff --git a/Documentation/ABI/testing/sysfs-platform-ideapad-laptop b/Documentation/ABI/testing/sysfs-platform-ideapad-laptop index ff53183c3848..814b01354c41 100644 --- a/Documentation/ABI/testing/sysfs-platform-ideapad-laptop +++ b/Documentation/ABI/testing/sysfs-platform-ideapad-laptop | |||
@@ -5,19 +5,4 @@ Contact: "Ike Panhc <ike.pan@canonical.com>" | |||
5 | Description: | 5 | Description: |
6 | Control the power of camera module. 1 means on, 0 means off. | 6 | Control the power of camera module. 1 means on, 0 means off. |
7 | 7 | ||
8 | What: /sys/devices/platform/ideapad/cfg | ||
9 | Date: Jun 2011 | ||
10 | KernelVersion: 3.1 | ||
11 | Contact: "Ike Panhc <ike.pan@canonical.com>" | ||
12 | Description: | ||
13 | Ideapad capability bits. | ||
14 | Bit 8-10: 1 - Intel graphic only | ||
15 | 2 - ATI graphic only | ||
16 | 3 - Nvidia graphic only | ||
17 | 4 - Intel and ATI graphic | ||
18 | 5 - Intel and Nvidia graphic | ||
19 | Bit 16: Bluetooth exist (1 for exist) | ||
20 | Bit 17: 3G exist (1 for exist) | ||
21 | Bit 18: Wifi exist (1 for exist) | ||
22 | Bit 19: Camera exist (1 for exist) | ||
23 | 8 | ||
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 1c8b5065f34c..a36addf106a0 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c | |||
@@ -363,20 +363,8 @@ static ssize_t store_ideapad_cam(struct device *dev, | |||
363 | 363 | ||
364 | static DEVICE_ATTR(camera_power, 0644, show_ideapad_cam, store_ideapad_cam); | 364 | static DEVICE_ATTR(camera_power, 0644, show_ideapad_cam, store_ideapad_cam); |
365 | 365 | ||
366 | static ssize_t show_ideapad_cfg(struct device *dev, | ||
367 | struct device_attribute *attr, | ||
368 | char *buf) | ||
369 | { | ||
370 | struct ideapad_private *priv = dev_get_drvdata(dev); | ||
371 | |||
372 | return sprintf(buf, "0x%.8lX\n", priv->cfg); | ||
373 | } | ||
374 | |||
375 | static DEVICE_ATTR(cfg, 0444, show_ideapad_cfg, NULL); | ||
376 | |||
377 | static struct attribute *ideapad_attributes[] = { | 366 | static struct attribute *ideapad_attributes[] = { |
378 | &dev_attr_camera_power.attr, | 367 | &dev_attr_camera_power.attr, |
379 | &dev_attr_cfg.attr, | ||
380 | NULL | 368 | NULL |
381 | }; | 369 | }; |
382 | 370 | ||