qcom-charger: smblib: change secure address threshold
Correct the secure address threshold to 0x0A since Misc peripheral has secure registers starting as early as 0x0A CRs-Fixed: 1048242 Change-Id: Id7ec03919e2fd08540cd7e677bf5e4048d73c23d Signed-off-by: Harry Yang <harryy@codeaurora.org>
This commit is contained in:
parent
9f95ba0718
commit
fa2d8c0cfa
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@
|
|||
|
||||
static bool is_secure(struct smb_charger *chg, int addr)
|
||||
{
|
||||
/* assume everything above 0xC0 is secure */
|
||||
return (bool)((addr & 0xFF) >= 0xC0);
|
||||
/* assume everything above 0xA0 is secure */
|
||||
return (bool)((addr & 0xFF) >= 0xA0);
|
||||
}
|
||||
|
||||
int smblib_read(struct smb_charger *chg, u16 addr, u8 *val)
|
||||
|
|
Loading…
Add table
Reference in a new issue