Commit de88924
staging: comedi: me4000: use comedi_buf_write_samples()
Use comedi_buf_write_samples() to add the sample to the async buffer.
The async events COMEDI_CB_OVERFLOW will be set by the core if the async
buffer overflows. A dev_warn() message will also be output by the core
if the buffer overflows. Remove the unnecessary event and the dev_err()
messages in the driver.
The core will also add the COMEDI_CB_BLOCK event when data is written
to the async buffer. Remove these unnecessary events from the driver.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent aa96f6e commit de88924
1 file changed
+3
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
1096 | | - | |
1097 | 1095 | | |
1098 | 1096 | | |
1099 | 1097 | | |
| |||
1119 | 1117 | | |
1120 | 1118 | | |
1121 | 1119 | | |
1122 | | - | |
| 1120 | + | |
1123 | 1121 | | |
1124 | 1122 | | |
1125 | 1123 | | |
| |||
1128 | 1126 | | |
1129 | 1127 | | |
1130 | 1128 | | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | 1129 | | |
1137 | 1130 | | |
1138 | 1131 | | |
| |||
1146 | 1139 | | |
1147 | 1140 | | |
1148 | 1141 | | |
1149 | | - | |
| 1142 | + | |
1150 | 1143 | | |
1151 | 1144 | | |
1152 | 1145 | | |
| |||
1164 | 1157 | | |
1165 | 1158 | | |
1166 | 1159 | | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
| 1160 | + | |
1170 | 1161 | | |
1171 | | - | |
1172 | 1162 | | |
1173 | 1163 | | |
1174 | 1164 | | |
| |||
0 commit comments