forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/net/fddi/skfp/pcmplc.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /******************************************************************************
23 *
34 * (C)Copyright 1998,1999 SysKonnect,
45 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
56 *
67 * See the file "skfddi.c" for further information.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
128 *
139 * The information in this file is provided "AS IS" without warranty.
1410 *
....@@ -30,7 +26,6 @@
3026 * The following external HW dependent functions are referenced :
3127 * sm_pm_control()
3228 * sm_ph_linestate()
33
- * sm_pm_ls_latch()
3429 *
3530 * The following HW dependent events are required :
3631 * PC_QLS
....@@ -852,6 +847,7 @@
852847
853848 case ACTIONS(PC5_SIGNAL) :
854849 ACTIONS_DONE() ;
850
+ fallthrough;
855851 case PC5_SIGNAL :
856852 if ((cmd != PC_SIGNAL) && (cmd != PC_TIMEOUT_LCT))
857853 break ;
....@@ -950,7 +946,7 @@
950946 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ;
951947 ACTIONS_DONE() ;
952948 cmd = 0 ;
953
- /* fall thru */
949
+ fallthrough;
954950 case PC6_JOIN :
955951 switch (plc->p_state) {
956952 case PS_ACTIVE:
....@@ -1247,16 +1243,6 @@
12471243 lem->lem_on = 0 ;
12481244 CLEAR(PLC(np,PL_INTR_MASK),PL_LE_CTR) ;
12491245 }
1250
-
1251
-/* ARGSUSED */
1252
-void sm_pm_ls_latch(struct s_smc *smc, int phy, int on_off)
1253
-/* int on_off; en- or disable ident. ls */
1254
-{
1255
- SK_UNUSED(smc) ;
1256
-
1257
- phy = phy ; on_off = on_off ;
1258
-}
1259
-
12601246
12611247 /*
12621248 * PCM pseudo code