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

Staging:dgap: Fix Macros with complex values should be enclosed in dgap.h

Fix checkpatch.pl issues with macros with complex
values should be enclosed in dgap.h

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Reviewed-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ebru Akagunduz and committed by
Greg Kroah-Hartman
3eed3d36 e839c42d

+28 -28
+28 -28
drivers/staging/dgap/dgap.h
··· 768 768 769 769 #if !defined(TIOCMODG) 770 770 771 - #define TIOCMODG ('d'<<8) | 250 /* get modem ctrl state */ 772 - #define TIOCMODS ('d'<<8) | 251 /* set modem ctrl state */ 771 + #define TIOCMODG (('d'<<8) | 250) /* get modem ctrl state */ 772 + #define TIOCMODS (('d'<<8) | 251) /* set modem ctrl state */ 773 773 774 774 #ifndef TIOCM_LE 775 775 #define TIOCM_LE 0x01 /* line enable */ ··· 788 788 #endif 789 789 790 790 #if !defined(TIOCMSET) 791 - #define TIOCMSET ('d'<<8) | 252 /* set modem ctrl state */ 792 - #define TIOCMGET ('d'<<8) | 253 /* set modem ctrl state */ 791 + #define TIOCMSET (('d'<<8) | 252) /* set modem ctrl state */ 792 + #define TIOCMGET (('d'<<8) | 253) /* set modem ctrl state */ 793 793 #endif 794 794 795 795 #if !defined(TIOCMBIC) 796 - #define TIOCMBIC ('d'<<8) | 254 /* set modem ctrl state */ 797 - #define TIOCMBIS ('d'<<8) | 255 /* set modem ctrl state */ 796 + #define TIOCMBIC (('d'<<8) | 254) /* set modem ctrl state */ 797 + #define TIOCMBIS (('d'<<8) | 255) /* set modem ctrl state */ 798 798 #endif 799 799 800 800 801 801 #if !defined(TIOCSDTR) 802 - #define TIOCSDTR ('e'<<8) | 0 /* set DTR */ 803 - #define TIOCCDTR ('e'<<8) | 1 /* clear DTR */ 802 + #define TIOCSDTR (('e'<<8) | 0) /* set DTR */ 803 + #define TIOCCDTR (('e'<<8) | 1) /* clear DTR */ 804 804 #endif 805 805 806 806 /************************************************************************ 807 807 * Ioctl command arguments for DIGI parameters. 808 808 ************************************************************************/ 809 - #define DIGI_GETA ('e'<<8) | 94 /* Read params */ 809 + #define DIGI_GETA (('e'<<8) | 94) /* Read params */ 810 810 811 - #define DIGI_SETA ('e'<<8) | 95 /* Set params */ 812 - #define DIGI_SETAW ('e'<<8) | 96 /* Drain & set params */ 813 - #define DIGI_SETAF ('e'<<8) | 97 /* Drain, flush & set params */ 811 + #define DIGI_SETA (('e'<<8) | 95) /* Set params */ 812 + #define DIGI_SETAW (('e'<<8) | 96) /* Drain & set params */ 813 + #define DIGI_SETAF (('e'<<8) | 97) /* Drain, flush & set params */ 814 814 815 - #define DIGI_KME ('e'<<8) | 98 /* Read/Write Host */ 815 + #define DIGI_KME (('e'<<8) | 98) /* Read/Write Host */ 816 816 /* Adapter Memory */ 817 817 818 - #define DIGI_GETFLOW ('e'<<8) | 99 /* Get startc/stopc flow */ 818 + #define DIGI_GETFLOW (('e'<<8) | 99) /* Get startc/stopc flow */ 819 819 /* control characters */ 820 - #define DIGI_SETFLOW ('e'<<8) | 100 /* Set startc/stopc flow */ 820 + #define DIGI_SETFLOW (('e'<<8) | 100) /* Set startc/stopc flow */ 821 821 /* control characters */ 822 - #define DIGI_GETAFLOW ('e'<<8) | 101 /* Get Aux. startc/stopc */ 822 + #define DIGI_GETAFLOW (('e'<<8) | 101) /* Get Aux. startc/stopc */ 823 823 /* flow control chars */ 824 - #define DIGI_SETAFLOW ('e'<<8) | 102 /* Set Aux. startc/stopc */ 824 + #define DIGI_SETAFLOW (('e'<<8) | 102) /* Set Aux. startc/stopc */ 825 825 /* flow control chars */ 826 826 827 - #define DIGI_GEDELAY ('d'<<8) | 246 /* Get edelay */ 828 - #define DIGI_SEDELAY ('d'<<8) | 247 /* Set edelay */ 827 + #define DIGI_GEDELAY (('d'<<8) | 246) /* Get edelay */ 828 + #define DIGI_SEDELAY (('d'<<8) | 247) /* Set edelay */ 829 829 830 830 struct digiflow_t { 831 831 unsigned char startc; /* flow cntl start char */ ··· 834 834 835 835 836 836 #ifdef FLOW_2200 837 - #define F2200_GETA ('e'<<8) | 104 /* Get 2x36 flow cntl flags */ 838 - #define F2200_SETAW ('e'<<8) | 105 /* Set 2x36 flow cntl flags */ 837 + #define F2200_GETA (('e'<<8) | 104) /* Get 2x36 flow cntl flags */ 838 + #define F2200_SETAW (('e'<<8) | 105) /* Set 2x36 flow cntl flags */ 839 839 #define F2200_MASK 0x03 /* 2200 flow cntl bit mask */ 840 840 #define FCNTL_2200 0x01 /* 2x36 terminal flow cntl */ 841 841 #define PCNTL_2200 0x02 /* 2x36 printer flow cntl */ ··· 971 971 char dinfo_version[16]; /* driver version */ 972 972 }; 973 973 974 - #define DIGI_GETDD ('d'<<8) | 248 /* get driver info */ 974 + #define DIGI_GETDD (('d'<<8) | 248) /* get driver info */ 975 975 976 976 /************************************************************************ 977 977 * Structure used with ioctl commands for per-board information ··· 991 991 char info_reserved[7]; /* for future expansion */ 992 992 }; 993 993 994 - #define DIGI_GETBD ('d'<<8) | 249 /* get board info */ 994 + #define DIGI_GETBD (('d'<<8) | 249) /* get board info */ 995 995 996 996 struct digi_stat { 997 997 unsigned int info_chan; /* Channel number (0 based) */ ··· 1006 1006 unsigned long info_reserved[8]; /* for future expansion */ 1007 1007 }; 1008 1008 1009 - #define DIGI_GETSTAT ('d'<<8) | 244 /* get board info */ 1009 + #define DIGI_GETSTAT (('d'<<8) | 244) /* get board info */ 1010 1010 /************************************************************************ 1011 1011 * 1012 1012 * Structure used with ioctl commands for per-channel information ··· 1049 1049 #define INFO_CH_WLOW 0x0020 1050 1050 #define INFO_XXBUF_BUSY 0x0040 1051 1051 1052 - #define DIGI_GETCH ('d'<<8) | 245 /* get board info */ 1052 + #define DIGI_GETCH (('d'<<8) | 245) /* get board info */ 1053 1053 1054 1054 /* Board type definitions */ 1055 1055 ··· 1094 1094 #define BD_TRIBOOT 0x8 1095 1095 #define BD_BADKME 0x80 1096 1096 1097 - #define DIGI_LOOPBACK ('d'<<8) | 252 /* Enable/disable UART internal loopback */ 1098 - #define DIGI_SPOLL ('d'<<8) | 254 /* change poller rate */ 1097 + #define DIGI_LOOPBACK (('d'<<8) | 252) /* Enable/disable UART internal loopback */ 1098 + #define DIGI_SPOLL (('d'<<8) | 254) /* change poller rate */ 1099 1099 1100 1100 #define DIGI_SETCUSTOMBAUD _IOW('e', 106, int) /* Set integer baud rate */ 1101 1101 #define DIGI_GETCUSTOMBAUD _IOR('e', 107, int) /* Get integer baud rate */ 1102 - #define DIGI_RESET_PORT ('e'<<8) | 93 /* Reset port */ 1102 + #define DIGI_RESET_PORT (('e'<<8) | 93) /* Reset port */ 1103 1103 1104 1104 /************************************************************************ 1105 1105 * Channel information structure.