regmap: fix the kerneldoc for regmap_test_bits()
[sfrench/cifs-2.6.git] / drivers / base / regmap / regmap.c
index 22d125da4a7d8130c58fe829f290bacaf139adaa..183ec789c3fd66b08af41a3fbe1f10c4602aecf4 100644 (file)
@@ -2936,8 +2936,9 @@ EXPORT_SYMBOL_GPL(regmap_update_bits_base);
  * @reg: Register to read from
  * @bits: Bits to test
  *
- * Returns -1 if the underlying regmap_read() fails, 0 if at least one of the
- * tested bits is not set and 1 if all tested bits are set.
+ * Returns 0 if at least one of the tested bits is not set, 1 if all tested
+ * bits are set and a negative error number if the underlying regmap_read()
+ * fails.
  */
 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits)
 {