Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82758
b: refs/heads/master
c: 771fcb5
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Adrian Bunk committed Feb 3, 2008
1 parent 63ed79e commit 872a494
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 37 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d81919c9c22466183115f83645128da4c2482fcd
refs/heads/master: 771fcb58e5cd7feaf544552519319e7e8a5cace3
70 changes: 34 additions & 36 deletions trunk/drivers/dio/dio-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@
#include <linux/dio.h>


/**
* dio_match_device - Tell if a DIO device structure has a matching
* DIO device id structure
* @ids: array of DIO device id structures to search in
* @dev: the DIO device structure to match against
*
* Used by a driver to check whether a DIO device present in the
* system is in its list of supported devices. Returns the matching
* dio_device_id structure or %NULL if there is no match.
*/
/**
* dio_match_device - Tell if a DIO device structure has a matching DIO device id structure
* @ids: array of DIO device id structures to search in
* @d: the DIO device structure to match against
*
* Used by a driver to check whether a DIO device present in the
* system is in its list of supported devices. Returns the matching
* dio_device_id structure or %NULL if there is no match.
*/

const struct dio_device_id *
dio_match_device(const struct dio_device_id *ids,
Expand Down Expand Up @@ -66,13 +65,13 @@ static int dio_device_probe(struct device *dev)
}


/**
* dio_register_driver - register a new DIO driver
* @drv: the driver structure to register
*
* Adds the driver structure to the list of registered drivers
* Returns zero or a negative error value.
*/
/**
* dio_register_driver - register a new DIO driver
* @drv: the driver structure to register
*
* Adds the driver structure to the list of registered drivers
* Returns zero or a negative error value.
*/

int dio_register_driver(struct dio_driver *drv)
{
Expand All @@ -85,32 +84,31 @@ int dio_register_driver(struct dio_driver *drv)
}


/**
* dio_unregister_driver - unregister a DIO driver
* @drv: the driver structure to unregister
*
* Deletes the driver structure from the list of registered DIO drivers,
* gives it a chance to clean up by calling its remove() function for
* each device it was responsible for, and marks those devices as
* driverless.
*/
/**
* dio_unregister_driver - unregister a DIO driver
* @drv: the driver structure to unregister
*
* Deletes the driver structure from the list of registered DIO drivers,
* gives it a chance to clean up by calling its remove() function for
* each device it was responsible for, and marks those devices as
* driverless.
*/

void dio_unregister_driver(struct dio_driver *drv)
{
driver_unregister(&drv->driver);
}


/**
* dio_bus_match - Tell if a DIO device structure has a matching DIO
* device id structure
* @ids: array of DIO device id structures to search in
* @dev: the DIO device structure to match against
*
* Used by a driver to check whether a DIO device present in the
* system is in its list of supported devices. Returns the matching
* dio_device_id structure or %NULL if there is no match.
*/
/**
* dio_bus_match - Tell if a DIO device structure has a matching DIO device id structure
* @dev: the DIO device structure to match against
* @drv: the &device_driver that points to the array of DIO device id structures to search
*
* Used by a driver to check whether a DIO device present in the
* system is in its list of supported devices. Returns the matching
* dio_device_id structure or %NULL if there is no match.
*/

static int dio_bus_match(struct device *dev, struct device_driver *drv)
{
Expand Down

0 comments on commit 872a494

Please sign in to comment.