static int qpnp_wled_sec_access(struct qpnp_wled *wled, uint16_t base_addr) { uint8_t reg = QPNP_WLED_SEC_UNLOCK; pm8x41_wled_reg_write(QPNP_WLED_SEC_ACCESS_REG(base_addr), reg); return 0; }
static int qpnp_wled_sec_access(struct qpnp_wled *wled, u16 base_addr) { int rc; u8 reg = QPNP_WLED_SEC_UNLOCK; rc = qpnp_wled_write_reg(wled, ®, QPNP_WLED_SEC_ACCESS_REG(base_addr)); if (rc) return rc; return 0; }