Skip to content

Commit f6f70cd

Browse files
Shetty-Anushbuha
authored andcommitted
drivers: dac: ad5710r: Remove code delimiters
Removed unnecessary comment blocks for macros, variables, and function declarations Signed-off-by: Anush Shetty <[email protected]>
1 parent 980aa52 commit f6f70cd

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

drivers/dac/ad5710r/ad5710r.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
* DAMAGE.
4040
******************************************************************************/
4141

42-
/******************************************************************************/
43-
/***************************** Include Files **********************************/
44-
/******************************************************************************/
4542
#include "ad5710r.h"
4643
#include <stdlib.h>
4744
#include <string.h>
@@ -52,30 +49,19 @@
5249
#include "no_os_spi.h"
5350
#include "no_os_util.h"
5451

55-
/******************************************************************************/
56-
/********************** Macros and Constants Definitions **********************/
57-
/******************************************************************************/
5852
#define AD5710R_DATA_INDEX(x) x ? 1 : 2
5953
#define AD5710R_INSTR_LEN(x) AD5710R_DATA_INDEX(x)
6054
#define AD5710R_ADDR_INDEX(x) x ? 0 : 1
6155
#define AD5710R_BUFF_LEN(x) x ? 2 : 3
6256
#define AD5710R_CRC_BUFF_LEN(x) x ? 3 : 4
6357
#define AD5710R_CRC_INDEX(x) AD5710R_ADDR_INDEX(x) + 2
6458

65-
/******************************************************************************/
66-
/************************ Variable Declarations *******************************/
67-
/******************************************************************************/
6859
static struct ad5710r_transfer_config multi_cfg = {
6960
.single_instr = 0, /* Sets the streaming mode. */
7061
.stream_length_keep_value = 1 /* Prevents the stream length value from
7162
automatically resetting to zero. */
7263
};
7364

74-
/******************************************************************************/
75-
/************************ Functions Definitions *******************************/
76-
/******************************************************************************/
77-
/******************************************************************************/
78-
7965
/**
8066
* @brief Updates the interface configuration.
8167
* @param desc - The device structure.

drivers/dac/ad5710r/ad5710r.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,6 @@ struct ad5710r_init_param {
363363
uint8_t dev_addr;
364364
};
365365

366-
/*****************************************************************************/
367-
/************************* Functions Declarations ****************************/
368-
/*****************************************************************************/
369366
int ad5710r_reg_write(struct ad5710r_desc *desc,
370367
uint32_t reg_addr,
371368
uint16_t reg_val);

0 commit comments

Comments
 (0)