@@ -84,7 +84,7 @@ static inline void cec_ops_inactive_source(const struct cec_msg *msg,
8484}
8585
8686static inline void cec_msg_request_active_source (struct cec_msg * msg ,
87- bool reply )
87+ int reply )
8888{
8989 msg -> len = 2 ;
9090 msg -> msg [0 ] |= 0xf ; /* broadcast */
@@ -109,7 +109,7 @@ static inline void cec_ops_routing_information(const struct cec_msg *msg,
109109}
110110
111111static inline void cec_msg_routing_change (struct cec_msg * msg ,
112- bool reply ,
112+ int reply ,
113113 __u16 orig_phys_addr ,
114114 __u16 new_phys_addr )
115115{
@@ -156,7 +156,7 @@ static inline void cec_msg_standby(struct cec_msg *msg)
156156
157157
158158/* One Touch Record Feature */
159- static inline void cec_msg_record_off (struct cec_msg * msg , bool reply )
159+ static inline void cec_msg_record_off (struct cec_msg * msg , int reply )
160160{
161161 msg -> len = 2 ;
162162 msg -> msg [1 ] = CEC_MSG_RECORD_OFF ;
@@ -318,7 +318,7 @@ static inline void cec_msg_record_on_phys_addr(struct cec_msg *msg,
318318}
319319
320320static inline void cec_msg_record_on (struct cec_msg * msg ,
321- bool reply ,
321+ int reply ,
322322 const struct cec_op_record_src * rec_src )
323323{
324324 switch (rec_src -> type ) {
@@ -385,7 +385,7 @@ static inline void cec_ops_record_status(const struct cec_msg *msg,
385385}
386386
387387static inline void cec_msg_record_tv_screen (struct cec_msg * msg ,
388- bool reply )
388+ int reply )
389389{
390390 msg -> len = 2 ;
391391 msg -> msg [1 ] = CEC_MSG_RECORD_TV_SCREEN ;
@@ -459,7 +459,7 @@ static inline void cec_ops_timer_cleared_status(const struct cec_msg *msg,
459459}
460460
461461static inline void cec_msg_clear_analogue_timer (struct cec_msg * msg ,
462- bool reply ,
462+ int reply ,
463463 __u8 day ,
464464 __u8 month ,
465465 __u8 start_hr ,
@@ -514,7 +514,7 @@ static inline void cec_ops_clear_analogue_timer(const struct cec_msg *msg,
514514}
515515
516516static inline void cec_msg_clear_digital_timer (struct cec_msg * msg ,
517- bool reply ,
517+ int reply ,
518518 __u8 day ,
519519 __u8 month ,
520520 __u8 start_hr ,
@@ -560,7 +560,7 @@ static inline void cec_ops_clear_digital_timer(const struct cec_msg *msg,
560560}
561561
562562static inline void cec_msg_clear_ext_timer (struct cec_msg * msg ,
563- bool reply ,
563+ int reply ,
564564 __u8 day ,
565565 __u8 month ,
566566 __u8 start_hr ,
@@ -615,7 +615,7 @@ static inline void cec_ops_clear_ext_timer(const struct cec_msg *msg,
615615}
616616
617617static inline void cec_msg_set_analogue_timer (struct cec_msg * msg ,
618- bool reply ,
618+ int reply ,
619619 __u8 day ,
620620 __u8 month ,
621621 __u8 start_hr ,
@@ -670,7 +670,7 @@ static inline void cec_ops_set_analogue_timer(const struct cec_msg *msg,
670670}
671671
672672static inline void cec_msg_set_digital_timer (struct cec_msg * msg ,
673- bool reply ,
673+ int reply ,
674674 __u8 day ,
675675 __u8 month ,
676676 __u8 start_hr ,
@@ -716,7 +716,7 @@ static inline void cec_ops_set_digital_timer(const struct cec_msg *msg,
716716}
717717
718718static inline void cec_msg_set_ext_timer (struct cec_msg * msg ,
719- bool reply ,
719+ int reply ,
720720 __u8 day ,
721721 __u8 month ,
722722 __u8 start_hr ,
@@ -808,7 +808,7 @@ static inline void cec_ops_cec_version(const struct cec_msg *msg,
808808}
809809
810810static inline void cec_msg_get_cec_version (struct cec_msg * msg ,
811- bool reply )
811+ int reply )
812812{
813813 msg -> len = 2 ;
814814 msg -> msg [1 ] = CEC_MSG_GET_CEC_VERSION ;
@@ -834,7 +834,7 @@ static inline void cec_ops_report_physical_addr(const struct cec_msg *msg,
834834}
835835
836836static inline void cec_msg_give_physical_addr (struct cec_msg * msg ,
837- bool reply )
837+ int reply )
838838{
839839 msg -> len = 2 ;
840840 msg -> msg [1 ] = CEC_MSG_GIVE_PHYSICAL_ADDR ;
@@ -858,7 +858,7 @@ static inline void cec_ops_set_menu_language(const struct cec_msg *msg,
858858}
859859
860860static inline void cec_msg_get_menu_language (struct cec_msg * msg ,
861- bool reply )
861+ int reply )
862862{
863863 msg -> len = 2 ;
864864 msg -> msg [1 ] = CEC_MSG_GET_MENU_LANGUAGE ;
@@ -907,7 +907,7 @@ static inline void cec_ops_report_features(const struct cec_msg *msg,
907907}
908908
909909static inline void cec_msg_give_features (struct cec_msg * msg ,
910- bool reply )
910+ int reply )
911911{
912912 msg -> len = 2 ;
913913 msg -> msg [1 ] = CEC_MSG_GIVE_FEATURES ;
@@ -944,7 +944,7 @@ static inline void cec_ops_deck_status(const struct cec_msg *msg,
944944}
945945
946946static inline void cec_msg_give_deck_status (struct cec_msg * msg ,
947- bool reply ,
947+ int reply ,
948948 __u8 status_req )
949949{
950950 msg -> len = 3 ;
@@ -978,7 +978,7 @@ static inline void cec_ops_play(const struct cec_msg *msg,
978978struct cec_op_tuner_device_info {
979979 __u8 rec_flag ;
980980 __u8 tuner_display_info ;
981- bool is_analog ;
981+ __u8 is_analog ;
982982 union {
983983 struct cec_op_digital_service_id digital ;
984984 struct {
@@ -1048,7 +1048,7 @@ static inline void cec_ops_tuner_device_status(const struct cec_msg *msg,
10481048}
10491049
10501050static inline void cec_msg_give_tuner_device_status (struct cec_msg * msg ,
1051- bool reply ,
1051+ int reply ,
10521052 __u8 status_req )
10531053{
10541054 msg -> len = 3 ;
@@ -1131,7 +1131,7 @@ static inline void cec_ops_device_vendor_id(const struct cec_msg *msg,
11311131}
11321132
11331133static inline void cec_msg_give_device_vendor_id (struct cec_msg * msg ,
1134- bool reply )
1134+ int reply )
11351135{
11361136 msg -> len = 2 ;
11371137 msg -> msg [1 ] = CEC_MSG_GIVE_DEVICE_VENDOR_ID ;
@@ -1267,7 +1267,7 @@ static inline void cec_ops_set_osd_name(const struct cec_msg *msg,
12671267}
12681268
12691269static inline void cec_msg_give_osd_name (struct cec_msg * msg ,
1270- bool reply )
1270+ int reply )
12711271{
12721272 msg -> len = 2 ;
12731273 msg -> msg [1 ] = CEC_MSG_GIVE_OSD_NAME ;
@@ -1291,7 +1291,7 @@ static inline void cec_ops_menu_status(const struct cec_msg *msg,
12911291}
12921292
12931293static inline void cec_msg_menu_request (struct cec_msg * msg ,
1294- bool reply ,
1294+ int reply ,
12951295 __u8 menu_req )
12961296{
12971297 msg -> len = 3 ;
@@ -1308,7 +1308,7 @@ static inline void cec_ops_menu_request(const struct cec_msg *msg,
13081308
13091309struct cec_op_ui_command {
13101310 __u8 ui_cmd ;
1311- bool has_opt_arg ;
1311+ __u8 has_opt_arg ;
13121312 union {
13131313 struct cec_op_channel_data channel_identifier ;
13141314 __u8 ui_broadcast_type ;
@@ -1354,7 +1354,7 @@ static inline void cec_ops_user_control_pressed(const struct cec_msg *msg,
13541354 struct cec_op_ui_command * ui_cmd )
13551355{
13561356 ui_cmd -> ui_cmd = msg -> msg [2 ];
1357- ui_cmd -> has_opt_arg = false ;
1357+ ui_cmd -> has_opt_arg = 0 ;
13581358 if (msg -> len == 3 )
13591359 return ;
13601360 switch (ui_cmd -> ui_cmd ) {
@@ -1366,12 +1366,12 @@ static inline void cec_ops_user_control_pressed(const struct cec_msg *msg,
13661366 case 0x6a :
13671367 /* The optional operand is one byte for all these ui commands */
13681368 ui_cmd -> play_mode = msg -> msg [3 ];
1369- ui_cmd -> has_opt_arg = true ;
1369+ ui_cmd -> has_opt_arg = 1 ;
13701370 break ;
13711371 case 0x67 :
13721372 if (msg -> len < 7 )
13731373 break ;
1374- ui_cmd -> has_opt_arg = true ;
1374+ ui_cmd -> has_opt_arg = 1 ;
13751375 ui_cmd -> channel_identifier .channel_number_fmt = msg -> msg [3 ] >> 2 ;
13761376 ui_cmd -> channel_identifier .major = ((msg -> msg [3 ] & 3 ) << 6 ) | msg -> msg [4 ];
13771377 ui_cmd -> channel_identifier .minor = (msg -> msg [5 ] << 8 ) | msg -> msg [6 ];
@@ -1403,7 +1403,7 @@ static inline void cec_ops_report_power_status(const struct cec_msg *msg,
14031403}
14041404
14051405static inline void cec_msg_give_device_power_status (struct cec_msg * msg ,
1406- bool reply )
1406+ int reply )
14071407{
14081408 msg -> len = 2 ;
14091409 msg -> msg [1 ] = CEC_MSG_GIVE_DEVICE_POWER_STATUS ;
@@ -1463,7 +1463,7 @@ static inline void cec_ops_report_audio_status(const struct cec_msg *msg,
14631463}
14641464
14651465static inline void cec_msg_give_audio_status (struct cec_msg * msg ,
1466- bool reply )
1466+ int reply )
14671467{
14681468 msg -> len = 2 ;
14691469 msg -> msg [1 ] = CEC_MSG_GIVE_AUDIO_STATUS ;
@@ -1485,7 +1485,7 @@ static inline void cec_ops_set_system_audio_mode(const struct cec_msg *msg,
14851485}
14861486
14871487static inline void cec_msg_system_audio_mode_request (struct cec_msg * msg ,
1488- bool reply ,
1488+ int reply ,
14891489 __u16 phys_addr )
14901490{
14911491 msg -> len = phys_addr == 0xffff ? 2 : 4 ;
@@ -1520,7 +1520,7 @@ static inline void cec_ops_system_audio_mode_status(const struct cec_msg *msg,
15201520}
15211521
15221522static inline void cec_msg_give_system_audio_mode_status (struct cec_msg * msg ,
1523- bool reply )
1523+ int reply )
15241524{
15251525 msg -> len = 2 ;
15261526 msg -> msg [1 ] = CEC_MSG_GIVE_SYSTEM_AUDIO_MODE_STATUS ;
@@ -1560,7 +1560,7 @@ static inline void cec_ops_report_short_audio_descriptor(const struct cec_msg *m
15601560}
15611561
15621562static inline void cec_msg_request_short_audio_descriptor (struct cec_msg * msg ,
1563- bool reply ,
1563+ int reply ,
15641564 __u8 num_descriptors ,
15651565 const __u8 * audio_format_id ,
15661566 const __u8 * audio_format_code )
@@ -1618,15 +1618,15 @@ static inline void cec_msg_report_arc_initiated(struct cec_msg *msg)
16181618}
16191619
16201620static inline void cec_msg_initiate_arc (struct cec_msg * msg ,
1621- bool reply )
1621+ int reply )
16221622{
16231623 msg -> len = 2 ;
16241624 msg -> msg [1 ] = CEC_MSG_INITIATE_ARC ;
16251625 msg -> reply = reply ? CEC_MSG_REPORT_ARC_INITIATED : 0 ;
16261626}
16271627
16281628static inline void cec_msg_request_arc_initiation (struct cec_msg * msg ,
1629- bool reply )
1629+ int reply )
16301630{
16311631 msg -> len = 2 ;
16321632 msg -> msg [1 ] = CEC_MSG_REQUEST_ARC_INITIATION ;
@@ -1640,15 +1640,15 @@ static inline void cec_msg_report_arc_terminated(struct cec_msg *msg)
16401640}
16411641
16421642static inline void cec_msg_terminate_arc (struct cec_msg * msg ,
1643- bool reply )
1643+ int reply )
16441644{
16451645 msg -> len = 2 ;
16461646 msg -> msg [1 ] = CEC_MSG_TERMINATE_ARC ;
16471647 msg -> reply = reply ? CEC_MSG_REPORT_ARC_TERMINATED : 0 ;
16481648}
16491649
16501650static inline void cec_msg_request_arc_termination (struct cec_msg * msg ,
1651- bool reply )
1651+ int reply )
16521652{
16531653 msg -> len = 2 ;
16541654 msg -> msg [1 ] = CEC_MSG_REQUEST_ARC_TERMINATION ;
@@ -1690,7 +1690,7 @@ static inline void cec_ops_report_current_latency(const struct cec_msg *msg,
16901690}
16911691
16921692static inline void cec_msg_request_current_latency (struct cec_msg * msg ,
1693- bool reply ,
1693+ int reply ,
16941694 __u16 phys_addr )
16951695{
16961696 msg -> len = 4 ;
0 commit comments