Commit ddf8160
committed
USB: serial: kobil_sct: clean up tiocmset()
Clean up the tiocmset() implementation by simplifying the flag check,
dropping some dev_dbg(), logging errors using dev_err() and using a
common control message call for both DTR and RTS to make the existing
logic easier to follow.
Note that the modem control lines are currently only manipulated in this
function, which therefore does not require any locking.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>1 parent 66b1c55 commit ddf8160
1 file changed
Lines changed: 26 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
423 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
424 | 424 | | |
425 | | - | |
426 | 425 | | |
427 | 426 | | |
428 | 427 | | |
429 | 428 | | |
430 | 429 | | |
431 | 430 | | |
432 | 431 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
| 432 | + | |
| 433 | + | |
441 | 434 | | |
442 | 435 | | |
443 | 436 | | |
444 | | - | |
| 437 | + | |
445 | 438 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
| 439 | + | |
456 | 440 | | |
457 | 441 | | |
458 | | - | |
| 442 | + | |
459 | 443 | | |
460 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
461 | 448 | | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
470 | 461 | | |
471 | | - | |
472 | | - | |
| 462 | + | |
| 463 | + | |
473 | 464 | | |
474 | 465 | | |
475 | 466 | | |
| |||
0 commit comments