.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Mars MR97310A library |
---|
3 | 4 | * |
---|
.. | .. |
---|
24 | 25 | * |
---|
25 | 26 | * The MR97311A support in gspca/mars.c has been helpful in understanding some |
---|
26 | 27 | * of the registers in these cameras. |
---|
27 | | - * |
---|
28 | | - * This program is free software; you can redistribute it and/or modify |
---|
29 | | - * it under the terms of the GNU General Public License as published by |
---|
30 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
31 | | - * any later version. |
---|
32 | | - * |
---|
33 | | - * This program is distributed in the hope that it will be useful, |
---|
34 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
35 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
36 | | - * GNU General Public License for more details. |
---|
37 | 28 | */ |
---|
38 | 29 | |
---|
39 | 30 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
296 | 287 | return err_code; |
---|
297 | 288 | |
---|
298 | 289 | err_code = cam_get_response16(gspca_dev, 0x21, 0); |
---|
299 | | - status = data[0]; |
---|
300 | 290 | tries++; |
---|
301 | 291 | if (err_code < 0) |
---|
302 | 292 | return err_code; |
---|
.. | .. |
---|
520 | 510 | switch (gspca_dev->pixfmt.width) { |
---|
521 | 511 | case 160: |
---|
522 | 512 | data[9] |= 0x04; /* reg 8, 2:1 scale down from 320 */ |
---|
523 | | - /* fall thru */ |
---|
| 513 | + fallthrough; |
---|
524 | 514 | case 320: |
---|
525 | 515 | default: |
---|
526 | 516 | data[3] = 0x28; /* reg 2, H size/8 */ |
---|
.. | .. |
---|
530 | 520 | break; |
---|
531 | 521 | case 176: |
---|
532 | 522 | data[9] |= 0x04; /* reg 8, 2:1 scale down from 352 */ |
---|
533 | | - /* fall thru */ |
---|
| 523 | + fallthrough; |
---|
534 | 524 | case 352: |
---|
535 | 525 | data[3] = 0x2c; /* reg 2, H size/8 */ |
---|
536 | 526 | data[4] = 0x48; /* reg 3, V size/4 */ |
---|
.. | .. |
---|
617 | 607 | switch (gspca_dev->pixfmt.width) { |
---|
618 | 608 | case 160: |
---|
619 | 609 | data[9] |= 0x0c; /* reg 8, 4:1 scale down */ |
---|
620 | | - /* fall thru */ |
---|
| 610 | + fallthrough; |
---|
621 | 611 | case 320: |
---|
622 | 612 | data[9] |= 0x04; /* reg 8, 2:1 scale down */ |
---|
623 | | - /* fall thru */ |
---|
| 613 | + fallthrough; |
---|
624 | 614 | case 640: |
---|
625 | 615 | default: |
---|
626 | 616 | data[3] = 0x50; /* reg 2, H size/8 */ |
---|
.. | .. |
---|
637 | 627 | |
---|
638 | 628 | case 176: |
---|
639 | 629 | data[9] |= 0x04; /* reg 8, 2:1 scale down */ |
---|
640 | | - /* fall thru */ |
---|
| 630 | + fallthrough; |
---|
641 | 631 | case 352: |
---|
642 | 632 | data[3] = 0x2c; /* reg 2, H size */ |
---|
643 | 633 | data[4] = 0x48; /* reg 3, V size */ |
---|