fix(battery): add missing struct device *
in zmk_battery_int
This became apparent whilst laying the groundwork for #223.
This commit is contained in:
parent
3e65f6d472
commit
dc462474e3
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ static void zmk_battery_timer(struct k_timer *timer) { k_work_submit(&battery_wo
|
||||||
K_TIMER_DEFINE(battery_timer, zmk_battery_timer, NULL);
|
K_TIMER_DEFINE(battery_timer, zmk_battery_timer, NULL);
|
||||||
|
|
||||||
static int zmk_battery_init(struct device *_arg) {
|
static int zmk_battery_init(struct device *_arg) {
|
||||||
battery = device_get_binding("BATTERY");
|
struct device *battery = device_get_binding("BATTERY");
|
||||||
|
|
||||||
if (battery == NULL) {
|
if (battery == NULL) {
|
||||||
LOG_DBG("No battery device labelled BATTERY found.");
|
LOG_DBG("No battery device labelled BATTERY found.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue