Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1348082
| From | Ian Abbott <abbotti@mev.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] staging: comedi: comedi.h: Fix comment for struct comedi_krange |
| Date | 2016-03-02 15:30 +0100 |
| Message-ID | <r8fWP-pB-39@gated-at.bofh.it> (permalink) |
| References | <r8fWO-pB-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The kernel-doc comment for `struct comedi_krange` refers to the macro
constant `RF_external`. It should be `RF_EXTERNAL`, so fix it. It also
documents the value of the constant as `(1 << 8)`, but the macro now
expands to the hexadecimal constant `0x100`, so use that as the
documented value.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
---
drivers/staging/comedi/comedi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h
index 9547324..ad5297f 100644
--- a/drivers/staging/comedi/comedi.h
+++ b/drivers/staging/comedi/comedi.h
@@ -667,7 +667,7 @@ struct comedi_rangeinfo {
* by 1e6, so a @max value of %1000000 (with %UNIT_volt) represents a maximal
* value of 1 volt.
*
- * The only defined flag value is %RF_external (%1 << %8), indicating that the
+ * The only defined flag value is %RF_EXTERNAL (%0x100), indicating that the
* the range needs to be multiplied by an external reference.
*/
struct comedi_krange {
--
2.7.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] staging: comedi: comedi.h: Avoid BIT macro Ian Abbott <abbotti@mev.co.uk> - 2016-03-02 15:30 +0100 [PATCH 2/2] staging: comedi: comedi.h: Fix comment for struct comedi_krange Ian Abbott <abbotti@mev.co.uk> - 2016-03-02 15:30 +0100 RE: [PATCH 0/2] staging: comedi: comedi.h: Avoid BIT macro Hartley Sweeten <HartleyS@visionengravers.com> - 2016-03-02 17:30 +0100
csiph-web