nmhw21: cleanup da9063 driver

- remove unnecessary and dead code
This commit is contained in:
Rene Straub 2019-01-04 15:11:56 +01:00
parent 80417a713a
commit 36d526cc87
2 changed files with 2 additions and 25 deletions

View File

@ -3,7 +3,7 @@
*
* Dialog DA9063 PMIC
*
* Copyright (C) 2018 NetModule AG - http://www.netmodule.com/
* Copyright (C) 2018-2019 NetModule AG - http://www.netmodule.com/
*
* SPDX-License-Identifier: GPL-2.0+
*/
@ -128,7 +128,6 @@ void da9063_set_gpio(unsigned bit, int state)
bitmask = 1U << (bit-8);
}
/* printf("da9063_set_gpio %d 0x%04x\n", pmic_reg, bitmask); */
ret = da9063_get_reg(pmic_reg, &reg);
if (ret == 0) {
@ -138,25 +137,3 @@ void da9063_set_gpio(unsigned bit, int state)
(void)da9063_set_reg(pmic_reg, reg);
}
}
static int do_pmic(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
uint8_t val = 0;
int bus;
int rc;
bus = da9063_claim_i2c_bus();
rc = da9063_get_reg(0x2c, &val);
printf("%d: %02x\n", rc, val);
da9063_release_i2c_bus(bus);
return 0;
}
U_BOOT_CMD(
pmic, 1, 1, do_pmic,
"pmic",
""
);

View File

@ -3,7 +3,7 @@
*
* Dialog DA9063 PMIC
*
* Copyright (C) 2018 NetModule AG - http://www.netmodule.com/
* Copyright (C) 2018-2019 NetModule AG - http://www.netmodule.com/
*
* SPDX-License-Identifier: GPL-2.0+
*/