@@ -82,8 +82,7 @@ static void tx_ext_callback_2(const struct device *dev, int error, void *user_da
8282 *
8383 * See @a can_rx_callback_t() for argument description.
8484 */
85- static void rx_std_callback_1 (const struct device * dev , struct can_frame * frame ,
86- void * user_data )
85+ static void rx_std_callback_1 (const struct device * dev , struct can_frame * frame , void * user_data )
8786{
8887 struct can_filter * filter = user_data ;
8988
@@ -99,8 +98,7 @@ static void rx_std_callback_1(const struct device *dev, struct can_frame *frame,
9998 *
10099 * See @a can_rx_callback_t() for argument description.
101100 */
102- static void rx_std_callback_2 (const struct device * dev , struct can_frame * frame ,
103- void * user_data )
101+ static void rx_std_callback_2 (const struct device * dev , struct can_frame * frame , void * user_data )
104102{
105103 struct can_filter * filter = user_data ;
106104
@@ -150,8 +148,7 @@ static void rx_std_mask_callback_2(const struct device *dev, struct can_frame *f
150148 *
151149 * See @a can_rx_callback_t() for argument description.
152150 */
153- static void rx_ext_callback_1 (const struct device * dev , struct can_frame * frame ,
154- void * user_data )
151+ static void rx_ext_callback_1 (const struct device * dev , struct can_frame * frame , void * user_data )
155152{
156153 struct can_filter * filter = user_data ;
157154
@@ -167,8 +164,7 @@ static void rx_ext_callback_1(const struct device *dev, struct can_frame *frame,
167164 *
168165 * See @a can_rx_callback_t() for argument description.
169166 */
170- static void rx_ext_callback_2 (const struct device * dev , struct can_frame * frame ,
171- void * user_data )
167+ static void rx_ext_callback_2 (const struct device * dev , struct can_frame * frame , void * user_data )
172168{
173169 struct can_filter * filter = user_data ;
174170
@@ -279,8 +275,7 @@ static inline int add_rx_msgq(const struct device *dev, const struct can_filter
279275 *
280276 * @return CAN filter ID.
281277 */
282- static inline int add_rx_filter (const struct device * dev ,
283- const struct can_filter * filter ,
278+ static inline int add_rx_filter (const struct device * dev , const struct can_filter * filter ,
284279 can_rx_callback_t callback )
285280{
286281 int filter_id ;
@@ -302,10 +297,8 @@ static inline int add_rx_filter(const struct device *dev,
302297 * @param frame1 CAN frame 1
303298 * @param frame2 CAN frame 2
304299 */
305- static void send_receive (const struct can_filter * filter1 ,
306- const struct can_filter * filter2 ,
307- const struct can_frame * frame1 ,
308- const struct can_frame * frame2 )
300+ static void send_receive (const struct can_filter * filter1 , const struct can_filter * filter2 ,
301+ const struct can_frame * frame1 , const struct can_frame * frame2 )
309302{
310303 struct can_frame frame_buffer ;
311304 uint32_t mask = 0U ;
@@ -393,8 +386,7 @@ static void send_receive(const struct can_filter *filter1,
393386 * @param data_frame CAN data frame
394387 * @param rtr_frame CAN RTR frame
395388 */
396- static void send_receive_rtr (const struct can_filter * filter ,
397- const struct can_frame * data_frame ,
389+ static void send_receive_rtr (const struct can_filter * filter , const struct can_frame * data_frame ,
398390 const struct can_frame * rtr_frame )
399391{
400392 struct can_frame frame ;
@@ -888,8 +880,7 @@ ZTEST(can_classic, test_send_ext_id_dlc_of_range)
888880 */
889881ZTEST (can_classic , test_send_receive_std_id )
890882{
891- send_receive (& test_std_filter_1 , & test_std_filter_2 ,
892- & test_std_frame_1 , & test_std_frame_2 );
883+ send_receive (& test_std_filter_1 , & test_std_filter_2 , & test_std_frame_1 , & test_std_frame_2 );
893884}
894885
895886/**
@@ -898,10 +889,10 @@ ZTEST(can_classic, test_send_receive_std_id)
898889ZTEST (can_classic , test_send_receive_std_id_no_data )
899890{
900891 const struct can_frame frame = {
901- .flags = 0 ,
902- .id = TEST_CAN_STD_ID_1 ,
903- .dlc = 0 ,
904- .data = { 0 }
892+ .flags = 0 ,
893+ .id = TEST_CAN_STD_ID_1 ,
894+ .dlc = 0 ,
895+ .data = {0 },
905896 };
906897 struct can_frame frame_buffer ;
907898 int filter_id ;
@@ -924,26 +915,25 @@ ZTEST(can_classic, test_send_receive_std_id_no_data)
924915 */
925916ZTEST (can_classic , test_send_receive_ext_id )
926917{
927- send_receive (& test_ext_filter_1 , & test_ext_filter_2 ,
928- & test_ext_frame_1 , & test_ext_frame_2 );
918+ send_receive (& test_ext_filter_1 , & test_ext_filter_2 , & test_ext_frame_1 , & test_ext_frame_2 );
929919}
930920
931921/**
932922 * @brief Test send/receive with standard (11-bit) masked CAN IDs.
933923 */
934924ZTEST (can_classic , test_send_receive_std_id_masked )
935925{
936- send_receive (& test_std_masked_filter_1 , & test_std_masked_filter_2 ,
937- & test_std_frame_1 , & test_std_frame_2 );
926+ send_receive (& test_std_masked_filter_1 , & test_std_masked_filter_2 , & test_std_frame_1 ,
927+ & test_std_frame_2 );
938928}
939929
940930/**
941931 * @brief Test send/receive with extended (29-bit) masked CAN IDs.
942932 */
943933ZTEST (can_classic , test_send_receive_ext_id_masked )
944934{
945- send_receive (& test_ext_masked_filter_1 , & test_ext_masked_filter_2 ,
946- & test_ext_frame_1 , & test_ext_frame_2 );
935+ send_receive (& test_ext_masked_filter_1 , & test_ext_masked_filter_2 , & test_ext_frame_1 ,
936+ & test_ext_frame_2 );
947937}
948938
949939/**
@@ -1389,7 +1379,7 @@ ZTEST_USER(can_classic, test_set_bitrate_while_started)
13891379 */
13901380ZTEST_USER (can_classic , test_set_timing_while_started )
13911381{
1392- struct can_timing timing = { 0 };
1382+ struct can_timing timing = {0 };
13931383 int err ;
13941384
13951385 err = can_calc_timing (can_dev , & timing , TEST_BITRATE_1 , TEST_SAMPLE_POINT );
0 commit comments