mirror of https://gitee.com/openkylin/linux.git
Staging: RT2860: Cleaned all bar one in chlist.h
I have cleaned all errors and all bar one warning in chlist.h. The remaining warning is a line over 80 characters warning. Breaking it doesnt look all that easy. Signed-off-by: Neil Munro <neilmunro@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e3eb7cdd11
commit
e7d122b55d
|
@ -76,10 +76,8 @@ extern int CH_HZ_ID_MAP_NUM;
|
||||||
#define MAP_CHANNEL_ID_TO_KHZ(_ch, _khz) \
|
#define MAP_CHANNEL_ID_TO_KHZ(_ch, _khz) \
|
||||||
do { \
|
do { \
|
||||||
int _chIdx; \
|
int _chIdx; \
|
||||||
for (_chIdx = 0; _chIdx < CH_HZ_ID_MAP_NUM; _chIdx++)\
|
for (_chIdx = 0; _chIdx < CH_HZ_ID_MAP_NUM; _chIdx++) {\
|
||||||
{ \
|
if ((_ch) == CH_HZ_ID_MAP[_chIdx].channel) { \
|
||||||
if ((_ch) == CH_HZ_ID_MAP[_chIdx].channel) \
|
|
||||||
{ \
|
|
||||||
(_khz) = CH_HZ_ID_MAP[_chIdx].freqKHz * 1000;\
|
(_khz) = CH_HZ_ID_MAP[_chIdx].freqKHz * 1000;\
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
|
@ -91,10 +89,8 @@ extern int CH_HZ_ID_MAP_NUM;
|
||||||
#define MAP_KHZ_TO_CHANNEL_ID(_khz, _ch) \
|
#define MAP_KHZ_TO_CHANNEL_ID(_khz, _ch) \
|
||||||
do { \
|
do { \
|
||||||
int _chIdx; \
|
int _chIdx; \
|
||||||
for (_chIdx = 0; _chIdx < CH_HZ_ID_MAP_NUM; _chIdx++)\
|
for (_chIdx = 0; _chIdx < CH_HZ_ID_MAP_NUM; _chIdx++) {\
|
||||||
{ \
|
if ((_khz) == CH_HZ_ID_MAP[_chIdx].freqKHz) {\
|
||||||
if ((_khz) == CH_HZ_ID_MAP[_chIdx].freqKHz) \
|
|
||||||
{ \
|
|
||||||
(_ch) = CH_HZ_ID_MAP[_chIdx].channel; \
|
(_ch) = CH_HZ_ID_MAP[_chIdx].channel; \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue