forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c
....@@ -1,17 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * mxl111sf-gpio.c - driver for the MaxLinear MXL111SF
34 *
45 * Copyright (C) 2010-2014 Michael Krufky <mkrufky@linuxtv.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
156 */
167
178 #include "mxl111sf-gpio.h"
....@@ -641,7 +632,7 @@
641632 default:
642633 mxl_printk(KERN_ERR,
643634 "gpio_port_expander undefined, assuming PCA9534");
644
- /* fall-thru */
635
+ fallthrough;
645636 case mxl111sf_PCA9534:
646637 return pca9534_set_gpio(state, gpio, val);
647638 case mxl111sf_gpio_hw:
....@@ -702,7 +693,7 @@
702693 default:
703694 mxl_printk(KERN_ERR,
704695 "gpio_port_expander undefined, assuming PCA9534");
705
- /* fall-thru */
696
+ fallthrough;
706697 case mxl111sf_PCA9534:
707698 return pca9534_init_port_expander(state);
708699 case mxl111sf_gpio_hw: