Commit 42ac1a033037de2fd3fe115acecfd16813fd7a6c
Committed by
Sekhar Nori
1 parent
68c52df82b
Exists in
smarct4x-processor-sdk-linux-02.00.01
and in
3 other branches
phy: keystone: reduce one level of nesting in the function call
kserdes_att_boost_phyb_patch() is unnecessary as it just call another function kserdes_att_boost_phyb_lane_patch() from within it. So instead call kserdes_att_boost_phyb_lane_patch() directly since we have no reuse of the same in the code anymore. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: WingMan Kwok <w-kwok2@ti.com> [nm@ti.com: massage commit text] Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Showing 1 changed file with 1 additions and 7 deletions Side-by-side Diff
drivers/phy/phy-keystone-serdes.c
... | ... | @@ -1392,12 +1392,6 @@ |
1392 | 1392 | FINSR(sregs, CML_REG(0x8c), 24, 24, 0x1); |
1393 | 1393 | } |
1394 | 1394 | |
1395 | -static inline void kserdes_att_boost_phyb_patch(struct kserdes_config *sc, | |
1396 | - u32 lane) | |
1397 | -{ | |
1398 | - kserdes_att_boost_phyb_lane_patch(sc, lane); | |
1399 | -} | |
1400 | - | |
1401 | 1395 | static void kserdes_att_boost_phy_patch(struct kserdes_config *sc) |
1402 | 1396 | { |
1403 | 1397 | int lane; |
... | ... | @@ -1406,7 +1400,7 @@ |
1406 | 1400 | kserdes_att_boost_phya_patch(sc); |
1407 | 1401 | } else { |
1408 | 1402 | for_each_lane(sc, lane) |
1409 | - kserdes_att_boost_phyb_patch(sc, lane); | |
1403 | + kserdes_att_boost_phyb_lane_patch(sc, lane); | |
1410 | 1404 | } |
1411 | 1405 | } |
1412 | 1406 |