Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6655: Delete tmacro.h

Relocate the only macro MAKEWORD that is in use and remove file
tmacro.h. File needs to be changed anyhow because of use of CamelCase
which is not accepted by checkpatch.pl. Reduced code provides
a better overview.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20220416191622.GA11596@matrix-ESPRIMO-P710
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Philipp Hortmann and committed by
Greg Kroah-Hartman
b8ce0acf e5f45b01

+3 -49
-1
drivers/staging/vt6655/baseband.c
··· 29 29 * 30 30 */ 31 31 32 - #include "tmacro.h" 33 32 #include "mac.h" 34 33 #include "baseband.h" 35 34 #include "srom.h"
-1
drivers/staging/vt6655/card.c
··· 24 24 * 25 25 */ 26 26 27 - #include "tmacro.h" 28 27 #include "card.h" 29 28 #include "baseband.h" 30 29 #include "mac.h"
-1
drivers/staging/vt6655/key.c
··· 11 11 * 12 12 */ 13 13 14 - #include "tmacro.h" 15 14 #include "key.h" 16 15 #include "mac.h" 17 16
-1
drivers/staging/vt6655/mac.c
··· 36 36 * 37 37 */ 38 38 39 - #include "tmacro.h" 40 39 #include "mac.h" 41 40 42 41 /*
+3 -1
drivers/staging/vt6655/mac.h
··· 18 18 #ifndef __MAC_H__ 19 19 #define __MAC_H__ 20 20 21 - #include "tmacro.h" 22 21 #include "upc.h" 23 22 24 23 /*--------------------- Export Definitions -------------------------*/ ··· 739 740 740 741 #define MACvSetRFLE_LatchBase(iobase) \ 741 742 MACvWordRegBitsOn(iobase, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_RFLEOPT) 743 + 744 + #define MAKEWORD(lb, hb) \ 745 + ((unsigned short)(((unsigned char)(lb)) | (((unsigned short)((unsigned char)(hb))) << 8))) 742 746 743 747 bool MACbIsRegBitsOff(struct vnt_private *priv, unsigned char byRegOfs, 744 748 unsigned char byTestBits);
-1
drivers/staging/vt6655/srom.c
··· 28 28 */ 29 29 30 30 #include "upc.h" 31 - #include "tmacro.h" 32 31 #include "mac.h" 33 32 #include "srom.h" 34 33
-43
drivers/staging/vt6655/tmacro.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0+ */ 2 - /* 3 - * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. 4 - * All rights reserved. 5 - * 6 - * Purpose: define basic common types and macros 7 - * 8 - * Author: Tevin Chen 9 - * 10 - * Date: May 21, 1996 11 - * 12 - */ 13 - 14 - #ifndef __TMACRO_H__ 15 - #define __TMACRO_H__ 16 - 17 - /****** Common helper macros ***********************************************/ 18 - 19 - #if !defined(LOBYTE) 20 - #define LOBYTE(w) ((unsigned char)(w)) 21 - #endif 22 - #if !defined(HIBYTE) 23 - #define HIBYTE(w) ((unsigned char)(((unsigned short)(w) >> 8) & 0xFF)) 24 - #endif 25 - 26 - #if !defined(LOWORD) 27 - #define LOWORD(d) ((unsigned short)(d)) 28 - #endif 29 - #if !defined(HIWORD) 30 - #define HIWORD(d) ((unsigned short)((((unsigned long)(d)) >> 16) & 0xFFFF)) 31 - #endif 32 - 33 - #define LODWORD(q) ((q).u.dwLowDword) 34 - #define HIDWORD(q) ((q).u.dwHighDword) 35 - 36 - #if !defined(MAKEWORD) 37 - #define MAKEWORD(lb, hb) ((unsigned short)(((unsigned char)(lb)) | (((unsigned short)((unsigned char)(hb))) << 8))) 38 - #endif 39 - #if !defined(MAKEDWORD) 40 - #define MAKEDWORD(lw, hw) ((unsigned long)(((unsigned short)(lw)) | (((unsigned long)((unsigned short)(hw))) << 16))) 41 - #endif 42 - 43 - #endif /* __TMACRO_H__ */