Debian Codegraph @

src/soc/mediatek/common/rtc_pwrap_ops.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <assert.h>
4 #include <soc/pmic_wrap_common.h>
5 #include <soc/rtc.h>
6
7 void rtc_read(u16 addr, u16 *rdata)
8 {
9 s32 ret;
10
11 *rdata = 0;
12 ret = pwrap_read(addr, rdata);
13 assert(ret == 0);
14 }
15
16 void rtc_write(u16 addr, u16 wdata)
17 {
18 s32 ret;
19
20 ret = pwrap_write(addr, wdata);
21 assert(ret == 0);
22 }