LibreSolar / bms-firmware

Firmware for LibreSolar BMS boards based on bq769x0, bq769x2 or ISL94202
https://libre.solar/bms-firmware/
Apache License 2.0
146 stars 67 forks source link

Integrate bms_ic device into bms_context #52

Closed martinjaeger closed 7 months ago

martinjaeger commented 7 months ago

Previously, both the bms_ic and the bms_context had to be shared between different files, even though the bms_ic dev logically belongs to the bms_context.

This commit adds a const struct device *ic_dev to the bms_context, solving the issue.

martinjaeger commented 7 months ago

Thanks for the very quick review! This was my last clean-up for now.