]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: hal: move common code to macro
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sun, 9 Jun 2019 12:23:39 +0000 (17:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 15:56:00 +0000 (17:56 +0200)
commitd8e40aed63a0a5eced6620e45e0ce7794e0f13b5
tree8511aa62886c0c2be4282d6283eb7918fcacb556
parent9aba950b843ef039ebba45fed25618a7b9c5ac20
staging: rtl8723bs: hal: move common code to macro

In halbtc8723b2ant_TdmaDurationAdjust function,below piece of code is
repeated many times.

halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, val);
pCoexDm->psTdmaDuAdjType = val;

So replace the same with "HAL_BTC8723B2ANT_DMA_DURATION_ADJUST" MACRO.

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
-----
changes in v2: clean the changelog with proper indent
-----
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c