hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Samsung LSI S5C73M3 8M pixel camera driver
34 *
45 * Copyright (C) 2012, Samsung Electronics, Co., Ltd.
56 * Sylwester Nawrocki <s.nawrocki@samsung.com>
67 * Andrzej Hajda <a.hajda@samsung.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * version 2 as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
168 */
179
1810 #include <linux/sizes.h>
....@@ -54,7 +46,7 @@
5446 break;
5547 default:
5648 v4l2_info(&state->sensor_sd, "Unknown AF status %#x\n", reg);
57
- /* Fall through */
49
+ fallthrough;
5850 case REG_CAF_STATUS_UNFOCUSED:
5951 case REG_AF_STATUS_UNFOCUSED:
6052 case REG_AF_STATUS_INVALID:
....@@ -555,7 +547,7 @@
555547 V4L2_CTRL_FLAG_UPDATE;
556548 v4l2_ctrl_auto_cluster(2, &ctrls->auto_iso, 0, false);
557549 ctrls->af_status->flags |= V4L2_CTRL_FLAG_VOLATILE;
558
- v4l2_ctrl_cluster(6, &ctrls->focus_auto);
550
+ v4l2_ctrl_cluster(5, &ctrls->focus_auto);
559551
560552 state->sensor_sd.ctrl_handler = hdl;
561553