Skip to content

Commit 738a804

Browse files
committed
hal: renesas: rzg: Add _c suffix to ADC source
Rename g_adc_on_adc to g_adc_on_adc_c with _c suffix Signed-off-by: Nhut Nguyen <[email protected]>
1 parent e359d34 commit 738a804

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

drivers/rz/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ Patch List:
6464
Impacted files:
6565
drivers/rz/fsp/src/rza/r_adc_c/r_adc_c.c
6666
drivers/rz/fsp/inc/instances/rza/r_adc_c.h
67+
68+
* Rename g_adc_on_adc to g_adc_on_adc_c with _c suffix to match with ADC_C FSP driver and
69+
make the Zephyr ADC driver generic
70+
Impacted files:
71+
drivers/rz/fsp/src/rzg/r_adc_c/r_adc_c.c
72+
drivers/rz/fsp/inc/instances/rzg/r_adc_c.h

drivers/rz/fsp/inc/instances/rzg/r_adc_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ typedef struct
179179

180180
/** @cond INC_HEADER_DEFS_SEC */
181181
/** Interface Structure for user access */
182-
extern const adc_api_t g_adc_on_adc;
182+
extern const adc_api_t g_adc_on_adc_c;
183183

184184
/** @endcond */
185185

drivers/rz/fsp/src/rzg/r_adc_c/r_adc_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static int32_t r_adc_c_highest_channel_get(uint32_t adc_mask);
5353
**********************************************************************************************************************/
5454

5555
/** ADC Implementation of ADC. */
56-
const adc_api_t g_adc_on_adc =
56+
const adc_api_t g_adc_on_adc_c =
5757
{
5858
.open = R_ADC_C_Open,
5959
.scanCfg = R_ADC_C_ScanCfg,

0 commit comments

Comments
 (0)