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:
Harry Yang 2016-10-17 10:37:12 -07:00 committed by Abhijeet Dharmapurikar
parent 9f95ba0718
commit fa2d8c0cfa

View file

@ -38,8 +38,8 @@
static bool is_secure(struct smb_charger *chg, int addr) static bool is_secure(struct smb_charger *chg, int addr)
{ {
/* assume everything above 0xC0 is secure */ /* assume everything above 0xA0 is secure */
return (bool)((addr & 0xFF) >= 0xC0); return (bool)((addr & 0xFF) >= 0xA0);
} }
int smblib_read(struct smb_charger *chg, u16 addr, u8 *val) int smblib_read(struct smb_charger *chg, u16 addr, u8 *val)