This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ25618: Driver Code Build Error - Some macros undeclared

Part Number: BQ25618

Hi TI team,

I get the driver source code from the website:

https://lore.kernel.org/linux-pm/20200817191723.22416-1-r-rivera-matos@ti.com/T/#Z2e.:..:20200817191723.22416-2-r-rivera-matos::40ti.com:0bindings:power:supply:bq256xx.yaml

The dtsi, Makefile and Kconfig files have been modified in accordance with the guidelines on the website.

But when build, I encountered the following error:

There are several macros in the driver code, but they can't be found in the header file power_supply.h

What should their values be? Or how do I add them in?

Thank you very much.

Kirk Zhang

Sercomm RD/Driver