summaryrefslogtreecommitdiffstats
path: root/drivers/dio
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2020-01-12 17:56:12 +0100
committerGeert Uytterhoeven <geert@linux-m68k.org>2020-03-09 11:12:19 +0100
commitb87c9661bf3503b5525be49d37ee949a5bbfa04e (patch)
treef1d0216b3e831c47250807feb629b8a2ccfa260c /drivers/dio
parentb3875759332e19d3b88da1e7258cdd37ac474d32 (diff)
downloadlinux-b87c9661bf3503b5525be49d37ee949a5bbfa04e.tar.bz2
dio: Fix dio_bus_match() kerneldoc
The kerneldoc for dio_bus_match() was obviously copied from dio_match_device(), but wasnt't updated for the different calling context and semantics. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20200112165613.20960-3-geert@linux-m68k.org
Diffstat (limited to 'drivers/dio')
-rw-r--r--drivers/dio/dio-driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dio/dio-driver.c b/drivers/dio/dio-driver.c
index daf87e214a77..69c46935ffc7 100644
--- a/drivers/dio/dio-driver.c
+++ b/drivers/dio/dio-driver.c
@@ -105,9 +105,9 @@ void dio_unregister_driver(struct dio_driver *drv)
* @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.
+ * Used by the driver core to check whether a DIO device present in the
+ * system is in a driver's list of supported devices. Returns 1 if supported,
+ * and 0 if there is no match.
*/
static int dio_bus_match(struct device *dev, struct device_driver *drv)