eisa-bus.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | eisa-bus.c (74880c063b06efd103c924abfe19d9d8fa4864c4) |
---|---|
1/* 2 * EISA bus support functions for sysfs. 3 * 4 * (C) 2002, 2003 Marc Zyngier <maz@wild-wind.fr.eu.org> 5 * 6 * This code is released under the GPL version 2. 7 */ 8 --- 135 unchanged lines hidden (view full) --- 144 return 0; 145} 146 147void eisa_driver_unregister (struct eisa_driver *edrv) 148{ 149 driver_unregister (&edrv->driver); 150} 151 | 1/* 2 * EISA bus support functions for sysfs. 3 * 4 * (C) 2002, 2003 Marc Zyngier <maz@wild-wind.fr.eu.org> 5 * 6 * This code is released under the GPL version 2. 7 */ 8 --- 135 unchanged lines hidden (view full) --- 144 return 0; 145} 146 147void eisa_driver_unregister (struct eisa_driver *edrv) 148{ 149 driver_unregister (&edrv->driver); 150} 151 |
152static ssize_t eisa_show_sig (struct device *dev, char *buf) | 152static ssize_t eisa_show_sig (struct device *dev, struct device_attribute *attr, char *buf) |
153{ 154 struct eisa_device *edev = to_eisa_device (dev); 155 return sprintf (buf,"%s\n", edev->id.sig); 156} 157 158static DEVICE_ATTR(signature, S_IRUGO, eisa_show_sig, NULL); 159 | 153{ 154 struct eisa_device *edev = to_eisa_device (dev); 155 return sprintf (buf,"%s\n", edev->id.sig); 156} 157 158static DEVICE_ATTR(signature, S_IRUGO, eisa_show_sig, NULL); 159 |
160static ssize_t eisa_show_state (struct device *dev, char *buf) | 160static ssize_t eisa_show_state (struct device *dev, struct device_attribute *attr, char *buf) |
161{ 162 struct eisa_device *edev = to_eisa_device (dev); 163 return sprintf (buf,"%d\n", edev->state & EISA_CONFIG_ENABLED); 164} 165 166static DEVICE_ATTR(enabled, S_IRUGO, eisa_show_state, NULL); 167 168static int __init eisa_init_device (struct eisa_root_device *root, --- 262 unchanged lines hidden --- | 161{ 162 struct eisa_device *edev = to_eisa_device (dev); 163 return sprintf (buf,"%d\n", edev->state & EISA_CONFIG_ENABLED); 164} 165 166static DEVICE_ATTR(enabled, S_IRUGO, eisa_show_state, NULL); 167 168static int __init eisa_init_device (struct eisa_root_device *root, --- 262 unchanged lines hidden --- |