]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
of: Fix of_device_is_compatible() comment
authorKevin Cernekee <cernekee@gmail.com>
Wed, 12 Nov 2014 20:54:00 +0000 (12:54 -0800)
committerGrant Likely <grant.likely@linaro.org>
Tue, 18 Nov 2014 17:32:07 +0000 (17:32 +0000)
This function passes back a value from __of_device_is_compatible(), which
returns a score in the range 0..11, not a bool.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/base.c

index 6137f18d42446808b3270df204be619974c856ac..4627e0acf4ad20695e2d1e69ca0b3ace6d5b52e0 100644 (file)
@@ -500,7 +500,7 @@ EXPORT_SYMBOL(of_device_is_compatible);
  * of_machine_is_compatible - Test root of device tree for a given compatible value
  * @compat: compatible string to look for in root node's compatible property.
  *
- * Returns true if the root node has the given value in its
+ * Returns a positive integer if the root node has the given value in its
  * compatible property.
  */
 int of_machine_is_compatible(const char *compat)