[PATCH 14/35] staging: comedi: das1800: change type of 'ai_speed' boardinfo

H Hartley Sweeten hsweeten at visionengravers.com
Wed Apr 6 23:31:47 UTC 2016

This value is compared against the unsigned int cmd->convert_arg to
check the minimum value (max speed) for the analog input conversion

For aesthetics, change the type to match the cmd->convert_arg type.

Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
Cc: Ian Abbott <abbotti at mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
 drivers/staging/comedi/drivers/das1800.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/comedi/drivers/das1800.c b/drivers/staging/comedi/drivers/das1800.c
index 44a5ac1..6f40bb8 100644
--- a/drivers/staging/comedi/drivers/das1800.c
+++ b/drivers/staging/comedi/drivers/das1800.c
@@ -202,7 +202,7 @@ static const struct comedi_lrange das1802_ai_range = {
 struct das1800_board {
 	const char *name;
-	int ai_speed;		/* max conversion period in nanoseconds */
+	unsigned int ai_speed;
 	unsigned int is_16bit:1;
 	unsigned int has_64_ai_chan:1;
 	unsigned int das1801_range:1;

More information about the devel mailing list