pmu: stpmic1: change specific NVM api to MISC
Use MISC u-class to export the NVM register (starting at 0xF8 offset) and avoid specific API. - SHADOW have offset < 0. - NVM have register > 0 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
committed by
Patrice Chotard
parent
0c8620d2ff
commit
234a60244c
@@ -108,11 +108,4 @@ enum {
|
||||
STPMIC1_PWR_SW2,
|
||||
STPMIC1_MAX_PWR_SW,
|
||||
};
|
||||
|
||||
int stpmic1_shadow_read_byte(u8 addr, u8 *buf);
|
||||
int stpmic1_shadow_write_byte(u8 addr, u8 *buf);
|
||||
int stpmic1_nvm_read_byte(u8 addr, u8 *buf);
|
||||
int stpmic1_nvm_write_byte(u8 addr, u8 *buf);
|
||||
int stpmic1_nvm_read_all(u8 *buf, int buf_len);
|
||||
int stpmic1_nvm_write_all(u8 *buf, int buf_len);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user