x86: sandbox: pch: Add a CONFIG option for PCH
[oweals/u-boot.git] / drivers / power / pmic / pmic_pfuze100.c
index 21f12d2564ee00e1eb11885d3167e995a03e233b..c646a0c31f82243c2655e49cf6c6b1378ce42359 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2014 Gateworks Corporation
  * Tim Harvey <tharvey@gateworks.com>
- *
- * SPDX-License-Identifier:      GPL-2.0+
  */
 
 #include <common.h>
@@ -13,7 +12,7 @@
 
 int power_pfuze100_init(unsigned char bus)
 {
-       static const char name[] = "PFUZE100_PMIC";
+       static const char name[] = "PFUZE100";
        struct pmic *p = pmic_alloc();
 
        if (!p) {
@@ -23,7 +22,7 @@ int power_pfuze100_init(unsigned char bus)
 
        p->name = name;
        p->interface = PMIC_I2C;
-       p->number_of_regs = PMIC_NUM_OF_REGS;
+       p->number_of_regs = PFUZE100_NUM_OF_REGS;
        p->hw.i2c.addr = CONFIG_POWER_PFUZE100_I2C_ADDR;
        p->hw.i2c.tx_num = 1;
        p->bus = bus;