aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 08:10:22 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 09:03:34 -0400
commit90414248bf23ba3c96811f48053b47bfc330fce3 (patch)
tree00a0c2bac63e030b2b86d39903a4c653d0165c07
parentcf0e9cfcc70d8aaeabf19356f42041f8a5495301 (diff)
[media] siano: fix checkpatch.pl compliants on smscoreapi.h
Fix the remaining checkpatch.pl compliants at smscoreapi.h, except by the "line over 80 characters" on comments. Fixing those would require more time, as the better is to convert them into the struct descriptions used inside the kernel, as described at: Documentation/kernel-doc-nano-HOWTO.txt Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/common/siano/smscoreapi.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/media/common/siano/smscoreapi.h b/drivers/media/common/siano/smscoreapi.h
index b65232aabf5e..b0253d2d2091 100644
--- a/drivers/media/common/siano/smscoreapi.h
+++ b/drivers/media/common/siano/smscoreapi.h
@@ -577,8 +577,11 @@ enum msg_types {
577}; 577};
578 578
579#define SMS_INIT_MSG_EX(ptr, type, src, dst, len) do { \ 579#define SMS_INIT_MSG_EX(ptr, type, src, dst, len) do { \
580 (ptr)->msg_type = type; (ptr)->msg_src_id = src; (ptr)->msg_dst_id = dst; \ 580 (ptr)->msg_type = type; \
581 (ptr)->msg_length = len; (ptr)->msg_flags = 0; \ 581 (ptr)->msg_src_id = src; \
582 (ptr)->msg_dst_id = dst; \
583 (ptr)->msg_length = len; \
584 (ptr)->msg_flags = 0; \
582} while (0) 585} while (0)
583 586
584#define SMS_INIT_MSG(ptr, type, len) \ 587#define SMS_INIT_MSG(ptr, type, len) \
@@ -704,7 +707,7 @@ struct sms_stats {
704 u32 modem_state; /* from SMSHOSTLIB_DVB_MODEM_STATE_ET, 707 u32 modem_state; /* from SMSHOSTLIB_DVB_MODEM_STATE_ET,
705 valid only for DVB-T/H */ 708 valid only for DVB-T/H */
706 u32 guard_interval; /* Guard Interval from 709 u32 guard_interval; /* Guard Interval from
707 SMSHOSTLIB_GUARD_INTERVALS_ET, valid only for DVB-T/H */ 710 SMSHOSTLIB_GUARD_INTERVALS_ET, valid only for DVB-T/H */
708 u32 code_rate; /* Code Rate from SMSHOSTLIB_CODE_RATE_ET, 711 u32 code_rate; /* Code Rate from SMSHOSTLIB_CODE_RATE_ET,
709 valid only for DVB-T/H */ 712 valid only for DVB-T/H */
710 u32 lp_code_rate; /* Low Priority Code Rate from 713 u32 lp_code_rate; /* Low Priority Code Rate from
@@ -746,7 +749,7 @@ struct sms_stats {
746 u32 sms_to_host_tx_errors; /* Total number of transmission errors. */ 749 u32 sms_to_host_tx_errors; /* Total number of transmission errors. */
747 750
748 /* DAB/T-DMB */ 751 /* DAB/T-DMB */
749 u32 pre_ber; /* DAB/T-DMB only: Pre Viterbi BER [1E-5] */ 752 u32 pre_ber; /* DAB/T-DMB only: Pre Viterbi BER [1E-5] */
750 753
751 /* DVB-H TPS parameters */ 754 /* DVB-H TPS parameters */
752 u32 cell_id; /* TPS Cell ID in bits 15..0, bits 31..16 zero; 755 u32 cell_id; /* TPS Cell ID in bits 15..0, bits 31..16 zero;
@@ -1177,7 +1180,8 @@ int smscore_led_state(struct smscore_device_t *core, int led);
1177 1180
1178#define dprintk(kern, lvl, fmt, arg...) do {\ 1181#define dprintk(kern, lvl, fmt, arg...) do {\
1179 if (sms_dbg & lvl) \ 1182 if (sms_dbg & lvl) \
1180 sms_printk(kern, fmt, ##arg); } while (0) 1183 sms_printk(kern, fmt, ##arg); \
1184} while (0)
1181 1185
1182#define sms_log(fmt, arg...) sms_printk(KERN_INFO, fmt, ##arg) 1186#define sms_log(fmt, arg...) sms_printk(KERN_INFO, fmt, ##arg)
1183#define sms_err(fmt, arg...) \ 1187#define sms_err(fmt, arg...) \