Skip to content

Commit 2bb5adc

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 c6114e1 commit 2bb5adc

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
@@ -75,3 +75,9 @@ Patch List:
7575
Impacted files:
7676
drivers/rz/fsp/src/rza/r_adc_c/r_adc_c.c
7777
drivers/rz/fsp/inc/instances/rza/r_adc_c.h
78+
79+
* Rename g_adc_on_adc to g_adc_on_adc_c with _c suffix to match with ADC_C FSP driver and
80+
make the Zephyr ADC driver generic
81+
Impacted files:
82+
drivers/rz/fsp/src/rzg/r_adc_c/r_adc_c.c
83+
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)