mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
staging: vt6655: Cleanup and rename function MACvSaveContext
Rename function MACvSaveContext to vt6655_mac_save_context to avoid CamelCase which is not accepted by checkpatch.pl. Remove unnecessary declaration of function and make function static. Change declaration of cxt_buf to shorten code. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/f514711695f1eafde9996edcc246da2adcd5f9c5.1662890990.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
aef69630f2
commit
8e134ca308
2 changed files with 3 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
||||||
* vt6655_mac_set_short_retry_limit - Set 802.11 Short Retry limit
|
* vt6655_mac_set_short_retry_limit - Set 802.11 Short Retry limit
|
||||||
* MACvSetLongRetryLimit - Set 802.11 Long Retry limit
|
* MACvSetLongRetryLimit - Set 802.11 Long Retry limit
|
||||||
* vt6655_mac_set_loopback_mode - Set MAC Loopback Mode
|
* vt6655_mac_set_loopback_mode - Set MAC Loopback Mode
|
||||||
* MACvSaveContext - Save Context of MAC Registers
|
* vt6655_mac_save_context - Save Context of MAC Registers
|
||||||
* MACvRestoreContext - Restore Context of MAC Registers
|
* MACvRestoreContext - Restore Context of MAC Registers
|
||||||
* MACbSoftwareReset - Software Reset MAC
|
* MACbSoftwareReset - Software Reset MAC
|
||||||
* MACbSafeRxOff - Turn Off MAC Rx
|
* MACbSafeRxOff - Turn Off MAC Rx
|
||||||
|
@ -181,7 +181,7 @@ static void vt6655_mac_set_loopback_mode(struct vnt_private *priv, u8 loopback_m
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void MACvSaveContext(struct vnt_private *priv, unsigned char *cxt_buf)
|
static void vt6655_mac_save_context(struct vnt_private *priv, u8 *cxt_buf)
|
||||||
{
|
{
|
||||||
void __iomem *io_base = priv->port_offset;
|
void __iomem *io_base = priv->port_offset;
|
||||||
|
|
||||||
|
@ -303,7 +303,7 @@ bool MACbSafeSoftwareReset(struct vnt_private *priv)
|
||||||
* reset, then restore register's value
|
* reset, then restore register's value
|
||||||
*/
|
*/
|
||||||
/* save MAC context */
|
/* save MAC context */
|
||||||
MACvSaveContext(priv, abyTmpRegData);
|
vt6655_mac_save_context(priv, abyTmpRegData);
|
||||||
/* do reset */
|
/* do reset */
|
||||||
bRetVal = MACbSoftwareReset(priv);
|
bRetVal = MACbSoftwareReset(priv);
|
||||||
/* restore MAC context, except CR0 */
|
/* restore MAC context, except CR0 */
|
||||||
|
|
|
@ -553,7 +553,6 @@ void vt6655_mac_set_short_retry_limit(struct vnt_private *priv, unsigned char re
|
||||||
|
|
||||||
void MACvSetLongRetryLimit(struct vnt_private *priv, unsigned char byRetryLimit);
|
void MACvSetLongRetryLimit(struct vnt_private *priv, unsigned char byRetryLimit);
|
||||||
|
|
||||||
void MACvSaveContext(struct vnt_private *priv, unsigned char *cxt_buf);
|
|
||||||
void MACvRestoreContext(struct vnt_private *priv, unsigned char *cxt_buf);
|
void MACvRestoreContext(struct vnt_private *priv, unsigned char *cxt_buf);
|
||||||
|
|
||||||
bool MACbSoftwareReset(struct vnt_private *priv);
|
bool MACbSoftwareReset(struct vnt_private *priv);
|
||||||
|
|
Loading…
Reference in a new issue